La lecture en ligne est gratuite
Le téléchargement nécessite un accès à la bibliothèque YouScribe
Tout savoir sur nos offres

Partagez cette publication

Du même publieur

6.884 –
Spring 2005
02/16/05
Tutorial #2
Verilog Simulation Toolflow
T02 –
Verilog
1
Tol2g.68820– eVirg 2005024 –Sprin/61/50
A Hodgepodge Of Information
Using the SMIPS disassembler
Writing SMIPS assembly
Makefile verilog build system
Browsing a CVS repository with viewcvs
CVS source management system
Using trace output instead of waveforms
6.884 –S
pring 
Concurrent Versions System
Acentral repositorycontains all verilog code as well as information on who changed what and when
Userscheckoutcopy of the verilog code, edit it,a and thencommittheir modified version
Users can see what has changed to help track down bugs and this allows multiple users to work on the same verilog code at the same time
Our repository is at /mit/6.884/cvsroot, but you should never access the repository directly. Instead use CVS commands of the following form: % cvs <commandname> % cvs help
200502/1/605T02 –eVrliog3
6.884 –S
6.884 CVS Repository
There are three primary types of top-level directories in the repository
 Examples (everyone has access)
 Individual directories (only you have read/write)
 Project directories (everyone has access)
To checkout the examples and try them out use % cvs checkout examples
To checkout your individual directory use % cvs checkout <athena-username>
pring 200502/1/605T02 –eVrliog4
6.88 4–S
CVS Basics
Common CVS commands –cvs checkout pnameCheckout a working copy –cvs update pnameUpdate working dir vs. repos –cvs commit [filelist]Commit your changes –cvs add [filelist]Add new files/dirs to repos –cvs diffSee how working copy differs
Set the $CVSEDITOR environment variable to change which editor is used when writing log messages
pring 200502/1/605T02 –eVrilog5
6.884 –S
6.884 CVS Repository
Use the following commands to checkout the mips2stage test harness, test programs, etc and then put them into your own cvs directory
% cvs checkout 2005-spring/cbatten % cd 2005-spring/cbatten % cvs export –r HEAD examples/mips2stage % mv examples/mips2stage . % rm –rf examples % find mips2stage | xargs cvs add % <start to make your additions> % cvs add [new files] % cvs update % cvs commit
pring 200502/16/05T02 –Verliog6
6.88 4–S
Using CVS Tags
Symbolic tags are a way to mark all the files in your project at a certain point in the project development. You can then later checkout the whole project exactly as it existed previously with the tag.
prin
verilog1.v verilog2.v verilog 3.v verilog4.v verilog5.v 1.1 1.1 1.1 1.1 1.1 1.2 1.2 1.2 1.2 1.3 1.3 1.3 1.3 1.4 1.4 1.4 1.5 1.5 1.6
g 200502/16/05T02 –Verilog7
6.88 4–Spring 2005
CVS 
checkout
User A
Multiple Users
F.1
F.1
02/1/605
checkout
User B
F.1
T02 –eVrliog8
6.88 4–Spring 2005
CVS
User A
Multiple Users
F.1
F.2
02/16/05
commit
User B
F.2
T02 –eVrilog9
6.884 –Spring 2005
CVS  Multiple Users
co
User A
F.2
Conflict!
F.3
02/16/05
User B
F.2
T02 –eVrliog10
6.884 –pSring 2005
CVS  Multiple Users
upd
User A
F.2/3
F.2
Merges F.2 changes and denotes conflicts With <<<< >>>>  
02/1/605
User B
F.2
T02 –eVrliog11
Un pour Un
Permettre à tous d'accéder à la lecture
Pour chaque accès à la bibliothèque, YouScribe donne un accès à une personne dans le besoin