-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdcshell.tcl
More file actions
39 lines (24 loc) · 875 Bytes
/
dcshell.tcl
File metadata and controls
39 lines (24 loc) · 875 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# script for evaluation of the module in dc.shell
proc evaluate { ds uid srcdir libList } {
puts "UID: $uid"
set prjdir $srcdir/synth/$uid
file mkdir $prjdir
# test if results already exist
if {[file exists ${prjdir}/power_opt.rep]} {
puts "Results already exist"
return
}
foreach fn $libList {
analyze -library work -format verilog $fn
}
#analyze -library work -format verilog $libList
analyze -library work -format verilog ${srcdir}/${uid}.v
elaborate $uid -library work
set_design_top $uid
set_driving_cell -lib_cell INVX1 [all_inputs]
compile_ultra
redirect "$prjdir/check.rep" { check_design }
redirect "$prjdir/time_opt.rep" { report_timing }
redirect "$prjdir/cell_opt.rep" { report_cell }
redirect "$prjdir/power_opt.rep" { report_power }
}