2020-11-08 17:31:33 -06:00
|
|
|
#####################################################################
|
|
|
|
# A template script to generate SDF file from post-PnR results
|
|
|
|
# using Synopsys PrimeTime
|
|
|
|
#####################################################################
|
|
|
|
|
|
|
|
##################################
|
|
|
|
# Define environment variables
|
|
|
|
set SKYWATER_PDK_HOME "../../PDK/skywater-pdk";
|
2020-11-23 17:24:26 -06:00
|
|
|
#set FPGA_NETLIST_HOME "../../FPGA1212_FC_HD_SKY_PNR/fpga_top";
|
|
|
|
set FPGA_NETLIST_HOME "/research/ece/lnis/USERS/DARPA_ERI/Tapeout/Nov2020_Skywater/FPGA1212_FLAT_HD_SKY_PNR/fpga_top";
|
2020-11-08 17:35:35 -06:00
|
|
|
set SDF_HOME "../../SDF"
|
2020-11-08 17:31:33 -06:00
|
|
|
#
|
|
|
|
# Enable reporting ALL the timing paths even those are NOT constrained
|
|
|
|
set_app_var svr_enable_vpp true
|
|
|
|
|
2020-11-23 17:24:26 -06:00
|
|
|
set search_path ". * ${SKYWATER_PDK_HOME}/vendor/synopsys/results/lib/sky130_fd_sc_hd/db_nldm"
|
2020-11-08 17:31:33 -06:00
|
|
|
|
|
|
|
set link_path "* sky130_fd_sc_hd__tt_025C_1v80.db"
|
|
|
|
|
|
|
|
# Top-level module name
|
2020-11-23 17:24:26 -06:00
|
|
|
set DESIGN_NAME fpga_top;
|
2020-11-08 17:31:33 -06:00
|
|
|
|
2020-11-23 17:24:26 -06:00
|
|
|
set FPGA_NETLIST_FILES "fpga_top_icv_in_design.pt.v"
|
2020-11-08 17:31:33 -06:00
|
|
|
|
|
|
|
##################################
|
|
|
|
# Read timing libraries
|
|
|
|
read_db "${SKYWATER_PDK_HOME}/vendor/synopsys/results/lib/sky130_fd_sc_hd/db_nldm/sky130_fd_sc_hd__tt_025C_1v80.db"
|
|
|
|
|
|
|
|
##################################
|
|
|
|
# Read post-PnR netlists
|
|
|
|
read_verilog ${FPGA_NETLIST_HOME}/${FPGA_NETLIST_FILES}
|
|
|
|
link_design ${DESIGN_NAME}
|
|
|
|
|
2020-11-23 17:24:26 -06:00
|
|
|
#########################################
|
|
|
|
# Setup constraints to break combinational loops
|
|
|
|
set_disable_timing [get_pins */*/*chan*]
|
|
|
|
set_disable_timing [get_pins */*/*grid_pin*]
|
|
|
|
|
2020-11-08 17:31:33 -06:00
|
|
|
##################################
|
|
|
|
# Read post-PnR parasitics
|
2020-11-23 17:24:26 -06:00
|
|
|
read_parasitics ${FPGA_NETLIST_HOME}/fpga_top_icv_in_design.nominal_25.spef
|
2020-11-08 17:31:33 -06:00
|
|
|
|
|
|
|
##################################
|
|
|
|
# Write sdf file
|
2020-11-23 17:24:26 -06:00
|
|
|
write_sdf -version 3.0 ${SDF_HOME}/FPGA1212_FC_HD_SKY_PNR/fpga_top_icv_in_design.pt.sdf
|
2020-11-08 17:31:33 -06:00
|
|
|
|
|
|
|
##################################
|
|
|
|
# Finish and quit
|
|
|
|
# Comment it out if you want to debug
|
2020-11-23 17:24:26 -06:00
|
|
|
exit
|