Upload
mohit009dude
View
232
Download
0
Embed Size (px)
Citation preview
7/26/2019 Digital Lab Manual New
1/81
Digital Labs
Revision 2.0
Incisive Unified Simulator 9.2
RTL Compiler 9.1
Encounter Digital Implementation 9.1
Developed by,
University Support Team Cadence, Bangalore
1
7/26/2019 Digital Lab Manual New
2/81
Table of Contents
General Notes......................................................................................................................3
Lab1: An Inverter.................................................................................................................4
Lab 2: A Buffer....................................................................................................................7Lab 3: Transmission Gate..................................................................................................12
Lab 4: Basi ! "niversal Gates..........................................................................................20
Lab #: $li%&$lo%s...............................................................................................................27
Lab': N()*10 Bit number ontrolle+ osillator,..............................................................33mem.v mu-2to1.v %/asein.v testben/.v to%.v................................................34
Lab7: Automati laout eneration folloe+ b %ost laout e-tration an+ simulation oft/e iruit stu+ie+ in Lab '................................................................................................42
2
7/26/2019 Digital Lab Manual New
3/81
General Notes
T/ere are a number of t/ins to onsi+er before beinnin t/ese lab e-erises. lease
rea+ t/rou/ t/is setion om%letel an+ %erform an nee+e+ ste%s in or+er to ensure a
suessful or5s/o%. T/ese labs ere +esine+ for use it/ Inisive "nifie+ 6imulator.
Before runnin an of t/ese labs ensure t/at ouve set u% I"6 orretl:
%> setenv IUSHOME
T/e (a+ene8iitallabs +iretor ontains 6olutions fol+er an+ also 9or5 fol+er.
Insi+e 9or5 fol+er ou an ma5e mo+ifiations of t/e o+e loall it/out affetin our
6oure o+e %resent insi+e 6olutions +iretor.
Lab +iretor +etails:
. Solutions (ontains a loal o% of all t/e lab e-%eriments inlu+in
Testbenes for simulatin t/e o+es.
. !or"area Its a %lae to run 6imulation an+ 6nt/esis.
To setu% t/e lab environment %lease %erform t/e folloin ste%s:
1. nsure t/e softare mentione+ above is orretl setu%.
2. 6oure t/e (&6/ell relate+ omman+s file i.e *s/r file,.
T/ese labs ere +esine+ to be run usin (a+ene 6imulator an+ t/e snt/esis enine.
3
7/26/2019 Digital Lab Manual New
4/81
Lab1 !n "nverter
In t/is lab e ill simulate t/e inverter o+e mo+ele+ usin sit/ level b t/e
/el% of Inisive unifie+ simulator.In t/is lab e ill see /o to %erform simulation in
omman+ mo+e usin testben/ it/out usin G"I in+o.
1. (/ane +iretor to (a+ene8iitallabs!9or5area!Inverter
2. ;ou ill nee+ to o% ea/ file %resent in solutions fol+er to 9or5area!Inverter
loation b usin t/e belo mentione+ omman+ :
% &rf ..!..!6olutions!Inverter!< .
3. =ie t/e (o+e of Inverter an+ also t/e testben/ for t/e same.
4. Compile t#e source Descriptions $
*i, (om%ile t/e Inverter +esri%tion it/ t/e &messaes o%tion:
nvlo inverter.v >messaes
T/e om%iler %laes t/e inverter +esri%tion in t/eINCA_libs librar.
*ii, (om%ile t/e testben/ +esri%tion it/ t/e &?66 o%tion:
nvlo invertertest.v >?66
4
7/26/2019 Digital Lab Manual New
5/81
T/e om%iler %laes t/e inverter_test +esri%tion in t/eINCA_libslibrar.
%ote$ ;ou an abbreviate o%tions +on to t/eir s/ortest uni@ue strin an+ use u%%er orLoer ase.
List all inverter library objects (ncls inverter).
What library objects does the compiler create
Anser: T/e om%iler reates =erilo =6T obets.
#. Ela&orate t#e top level Design
*i, laborate t/e testben/
nelab invtest &messaesT/e elaborator %laes t/e inv_test o+e an+ sna%s/ot in t/eINCA_libs librar.
#
7/26/2019 Digital Lab Manual New
6/81
List all invtestC librar obets *ncls inv'test,.
9/at librar obets +oes t/e elaborator reateD
Anser: T/e elaborator reates 6IG *sinature, E8L()8 *o+e, an+ 666 *sna%s/ot, obets.
6.Simulate the Top-Level Design
(i, 6imulate t/e testben/:
nsim invtest
T/e simulator +is%las results similar to t/e folloin:
'
7/26/2019 Digital Lab Manual New
7/81
La& Summar($
In t/is lab e sa /o to om%ile elaborate an+ simulate t/e tesben/ for Invertermo+ule.
Lab # ! Buffer
In t/is lab ou ill simulate a +esin usin t/e Inisive simulator. ;ou ill:
< (reate t/e cds.lib an+ hdl.var files
< (om%ile elaborate an+ simulate t/e +esin an+ testben/
erform t/is lab in t/e!"##er +iretor. T/is +iretor ontains t/e folloin files */i/
ou s/oul+ briefl e-amine, +esribin a sim%le Buffer an+ its testben/:
)ile*s+ Description
Buffer.v Buffer o+e
Buffertest.v Testben/
1. (/ane +iretor to (a+ene8iitallabs!9or5area!Buffer.
2. ;ou ill nee+ to o% ea/ file %resent in solutions fol+er to 9or5area!Buffer
loation b usin t/e belo mentione+ omman+ :
7
7/26/2019 Digital Lab Manual New
8/81
% &rf ..!..!6olutions!Buffer!< .
3. =ie t/e (o+e of Inverter an+ also t/e testben/ for t/e same.
4 Set Up t#e Design Environment
"sin our favorite te-t e+itor reate t/e cds.lib file an+ ma5e t/e folloinentries:
8efine Bufferlib .!Buffer.lib
(reate t/e loal librar +iretor:
m5+ir Buffer.lib
(reate t/e hdl.var file an+ ma5e t/e folloin entr:
8efine 9)RF Bufferlib
#.Compile t#e Source Descriptions
*i,. (om%ile t/e buffer +esri%tion it/ t/e -messages o%tion:
nvlo buffer.v >messaes
T/e om%iler %laes t/e Bufer +esri%tion in t/e Bufer_lib librar.
(ii). (om%ile t/e testben/ +esri%tion it/ t/e &?66 o%tion:
7/26/2019 Digital Lab Manual New
9/81
nvlo buffertest.v >?66
T/e om%iler %laes t/e b"##er_test +esri%tion in t/e!"##er_lib librar.
%ote$ ;ou an abbreviate o%tions +on to t/eir s/ortest uni@ue strin an+ use
u%%er or loer ase.
List all m"$ library objects (ncls buffer).
What library objects does the compiler create
Anser: T/e om%iler reates =erilo =6T obets.
6.Elaborate the Top-Level Design
1. A%%en+ t/is line to t/e hdl.var file:
8efine N(LAB)T6 >messaes
2. laborate t/e testben/:
H
7/26/2019 Digital Lab Manual New
10/81
nelab buftest
T/e elaborator %laes t/e b"##er_test o+e an+ sna%s/ot in t/e!"##er_lib librar.
7. Simulate the Top-Level Design
(i, 6imulate t/e testben/:
nsim buftest
T/e simulator +is%las results similar to t/e folloin:
10
7/26/2019 Digital Lab Manual New
11/81
Lab Summary
In t/is lab ou simulate+ a +esin usin t/e Inisive simulator. ;ou:
< (reate+ t/e cds.lib an+ hdl.var files
< (om%ile+ elaborate+ an+ simulate+ t/e +esin an+ testben/
11
7/26/2019 Digital Lab Manual New
12/81
Lab $ Transmission Gate
In t/is lab ou ill simulate a +esin usin t/e Inisive simulator. ;ou ill:
< (reate t/e cds.lib an+ hdl.var files < (om%ile elaborate an+ simulate t/e +esin an+ testben/
erform t/is lab in t/e %& +iretor. T/is +iretor ontains t/e folloin files */i/ou s/oul+ briefl e-amine, +esribin a sim%le Transmission ate an+ its testben/:
)ile*s+ Description
t.v && Transmission Gate o+e
ttest.v && Testben/
1. (/ane +iretor to (a+ene8iitallabs!9or5area!TG.
2. ;ou ill nee+ to o% ea/ file %resent in solutions fol+er to 9or5area!TGloation b usin t/e belo mentione+ omman+ :
% &rf ..!..!6olutions!TG!< .
,. =ie t/e (o+e of tranmission ate an+ also t/e testben/ for t/e same.
-. Set Up t#e Design Environment
"sin our favorite te-t e+itor reate t/e cds.lib file an+ ma5e t/e folloinentries:
8efine tlib .!t.lib
(reate t/e loal librar +iretor:
m5+ir t.lib
(reate t/e hdl.var file an+ ma5e t/e folloin entr:
8efine 9)RF tlib
12
7/26/2019 Digital Lab Manual New
13/81
#.Compile t#e Source Descriptions
*i,. (om%ile t/e transmission ate +esri%tion it/ t/e -messages o%tion:
nvlo t.v >messaes
T/e om%iler %laes t/e Transmission Gate +esri%tion in t/e tg_liblibrar.
(ii). (om%ile t/e testben/ +esri%tion it/ t/e &?66 o%tion:
nvlo ttest.v >?66
T/e om%iler %laes t/e t'_test +esri%tion in t/e t'_lib librar.
%ote$ ;ou an abbreviate o%tions +on to t/eir s/ortest uni@ue strin an+ use
u%%er or loer ase.
13
7/26/2019 Digital Lab Manual New
14/81
6.Elaborate the Top-Level Design
*i, A%%en+ t/is line to t/e hdl.var file:
8efine N(LAB)T6 >messaes
*ii, laborate t/e testben/:
nelab tranatetest &aess r
T/e elaborator %laes t/e t'_test o+e an+ sna%s/ot in t/e t'_lib librar.
14
7/26/2019 Digital Lab Manual New
15/81
7. Simulate t#e top level design$
*i, 6imulate t/e testben/: it/ >ui o%tion:
nsim tranatetest >ui
T/e &ui o%tion o%ens t/e Console an+ Design ro/ser in+os.
Tour the Graphical Interface
1. -amine t/e (onsole in+o.
a. ;ou an use t/e ?enu Bar to run or ste% t/e simulation set so%es an+ sto%s s/o
t/e value of obets an+ start ot/er ra%/ial tools.
b. ;ou an use t/e Tool Bar to run interru%t reset ste% or ne-t t/e simulation an+
s/ut +on t/e interfae or t/e simulation or +isonnet t/e simulation. . ;ou an use t/e omman+ line interfae to t/e simulation in t/e I!) Reion.
1#
7/26/2019 Digital Lab Manual New
16/81
2. -amine t/e 8esin Broser in+o.
)%en an e-istin 8esin Broser in+o or selet t/e 9in+osJ ne J 8esinBroser menu item or t/e 8esin Broser button.
a. 8is%la t/e obets of a so%e an+ t/eir value in t/e )bets List %ane *6elet an+is%lae+ so%e in t/e 6o%e Tree %ane,.
b. 8is%la t/e om%onent instanes of t/e so%e *+ouble&li5 t/e so%e in t/e 6o%e
Tree %ane,.
3. Tour t/e !aveform in+o.
)%en an e-istin 9aveform in+o or selet t#e !indo/s 0 %e/ 0 !aveform
menu item or t/e !aveform button.T/e simulator reates a +efault 6E?+atabase an+ sets a %robe onan selete+ sinals an+ o%ens a 9aveform in+o
+is%lain t/e selete+ sinals.
a. In t/e 8esin Broser in+o selet all sinals at t/e tran'ate_test so%e.b. A++ t/e selete+ sinal*s, to t/e 9aveform in+o *selet t/e !aveformbutton
or t/e dd Selectedbutton or +ra an+ +ro% t/e sinals into t/e 9aveform
in+o,.%ote$ To a++ a++itional sinals sim%l selet t/em in an in+o an+li5 t/e Waveformbutton aain.
1'
7/26/2019 Digital Lab Manual New
17/81
Examine the Design and Testbench Hierarchy
In t/is setion of t/e lab ou visit t/e 6oure Broser 6/emati Traer an+
9aveform in+o.
1. In t/e 8esi1n Bro2ser 2in+o2 selet t/e to%&level *memtest, so%e an+ selet t/e
6oure Broser button to sen+ it to t/e taret 6oure Broser in+o. As no su/in+o et e-ists t/is o%ens a 6oure Broser in+o +is%lain t/e soure of t/e
To%&level unit an+ ma5es it t/e +efault 6oure Broser taret in+o.
2. In t/e 6oure Broser in+o ensure t/at ust t/e to%&level so%e is selete+ *naviate
u% as nee+e+ an+ 6eletJT/is 6o%e, an+ sen+ it to t/e taret 6/emati Traer
17
7/26/2019 Digital Lab Manual New
18/81
in+o. As no su/ in+o et e-ists t/is o%ens a 6/emati Traer in+o +is%laint/e to%&level unit an+ ma5es it t/e +efault 6/emati Traer taret in+o in /i/
ou:
a. nsure t/at t/e to%&level so%e is still selete+ an+ selet t/e fill ?o+ule button
to +is%la t/e testben/ ontent.b. 6elet t/e +it & 6elet & All menus item an+ aain selet t/e fill ?o+ule button to
-%an+ t/e seon+ level ontent.
. 6elet t/e Koom $ull button to fit all +is%lae+ elements.
,. In t/e 6oure Broser in+o ensure t/at ust t/e to%&level so%e is selete+ an+ sen+
it tot/e taret 9aveform in+o. As no su/ in+o et e-ists t/is o%ens a
9aveform in+o +is%lain t/e sinals of t/e to%&level unit an+ ma5es it t/e +efault9aveform taret in+o.
a. In t/e left si+ebar selet t/e 8esin Broser tab toe-%an+ t/e si+ebar area an+
+is%la t/e embe++e+ 8esin Broser.
&&& Run t/e simulation until t/e ne-t brea5%oint or for t/e 8uration entere+ in t/e time fiel+ *i.e 40ns,.
&&& (urrent Time rane.
&&& ?ove %rimar ursor to %revious e+e of selet sinal.
&&& Reset t/e simulation ba5 to time 0 .
)ne t/e simulation is +one ou an see t/e folloin aveform in+o an+ onsole
in+o it/ t/e out%uts.
1
7/26/2019 Digital Lab Manual New
19/81
1H
7/26/2019 Digital Lab Manual New
20/81
Lab % Basic & Universal Gates
In t/is lab ou ill simulate a +esin usin t/e Inisive simulator. ;ou ill:
< (reate t/e cds.lib an+ hdl.var files < (om%ile elaborate an+ simulate t/e +esin an+ testben/
erform t/is lab in t/e &ates directory. T/is +iretor ontains t/e folloinsub+iretories */i/ ou s/oul+ briefl e-amine, +esribin a sim%le basi!universal
ates an+ its testben/:
Su&directories Descriptions$
%D %%D %3R 3R 43R 4%3R
1 (/ane +iretor to (a+ene8iitallabs!9or5area!Gates.
2 ;ou ill nee+ to o% ea/ file %resent in 6olutions fol+er to 9or5area!Gatesloation b usin t/e belo mentione+ omman+ :
% &rf ..!..!6olutions!Gates!< .
3 (/ane +iretor to AN8 fol+er.
4 =ie t/e (o+e of AN8 ate an+ also t/e testben/ for t/e same.
5. T#is procedure is same for all t#e ot#er logic gates present inside 6ates folder.
7. Set Up t#e Design Environment
"sin our favorite te-t e+itor reate t/e cds.lib file an+ ma5e t/e folloinentries:
8efine an+lib .!an+.lib
(reate t/e loal librar +iretor:
m5+ir an+.lib
(reate t/e hdl.var file an+ ma5e t/e folloin entr:
20
7/26/2019 Digital Lab Manual New
21/81
8efine 9)RF an+lib
7.Compile t#e Source Descriptions
*i,. (om%ile t/e transmission ate +esri%tion it/ t/e -messages o%tion:
nvlo an+.v >messaes
T/e om%iler %laes t/eAnd Gate +esri%tion in t/e and_lib librar.
(ii). (om%ile t/e testben/ +esri%tion it/ t/e &?66 o%tion:
nvlo an+test.v >?66
T/e om%iler %laes t/e and_test +esri%tion in t/e and_lib librar.
%ote$ ;ou an abbreviate o%tions +on to t/eir s/ortest uni@ue strin an+ use
u%%er or loer ase.
21
7/26/2019 Digital Lab Manual New
22/81
8. Elaborate the Top-Level Design
*i, A%%en+ t/is line to t/e hdl.var file:
8efine N(LAB)T6 >messaes
*ii, laborate t/e testben/:
nelab an+ate &aess r &?66
T/e elaborator %laes t/e and'ate o+e an+ sna%s/ot in t/e and_lib librar.
22
7/26/2019 Digital Lab Manual New
23/81
7. Simulate t#e top level design$
*ii, 6imulate t/e +esin: it/ &ui o%tion:
nsim an+ate >ui
6imvision tool from (a+ene 8esin 6stems automatiall %o%s u%:
23
7/26/2019 Digital Lab Manual New
24/81
T/e &ui o%tion o%ens t/e Console an+ Design ro/ser in+os.
6elet t/e in%ut an+ out%ut %orts as s/on above an+ li5 button to o%en u% t/eaveform in+o.
24
7/26/2019 Digital Lab Manual New
25/81
6elet in1 an+ o to 6imulation tab an+ selet (reate $ore o%tion
$olloin (reate fore in+o omes u% .No a%%l binar in%ut loi to in1from t/e
available binar loi > 01MK.6elet an loi an+ li5 )5.
In t/e same a a%%l anot/er in%ut in2.
2#
7/26/2019 Digital Lab Manual New
26/81
)ne t/e in%uts are a%%lie+ selet t/e time rane for simulation an+ run t/e simulation
usin t/e folloin Ion
)ut%ut 9aveform is as s/on belo for AN8 ate :
Its also %ossible to reset t/e simulation it/ t/is button. .
)ne t/e reset is +one an+ ant to %erform simulation it/ anot/er set of in%uts t/en
follo t/e same %roe+ure as mentione+ ablove.
2'
7/26/2019 Digital Lab Manual New
27/81
Lab ' (lip)(lops
In t/is lab ou ill simulate a +esin usin t/e Inisive simulator. ;ou ill:
< (reate t/e cds.lib an+ hdl.var files < (om%ile elaborate an+ simulate t/e +esin an+ testben/
erform t/is lab in t/elip#lops +iretor. T/is +iretor ontains t/e folloin files*/i/ ou s/oul+ briefl e-amine, +esribin a $li%flo%s an+ its testben/es:
)ile*s+ Description$
SR'ff.v d'ff.v 8"'ff.v ms'ff.v t'ff.v
1. (/ane +iretor to (a+ene8iitallabs!9or5area!$li%flo%s
2: ;ou ill nee+ to o% ea/ file %resent in 6olutions fol+er to 9or5area!$li%flo%s
loation b usin t/e belo mentione+ omman+ :
% &rf ..!..!6olutions!$li%flo%s!< .
3. =ie t/e (o+e of 6R&$li%flo% an+ also t/e testben/ for t/e same.
-. T#is procedure is same for all t#e ot#er flipflops present inside )lipflops folder.
5. Set Up t#e Design Environment
"sin our favorite te-t e+itor reate t/e cds.lib file an+ ma5e t/e folloinentries:
8efine fflib .!ff.lib
(reate t/e loal librar +iretor:
m5+ir ff.lib
(reate t/e hdl.var file an+ ma5e t/e folloin entr:
8efine 9)RF fflib
27
7/26/2019 Digital Lab Manual New
28/81
'. Use t#e follo/ing command to invo"e user friendl( 6UI$
nlaun/
$olloin in+os a%%ears.T/is is t/e G"I of nlaun/.
Ri/tsi+e of in+o /as fflib *or5lib , an+ sna%s/ots +iretories liste+.fflib is t/e +iretor /ere all t/e om%ile+ o+es are store+ /ile sna%s/ot ill /ave
out%ut of elaboration /i/ in turn oes for simulation.
2
7/26/2019 Digital Lab Manual New
29/81
)ne t/e above in+o a%%ears selet t/e fli%flo% of our /oie for e-: I am seletin
6R&ff.v .)ne t/e fli%flo% is selete+ li5 t/e folloin buttons s/on belo for
om%ilation elaboration an+ simulation.
&& T/is Ion is for om%ilin t/e verilo o+e one t/e om%ilation is +one it
(reates =6T an+ ou an see SR'ffan+ SR'ff'test un+er fflib +iretor.
&& 6elet SR'ff'testIon to elaborate t/e testben/ one t/e elaboration is +oneIt reates sna%s/ot an+ stores insi+e sna%s/ots +iretor.
&& 6elet t/e sna%s/ot ff'li&.SR'ff'test$ module an+ li5 t/e folloin Ion to
Invo5e t/e aveform in+o *6imvision, for %erformin t/e simulation.
2H
7/26/2019 Digital Lab Manual New
30/81
)ne t/e 8esin broser in+o * i.e 6imvision , omesu% selet SR'ff'test also t/e
re@uire+ in%uts an+ out%uts %orts an+ li5 t/e button to o%en t/e aveform in+o.
30
7/26/2019 Digital Lab Manual New
31/81
9aveform in+o a%%ears as s/on belo:
Run t/e testbe/ simulation b li5in t/e folloin ion
9e ill obtain t/e re@uire+ out%ut of 6R > $li% flo% in t/e aveform in+o as s/on
belo:
31
7/26/2019 Digital Lab Manual New
32/81
T/e e@uivalent omman+ terminal out%ut an be observe+ in t/e 6imvision onsole
in+o an+ also in t/e nlaun/ onsole terminal.T/e o!% is as s/on belo:
32
7/26/2019 Digital Lab Manual New
33/81
Lab* NC+10 Bit number controlled oscillator-
T/ere are a number of t/ins to onsi+er before beinnin t/e lab e-erises. lease
rea+ t/rou/ t/is setion om%letel an+ %erform an nee+e+ ste%s in or+er to ensure asuessful or5s/o%.
T/e N() +iretor ontains rlabs fol+er. Insi+e rlabs fol+er ou ill see man
ot/er +iretories but for I"6 /ane t/e +iretor to 6imulation an+ for 6nt/esis an+
R selet or5 +iretor
Lab +iretor +etails:
Simulation (ontains t/e lab e-%eriments inlu+inTestbenes for simulatin t/e o+es.
/or" Its a %lae to run 6nt/esis an+ R for N().
33
7/26/2019 Digital Lab Manual New
34/81
In t/is lab ou ill simulate t/e +esin usin t/e Inisive simulator. ;ou ill erform
t/is lab in t/e im"lation +iretor. T/is +iretor ontains t/e folloin files */i/ ou
s/oul+ briefl e-amine, +esribin t/e N() an+ its testben/es:
)ile*s+ Description$
mem.v mu/0#to1.v pase0inc.v testbenc.v top.v
Compile Ela&orate and Simulate using Irun Utilit($
Run t#e &elo/ command
ir"n mem.v m"$_*to+.v phase_inc.v testbench.v top.v ,access -rc ,mess ,'"i
1. No t/e (onsole 8esin Broser in+o o%ens
2. Before %roee+in to t/e ne-t ste% analOe t/e messaes in t/e terminal in+o
T/e &ui o%tion o%ens t/e Console an+ Design ro/ser in+os.
Tour the Graphical Interface
1. -amine t/e (onsole in+o.
a. ;ou an use t/e ?enu Bar to run or ste% t/e simulation set so%es an+ sto%s s/o
t/e value of obets an+ start ot/er ra%/ial tools. b. ;ou an use t/e Tool Bar to run interru%t reset ste% or ne-t t/e simulation an+
s/ut +on t/e interfae or t/e simulation or +isonnet t/e simulation. . ;ou an use t/e omman+ line interfae to t/e simulation in t/e I!) Reion.
34
7/26/2019 Digital Lab Manual New
35/81
2. -amine t/e 8esin Broser in+o.
)%en an e-istin 8esin Broser in+o or selet t/e 9in+osJ ne J 8esinBroser menu item or t/e 8esin Broser button.
a. 8is%la t/e obets of a so%e an+ t/eir value in t/e )bets List %ane *6elet an
+is%lae+ so%e in t/e 6o%e Tree %ane,.
b. 8is%la t/e om%onent instanes of t/e so%e *+ouble&li5 t/e so%e in t/e 6o%eTree %ane,.
3. Tour t/e !aveform in+o.
)%en an e-istin 9aveform in+o or selet t#e !indo/s 0 %e/ 0 !aveform
menu item or t/e !aveform button.T/e simulator reates a +efault 6E?
+atabase an+ sets a %robe onan selete+ sinals an+ o%ens a 9aveform in+o+is%lain t/e selete+ sinals.
a. In t/e 8esin Broser in+o selet all sinals at t/e testbench so%e.
b. A++ t/e selete+ sinal*s, to t/e 9aveform in+o *selet t/e !aveformbuttonor t/e dd Selectedbutton or +ra an+ +ro% t/e sinals into t/e 9aveform
in+o,.%ote$ To a++ a++itional sinals sim%l selet t/em in an in+o an+
li5 t/e Waveformbutton aain.
3#
7/26/2019 Digital Lab Manual New
36/81
Examine the Design and Testbench Hierarchy
In t/is setion of t/e lab ou visit t/e 6oure Broser 6/emati Traer an+9aveform in+o.
1. In t/e 8esi1n Bro2ser 2in+o2 selet t/e to%&level *memtest, so%e an+ selet t/e
6oure Broser button to sen+ it to t/e taret 6oure Broser in+o. As no su/in+o et e-ists t/is o%ens a 6oure Broser in+o +is%lain t/e soure of t/e
To%&level unit an+ ma5es it t/e +efault 6oure Broser taret in+o.
2. In t/e 6oure Broser in+o ensure t/at ust t/e to%&level so%e is selete+ *naviate
u% as nee+e+ an+ 6eletJT/is 6o%e, an+ sen+ it to t/e taret 6/emati Traer
in+o. As no su/ in+o et e-ists t/is o%ens a 6/emati Traer in+o +is%lain
t/e to%&level unit an+ ma5es it t/e +efault 6/emati Traer taret in+o in /i/ou:
a. nsure t/at t/e to%&level so%e is still selete+ an+ selet t/e fill ?o+ule buttonto +is%la t/e testben/ ontent.
b. 6elet t/e +it & 6elet & All menus item an+ aain selet t/e fill ?o+ule button to-%an+ t/e seon+ level ontent.
. 6elet t/e Koom $ull button to fit all +is%lae+ elements.
3'
7/26/2019 Digital Lab Manual New
37/81
,. In t/e 6oure Broser in+o ensure t/at ust t/e to%&level so%e is selete+ an+ sen+
it tot/e taret 9aveform in+o. As no su/ in+o et e-ists t/is o%ens a
9aveform in+o +is%lain t/e sinals of t/e to%&level unit an+ ma5es it t/e +efault
9aveform taret in+o.
a. In t/e left si+ebar selet t/e 8esin Broser tab toe-%an+ t/e si+ebar area an+
+is%la t/e embe++e+ 8esin Broser.
&&& Run t/e simulation until t/e ne-t brea5%oint or for t/e 8uration entere+ in t/e time fiel+ *i.e 40ns,.
&&& (urrent Time rane.
&&& ?ove %rimar ursor to %revious e+e of selet sinal.
&&& Reset t/e simulation ba5 to time 0 .
)ne t/e simulation is +one ou an see t/e folloin aveform in+o an+ onsole
in+o it/ t/e out%uts.
37
7/26/2019 Digital Lab Manual New
38/81
)urt#er follo/ t#e follo/ing steps$
1. Ei/li/t t/e out%ut %in*+ataoutP#:0Q, an+ ri/t li5 on it
2. (li5 on Trae an+ selet Analo!6am%leEol+
3
7/26/2019 Digital Lab Manual New
39/81
3. No selet t/e smbol /i/ is /i/li/te+ b re+ irle
3H
7/26/2019 Digital Lab Manual New
40/81
# . No e an see base+ on t/e numerial value */e-a+eimal, orres%on+in
out%ut ave form an be seen.
40
7/26/2019 Digital Lab Manual New
41/81
'. 8ra an+ observe t/e aveform for +ifferent numerial values
41
7/26/2019 Digital Lab Manual New
42/81
Lab2 !utomatic layout generation follo3edby post layout e/traction and simulation ofte circuit studied in Lab *
In t/is lab e ill +o t/e 6nt/sesis an+ /sial 8esin of N() 8esin for /i/
simulation is +one in Lab'. 6nt/esis ill be +one usin RTL (om%iler an+ /sial
8esin ill be +one usin nounter 8iital Im%lementation 6stem.
Go to +iretor !N()!rlabs!or5.
Lets +o t/e 6nt/esis first.1. Invo5e RTL (om%iler b t%in r &ui on our terminal in+o.
T/e belo %iture an be seen after t%in t/e above omman+.
42
7/26/2019 Digital Lab Manual New
43/81
T/e tool in+o loo5 li5e t/e belo imae:
T/e terminal ill loo5 li5e t/e belo imae after t/e tool is invo5e+.
43
7/26/2019 Digital Lab Manual New
44/81
2. Give t/e %at/ of t/e librar .r.t to t/e +iretor ou are in usin t/e omman+:
setattribute libsear/%at/ ..!librar3 Give t/e %at/ of t/e RTL files it/ res%et to t/e +iretor ou are in usin t/e belo
omman+:
setattribute /+lsear/%at/ ..!rtl4 Rea+ t/e librar from t/e +iretor s%eifie+ in ivin t/e %at/ for t/e librar files inste% 2 usin t/e omman+:
setattribute librar slonormal.lib
slonormal.lib is t/e name of t/e librar file in t/e +iretor librar. T/ere isanot/er librar t/ere in t/at +iretor it/ name slo/i/vt.lib. An one of t/ese
to libraries oul+ be use+ at a time.
# Rea+ t/e RTL files from t/e +iretor s%eifie+ in t/e %at/ in ste% 3. T/e RTL files arein t/e +iretor name rtl:
rea+/+l mem.v mu-2to1.v %/asein.v to%.vS.
' No laborate t/e +esin usin elaborateomman+.
7 Give t/e omman+ to see t/e iruit in Tool in+o:T/e terminal in+o after t/e ste% 7 ill loo5 li5e
44
7/26/2019 Digital Lab Manual New
45/81
T/e Tool in+o loo5s li5e imae on ne-t %ae
. Give t/e stan+ar+ +ela onstraints usin:
rea+s+ .!onstraintsto%..
T/e terminal in+o loo5s li5e t/e imae on ne-t %ae.
4#
7/26/2019 Digital Lab Manual New
46/81
H. 6nt/esiOe t/e iruit usin t/e omman+:snt/esiOe &toma%%e+ &effort me+ium.T/e terminal in+o an+ t/e snt/esiOe+ iruit in tool in+o ill a%%ear to be as
on ne-t %ae:
4'
7/26/2019 Digital Lab Manual New
47/81
47
7/26/2019 Digital Lab Manual New
48/81
10. 9rite t/e /+l o+e in terms of librar om%onents for t/e snt/esiOe+ iruit usin t/eomman+:
rite/+l no./+l
no./+l is t/e name of file in /i/ t/e o+e ets rite.
11. 6imilarl rite t/e onstraint file usinrites+ no.s+.
12. Timin oul+ be /e5 usin re%ort timin.13. 6imilarl for Gates re%ort ates.
14. (/e5 area usin re%ort area.
1#. (/e5 oer +issi%ation usin re%ort %oer.
After t/e 6nt/esis /sial 8esin an be +one b invo5in t/e tool nounter
8iital im%lementation.
1'. Go to 8iretor !N()!rlabs!or5.17. Invo5e t/e tool usin enounter or veloit.
T/e tool starts as belo imae:
T/e terminal in+o an+ tool in+o an be seens as similar to imaes on ne-t %ae
4
7/26/2019 Digital Lab Manual New
49/81
4H
7/26/2019 Digital Lab Manual New
50/81
1. Go t/e Tool in+o an+ li5 on t/e $ile an+ selet Im%ort 8esin. A ne in+oill o%en.
1H. 6elet t/e verilo files usin brose button. A ne in+o Netlist files ill o%en.
20.
#0
7/26/2019 Digital Lab Manual New
51/81
(li5 on t/e arro button an+ selet t/e verilo $ile N()[email protected] an+ li5t/e A++ button an+ t/en li5 t/e lose button.
21. (li5 on Auto assin after to% ell.
22. 6imilarl selet t/e lef file b li5in t/e brose button an+ t/en a++ t/e lef file
it/ name all.lef in t/e lef +iretor.
23. 6elet t/e timin libraries. $or ma-imum timin libraries selet all libraries it/
slo in t/eir name an+ for minimum timin libraries selet all libraries it/ fast int/eir names. Alternativel instea+ of seletin all t/e libraries for ?a-imum timin
libraries t%e ..!lib!
7/26/2019 Digital Lab Manual New
52/81
2#. In t/e 8esin Im%ort in+o li5 on A+vane+ Tab. 6elet oer out of t/e list on
t/e left si+e of in+o. nter t/e %oer nets as =88 an+ Groun+ nets as =66.
#2
7/26/2019 Digital Lab Manual New
53/81
2'. 6elet )F. T/e tool in+o ill loo5 li5e imae on ne-t %ae.
#3
7/26/2019 Digital Lab Manual New
54/81
T/e %in5 olour blo5s are t/e stan+ar+ ells. T/is is floor%lan vie of t/e +esin.
27. (li5 on $loor%lan an+ selet 6%eif $loor%lan.
#4
7/26/2019 Digital Lab Manual New
55/81
6elet t/e As%et Ratio as %er t/e re@uirement. Give some +imension in (ore to left(ore to ri/t (ore to to%(ore to bottom. e.. ive 30 to ea/. T/is is to reate t/e
s%ae for oer rins /i/ ill be reate+ in %oer %lannin. (li5 )F an+ t/e Tool
in+o ill be loo5 li5e as belo.
T/e ore +imensions are /ane+.
2. (li5 on $loor%lan an+ selet Automati $loor%lan an+ selet lan 8esin. (li5 )5.T/is ill automatiall %ut t/e ?aros if t/ere are an in t/e +esin.
2H. Ne-t ste% is to +o %oer %lannin. (li5 on %oer selet %oer %lannin an+ li5
on A++ Rins.
##
7/26/2019 Digital Lab Manual New
56/81
30. 6elet t/e to% an+ bottom laer as ?etal# Left an+ Ri/t as ?etal'. 6et t/e i+t/ as
%er t/e re@uirement an+ ta5in t/e s%ae beteen ore boun+ar an+ I!) %a+
onsi+erations. 6elet t/e o%tion for offset as enter in /annel an+ li5 )F.
T/e %oer rin ill et reate+ in beteen t/e /annel. T/e imae on t/e ne-t %ae iss/oin t/e %oer rin reate+.
#'
7/26/2019 Digital Lab Manual New
57/81
31. T/e ne-t ste% in %oer %lannin is to reate %oer stri%s. 6elet oer li5 oerlannin an+ li5 A++ 6tri%e.
#7
7/26/2019 Digital Lab Manual New
58/81
32. $or a++in t/e stri%es selet metal laer as ?etal ' an+ /ose +iretion as vertial*if
+iretion /osen is /oriOontal /ose metal laer as ?etal #,. (li5 )F an+ t/e +esin
ill et t/e vertial t/in stri%s of t%e ?etal '.
#
7/26/2019 Digital Lab Manual New
59/81
33. After t/e %oer %lannin o to Route an+ li5 6%eial Route. A ne 9in+o 6routeill a%%ear.
#H
7/26/2019 Digital Lab Manual New
60/81
34. (li5 )F it/ all +efault settins. T/is is +one to %rovi+e %oer to stan+ar+ ells.T/e /oriOontal blue oloure+ metal1 stri%es reate+ as a result of 6%eial Route.
3#. $or %laement li5 on %lae an+ selet %lae an+ li5 on lae 6tan+ar+ (ell.
'0
7/26/2019 Digital Lab Manual New
61/81
3'. (li5 )F on lae in+o an+ in %/sial vie t/e blue oloure+ stan+ar+ ells anbe seen as a result of %laement of stan+ar+ ells.
'1
7/26/2019 Digital Lab Manual New
62/81
37. Before (T6 timin analsis /as to be +one for an setu% violations. (li5 on Timin
an+ selet Re%ort Timin. A Timin analsis in+o ill et o%en. In t/e in+o
selet t/e re&(T6 as 8esin 6tae an+ selet t/e 6etu% as Analsis T%e.
'2
7/26/2019 Digital Lab Manual New
63/81
'3
7/26/2019 Digital Lab Manual New
64/81
3. (li5 )F to om%let t/e Timin analsis. T/e timin information ill et +is%la on
terminal in tabular form. In t/e table +is%lae+ on t/e terminal un+er time8esin6ummar /e5 for an neative value un+er 9N6*9orst Neative 6la5, an+
TN6*Total Neative 6la5,. T/e terminal ill loo5 as t/e imae belo an+ Toolin+o as on ne-t %ae.
'4
7/26/2019 Digital Lab Manual New
65/81
T/e multi&oloure+ lines visible in t/e tool in+o are t/e onnetions beteen stan+ar+ells usin metal laers. If an %art of t/is +esin is Koom&in metal laers an be viee+
easil.
'#
7/26/2019 Digital Lab Manual New
66/81
8ifferent olours s/o +ifferent metal
3H. If t/ere is an of t/e neative sla5 value un+er 9N6 or TN6 li5 )%timiOe in Toolin+o an+ 6elet )%timiOe 8esin. A ne in+o )%timiOation ill et o%en.
6elet re&(T6 as 8esin 6tae an+ 6etu% as o%timiOation t%e an+ li5 )F.
T/e tool ill o%timiOe t/e +esin an+ t/e o%timiOe+ timin results ill be +is%lae+over terminal aain.
''
7/26/2019 Digital Lab Manual New
67/81
In t/is ase e +i+ not et an neative sla5 so t/is ste% is s5i%%e+ /ere.
40. Go to (lo5 li5 6nt/esiOe (lo5 Tree a ne in+o 6nt/esiOe (lo5 Tree
ill et o%en.
'7
7/26/2019 Digital Lab Manual New
68/81
41. (li5 on Gen 6%e an+ a ne in+o Generate (lo5 6%e ill o%en.
'
7/26/2019 Digital Lab Manual New
69/81
42. $rom (ells List 6elet all lo5s startin it/ (LF an+ li5 on A++ button to a++t/em to t/e 6elete+ (ells. 6elet a name for )ut%ut s%eifiation.
43. (li5 )F. T/en s%eif a name for Results 8iretor. an+ li5 )F. T/e tool in+o
loo5s li5e t/e imae belo.
'H
7/26/2019 Digital Lab Manual New
70/81
44. Aain erform t/e Timin b li5in on Timin an+ seletin Re%ort Timin. 6elet
ost&(T6 un+er 8esin 6tae an+ +o t/e selet 6et&u% as Analsis T%e.
70
7/26/2019 Digital Lab Manual New
71/81
4#. (li5 )5 to %erform t/e timin. T/e timin information ill be +is%lae+ over t/e
terminal in+o. Aain /e5 for an neative sla5s un+er 9N6 or TN6.
71
7/26/2019 Digital Lab Manual New
72/81
4'. If t/ere is an neative value foun+ for eit/er of 9N6 or TN6 t/en %erform t/e
)%timiOation Te/ni@ue to re+ue t/e neative sla5. No neative sla5 is foun+ in
t/e terminal imae on %revious %ae so t/is ste% is s5i%%e+ /ere.
47. Timin Analsis for 6etu% as Analsis T%e is +one. Re%eat 6te% 27 for %erformin
timin for ost (T6 as 8esin 6tae an+ Eol+ as Analsis T%e. T/e tool ills/o t/e timin results in t/e terminal in+o.
72
7/26/2019 Digital Lab Manual New
73/81
73
7/26/2019 Digital Lab Manual New
74/81
4. After Timin Analsis is %erforme+ t/e time8esin 6ummar is s/oin t/e
neative sla5 values for bot/ TN6 an+ 9N6. erform t/e )%timiOation. Go to
)%timiOe an+ li5 on )%timiOe 8esin. 6elet ost&(T6 as an+ E)L8 as t/e)%timiOation T%e
74
7/26/2019 Digital Lab Manual New
75/81
4H. (li5 )F to %erform t/e )%timiOation an+ Tool ill %erform t/e o%timiOation an+
+is%las t/e o%timiOe+ results in t/e terminal in+o un+er time8esin 6ummar.T/e results of )%timiOation an be seen on t/e ne-t %ae in tabular form for bot/
6etu% an+ Eol+ mo+e. As om%are to t/e Timn Results %erforme+ for Eol+ mo+e in
6te% 30 t/e +esin /as been o%timiOe+ an+ tabular results s/os t/at all sla5 valuesare no %ositive values an+ no more neative values for sla5.
7#
7/26/2019 Digital Lab Manual New
76/81
#0. erform Routin b li5in Route an+ selet NanoRoute an+ t/en li5 Route. A
in+o NaoRoute ill o%en.
7'
7/26/2019 Digital Lab Manual New
77/81
#1. (li5 )5 to erform Routin. T/e tool ill erform t/e Routin an+ t/e Routin
statistis an be seen on terminal in+o inlu+in 8R( violations.
77
7/26/2019 Digital Lab Manual New
78/81
#2. After routin tool in+o loo5s li5e t/e belo imae.
7
7/26/2019 Digital Lab Manual New
79/81
#3. erform t/e timin aain. Go to Timin seelt Re%ort Timin an+ a Timin Analsisin+o ill et o%en. 6elet ost&Route as t/e 8esin 6tae an+ 6etu% as
Analsis T%e. (li5 )5. T/e timin results ill be +is%lae+ in terminal in+o for6et u% mo+e.
7H
7/26/2019 Digital Lab Manual New
80/81
6ine t/ere is no neative value of sla5 so +esin +oes not re@uire o%timiOation for 6et&
u% mo+e in ost&Route stae.
#4. Re%eat 6te% 3' for ost&Route as 8esin 6tae an+ Eol+ as t/e Analsis T%e.(li5 )F. T/e timin results an be seen in t/e terminal in+o for /ol+ mo+e.
0
7/26/2019 Digital Lab Manual New
81/81
As t/ere is no neative value of sla5 t/e o%timiOation is not re@uire to %erform. T/efinal vie of t/e iruit is as belo: