Synopsys Tutorial - Power Estimation - CVL Wiki
Synopsys Tutorial - Power Estimation - CVL Wiki
Contents
1 Note 2 Setting Up Standard Cell Library and Project Directory 3 Sample Design Example 4 Test Bench and VCD Output 5 Synthesize Design with Synopsys Design Vision 6 Simulate Design and Get Switching Activity (VCD file) 7 Power Estimation with Synopsys PrimeTime-PX 7.1 Explanation of Power Script
Note
It has come to my attention that copying text from a wiki to text files sometimes leads to the insertion of hidden characters. So if the tools experience trouble with the scripts or hdl code copied from this wiki, just retype the files shown and the tools should have no trouble.
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
1/7
15/3/2014
e n d m o d u l e
/ / c l o c kp e r i o di s# 1 0 0 a l w a y sb e g i n # 5 0 c l k=~ c l k ; e n d / / i n i t i a l i z ei n p u tt of u l la d d e r i n i t i a lb e g i n a=0 ; b=0 ; c _ i n=0 ; e n d / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / /T o g g l et h ei n p u t sa tv a r y i n gr a t e s / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / t o g g l ec a r r y _ i n i n i t i a lb e g i n # 6 0 ; r e p e a t( 5 0 ) b e g i n c _ i n< =~ c _ i n ; # 1 0 0 ; e n d e n d / / t o g g l ea i n i t i a lb e g i n # 6 0 ; r e p e a t( 2 5 ) b e g i n a< =~ a ; # 2 0 0 ; e n d e n d / / t o g g l eba n ds e t u pv c dd u m p i n i t i a lb e g i n $ d u m p f i l e ( " d m p _ t o p . v c d " ) ; $ d u m p v a r s ( 0 , t o p ) ; / / r e a dv e r i l o gb o o kf o rm o r ei n f oo ns y s t e mc o m m a n d # 6 0 ; $ d u m p o n ; r e p e a t( 1 0 ) b e g i n b< =~ b ; # 5 0 0 ; e n d $ d u m p o f f ; $ f i n i s h ; / / e n d ss i m u l a t i o n
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
2/7
15/3/2014
e n d
/ / M o d u l eu n d e rt e s t t o pu u t ( . c l k ( c l k ) ,. a ( a ) ,. b ( b ) ,. c _ i n ( c _ i n ) ,. s u m ( s u m ) ,. c _ o u t ( c _ o u t ) ) ; e n d m o d u l e
Now a design_vision gui has started up. In this gui follow these steps:
In Menu: File --> Analyze. A Dialog box will appear called Analyze Designs. Click the Add.. button and add every design file {full_adder.v top.v}. You can do this one file at a time or all at one time by using the CTRL key to select multiple files. After adding all the files press OK.
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
3/7
15/3/2014
In Menu: Design --> Elaborate. A Dialog box will appear called Elaborate Designs. There will be a drop down selection menu called Design. In this selection menu there will be two objects listed: top(verilog) and full_adder(verilog). Make sure that top(verilog) is selected. Press OK.
Now in the Design Vision the Hier 1 window will have objects listed in it.
In Menu: Design --> Compile. In the dialog box that shows up press OK. After doing this your design will now have parts from the library in it.
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
4/7
15/3/2014
In Menu: File --> Save As. Save the design as a verilog design with a new name (ex. top_syn.v). 9. Exit the gui and in the command prompt type exit to quit out of the design_vision_xg_t shell. Then type exit again to quit Synopsys.
Now type:
v c sfv c s _ s c r i p t . s c r
The result of running this command is that an executable called simv is created. 12. Run simv :
. / s i m v
15/3/2014
16. If all went right the output from the script should look something like this:
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = S u m m a r y : T o t a ln u m b e ro fn e t s=1 1 N u m b e ro fa n n o t a t e dn e t s=1 1( 1 0 0 . 0 0 % ) T o t a ln u m b e ro fl e a fc e l l s=7 N u m b e ro ff u l l ya n n o t a t e dl e a fc e l l s=7( 1 0 0 . 0 0 % ) = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = I n f o r m a t i o n :T h ew a v e f o r mo p t i o n sa r e : F i l en a m e : p o w e r _ w a v e s . f s d b F i l ef o r m a t : f s d b T i m ei n t e r v a l : 0 . 0 1 n s H i e r a r c h i c a ll e v e l : a l l I n f o r m a t i o n :P o w e ra n a l y s i si sr u n n i n g ,p l e a s ew a i t. . . I n f o r m a t i o n :a n a l y s i si sd o n ef o rt i m ew i n d o w( 0 n s-5 0 5 0 n s ) * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * R e p o r t:E v e n tB a s e dP o w e r D e s i g n:t o p V e r s i o n :Z 2 0 0 7 . 0 6 S P 3 D a t e :W e dF e b1 31 4 : 3 4 : 1 12 0 0 8 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
6/7
15/3/2014
P e a kP o w e r P e a kT i m e =4 . 7 2 6 e 0 3 = 5 5 0 . 1 0 0
Retrieved from "https://computing.ece.vt.edu/mediawiki/index.php?title=Synopsys_Tutorial:_Power_Estimation&oldid=859" This page was last modified on 14 February 2008, at 17:33. Content is available under Creative Commons Attribution Share Alike. Virginia Tech
https://computing.ece.vt.edu/wiki/Synopsys_Tutorial:_Power_Estimation
7/7