generated from mattvenn/wrapped_project_template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathshim.sdc
28 lines (22 loc) · 1.32 KB
/
shim.sdc
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
create_clock [get_ports $::env(CLOCK2_PORT)] -name $::env(CLOCK2_PORT) -period $::env(CLOCK2_PERIOD)
set input_delay_value [expr $::env(CLOCK2_PERIOD) * $::env(IO_PCT)]
set output_delay_value [expr $::env(CLOCK2_PERIOD) * $::env(IO_PCT)]
puts "\[INFO\]: Setting output delay to: $output_delay_value"
puts "\[INFO\]: Setting input delay to: $input_delay_value"
set_max_fanout $::env(SYNTH_MAX_FANOUT) [current_design]
set clk_indx [lsearch [all_inputs] [get_port $::env(CLOCK2_PORT)]]
#set rst_indx [lsearch [all_inputs] [get_port resetn]]
set all_inputs_wo_clk [lreplace [all_inputs] $clk_indx $clk_indx]
#set all_inputs_wo_clk_rst [lreplace $all_inputs_wo_clk $rst_indx $rst_indx]
set all_inputs_wo_clk_rst $all_inputs_wo_clk
# correct resetn
set_input_delay $input_delay_value -clock [get_clocks $::env(CLOCK2_PORT)] $all_inputs_wo_clk_rst
#set_input_delay 0.0 -clock [get_clocks $::env(CLOCK2_PORT)] {resetn}
set_output_delay $output_delay_value -clock [get_clocks $::env(CLOCK2_PORT)] [all_outputs]
# TODO set this as parameter
set_driving_cell -lib_cell $::env(SYNTH_DRIVING_CELL) -pin $::env(SYNTH_DRIVING_CELL_PIN) [all_inputs]
set cap_load [expr $::env(SYNTH_CAP_LOAD) / 1000.0]
puts "\[INFO\]: Setting load to: $cap_load"
set_load $cap_load [all_outputs]
puts "$::env(BASE_SDC_FILE_OLD)"
read_sdc -echo "$::env(BASE_SDC_FILE_OLD)"