| ############################################################################### |
| # Created by write_sdc |
| # Sun Nov 14 09:07:48 2021 |
| ############################################################################### |
| current_design wb_host |
| ############################################################################### |
| # Timing Constraints |
| ############################################################################### |
| create_clock -name wbm_clk_i -period 10.0000 [get_ports {wbm_clk_i}] |
| create_clock -name wbs_clk_i -period 10.0000 [get_ports {wbs_clk_i}] |
| create_clock -name lbist_clk -period 10.0000 [get_ports {lbist_clk_int}] |
| create_clock -name uart_clk -period 100.0000 [get_pins {u_uart2wb.u_core.u_uart_clk.u_mux/X}] |
| |
| set_clock_transition 0.1500 [all_clocks] |
| set_clock_uncertainty -setup 0.2500 [all_clocks] |
| set_clock_uncertainty -hold 0.2500 [all_clocks] |
| |
| set ::env(SYNTH_TIMING_DERATE) 0.05 |
| puts "\[INFO\]: Setting timing derate to: [expr {$::env(SYNTH_TIMING_DERATE) * 10}] %" |
| set_timing_derate -early [expr {1-$::env(SYNTH_TIMING_DERATE)}] |
| set_timing_derate -late [expr {1+$::env(SYNTH_TIMING_DERATE)}] |
| |
| set_clock_groups -name async_clock -asynchronous \ |
| -group [get_clocks {uart_clk}] \ |
| -group [get_clocks {wbs_clk_i}]\ |
| -group [get_clocks {wbm_clk_i}]\ |
| -group [get_clocks {lbist_clk}]\ |
| -comment {Async Clock group} |
| |
| ## Scan Mode & Scan Enable |
| set_case_analysis 0 [get_pins {u_wb_host/u_scan_buf.u_buf/X}] |
| set_case_analysis 0 [get_pins {u_wb_host/scan_en}] |
| |
| set_case_analysis 0 [get_ports {cfg_cska_wh[0]}] |
| set_case_analysis 0 [get_ports {cfg_cska_wh[1]}] |
| set_case_analysis 0 [get_ports {cfg_cska_wh[2]}] |
| set_case_analysis 0 [get_ports {cfg_cska_wh[3]}] |
| |
| set_case_analysis 0 [get_ports {cfg_cska_lbist[0]}] |
| set_case_analysis 0 [get_ports {cfg_cska_lbist[1]}] |
| set_case_analysis 0 [get_ports {cfg_cska_lbist[2]}] |
| set_case_analysis 0 [get_ports {cfg_cska_lbist[3]}] |
| |
| #disable clock gating check at static clock select pins |
| set_false_path -through [get_pins u_wbs_clk_sel.u_mux/S] |
| |
| #Static Signal Clock Skew adjustment |
| |
| set_max_delay 3.5 -from [get_ports {wbd_clk_int}] |
| set_max_delay 2 -to [get_ports {wbd_clk_wh}] |
| set_max_delay 3.5 -from wbd_clk_int -to wbd_clk_mbist |
| |
| set_max_delay 3.5 -to [get_ports {lbist_clk_out}] |
| set_max_delay 3.5 -to [get_ports {scan_in}] |
| set_max_delay 3.5 -from [get_ports {scan_out}] |
| set_max_delay 3.5 -to [get_ports {scan_rst_n}] |
| set_max_delay 3.5 -to [get_ports {scan_en}] |
| set_max_delay 3.5 -to [get_ports {scan_mode}] |
| set_max_delay 3.5 -to [get_ports {cfg_clk_ctrl1[*]}] |
| set_max_delay 3.5 -to [get_ports {cfg_clk_ctrl2[*]}] |
| set_max_delay 3.5 -to [get_ports {io_out[*]}] |
| set_max_delay 3.5 -to [get_ports {io_oeb[*]}] |
| set_max_delay 3.5 -to [get_ports {la_data_out[*]}] |
| set_max_delay 3.5 -to [get_ports {wbd_int_rst_n}] |
| set_max_delay 3.5 -to [get_ports {bist_rst_n}] |
| |
| |
| #Strobe is registered inside the wb_host before generating chip select |
| # So wbm_adr_i wbm_we_i wbm_sel_i wbm_dat_i are having 2 cycle setup |
| set_multicycle_path -setup -from [get_ports {wbm_adr_i[*]}] 2 |
| set_multicycle_path -setup -from [get_ports {wbm_cyc_i}] 2 |
| set_multicycle_path -setup -from [get_ports {wbm_dat_i[*]}] 2 |
| set_multicycle_path -setup -from [get_ports {wbm_sel_i[*]}] 2 |
| set_multicycle_path -setup -from [get_ports {wbm_we_i}] 2 |
| |
| set_multicycle_path -hold -from [get_ports {wbm_adr_i[*]}] 2 |
| set_multicycle_path -hold -from [get_ports {wbm_cyc_i}] 2 |
| set_multicycle_path -hold -from [get_ports {wbm_dat_i[*]}] 2 |
| set_multicycle_path -hold -from [get_ports {wbm_sel_i[*]}] 2 |
| set_multicycle_path -hold -from [get_ports {wbm_we_i}] 2 |
| |
| # |
| set_input_delay 5.0000 -clock [get_clocks {wbm_clk_i}] -max -add_delay [get_ports {wbm_rst_i}] |
| set_input_delay 5.0000 -clock [get_clocks {wbm_clk_i}] -max -add_delay [get_ports {wbm_stb_i}] |
| |
| set_input_delay 1.0000 -clock [get_clocks {wbm_clk_i}] -min -add_delay [get_ports {wbm_rst_i}] |
| set_input_delay 1.0000 -clock [get_clocks {wbm_clk_i}] -min -add_delay [get_ports {wbm_stb_i}] |
| |
| set_output_delay -max 5.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_ack_o}] |
| set_output_delay -max 5.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_dat_o[*]}] |
| set_output_delay -max 5.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_err_o}] |
| |
| set_output_delay -min 1.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_ack_o}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_dat_o[*]}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbm_clk_i}] -add_delay [get_ports {wbm_err_o}] |
| # WBS I/F |
| set_input_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_ack_i}] |
| set_input_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_dat_i[*]}] |
| |
| set_input_delay -min 2.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_ack_i}] |
| set_input_delay -min 2.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_dat_i[*]}] |
| |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_adr_o[*]}] |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_cyc_o}] |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_dat_o[*]}] |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_sel_o[*]}] |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_stb_o}] |
| set_output_delay -max 4.5000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_we_o}] |
| |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_adr_o[*]}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_cyc_o}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_dat_o[*]}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_sel_o[*]}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_stb_o}] |
| set_output_delay -min 1.0000 -clock [get_clocks {wbs_clk_i}] -add_delay [get_ports {wbs_we_o}] |
| |
| ############################################################################### |
| # Environment |
| ############################################################################### |
| set_driving_cell -lib_cell sky130_fd_sc_hd__inv_8 -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] |
| |
| ############################################################################### |
| # Design Rules |
| ############################################################################### |
| |
| |