Question

When creating scripts for Synopsys PrimeTime, the tutorials I have found execute the scripts by loading the tool (pt_shell) then sourcing the script.

To run script:

pt_shell
source power.scr

Example Script:

#power.scr
set power_enable_analysis TRUE
set target_library "/home/syedh/iit_stdcells/lib/tsmc018/lib/iit018_stdcells.db"
set link_library "/home/syedh/iit_stdcells/lib/tsmc018/lib/iit018_stdcells.db *"

read_db $target_library
read_verilog top_syn.v
current_design top
link
read_vcd dmp_top.vcd -strip_path tb_top/uut
create_power_waveforms –output vcd

report_power

How do I make a executable script that will launch PrimeTime (pt_shell) and then run the commands?

Examples came from here.

Was it helpful?

Solution

pt_shell -h shows the -file option which may do what you need:

pt_shell -file power.scr
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top