2020-04-28 19:22:41 -05:00
|
|
|
# Run VPR for the 'and' design
|
|
|
|
#--write_rr_graph example_rr_graph.xml
|
2022-09-20 01:14:15 -05:00
|
|
|
vpr ${VPR_ARCH_FILE} ${VPR_TESTBENCH_BLIF} --clock_modeling route --skip_sync_clustering_and_routing_results on
|
2020-04-28 19:22:41 -05:00
|
|
|
|
|
|
|
# Read OpenFPGA architecture definition
|
|
|
|
read_openfpga_arch -f ${OPENFPGA_ARCH_FILE}
|
|
|
|
|
2020-06-10 16:37:17 -05:00
|
|
|
# Read OpenFPGA simulation settings
|
2020-06-11 12:41:36 -05:00
|
|
|
read_openfpga_simulation_setting -f ${OPENFPGA_SIM_SETTING_FILE}
|
2020-06-10 16:37:17 -05:00
|
|
|
|
2020-04-28 19:22:41 -05:00
|
|
|
# Annotate the OpenFPGA architecture to VPR data base
|
|
|
|
# to debug use --verbose options
|
|
|
|
link_openfpga_arch --activity_file ${ACTIVITY_FILE} --sort_gsb_chan_node_in_edges
|
|
|
|
|
|
|
|
# Check and correct any naming conflicts in the BLIF netlist
|
|
|
|
check_netlist_naming_conflict --fix --report ./netlist_renaming.xml
|
|
|
|
|
|
|
|
# Build the module graph
|
|
|
|
# - Enabled compression on routing architecture modules
|
|
|
|
# - Enable pin duplication on grid modules
|
2020-06-12 12:32:52 -05:00
|
|
|
build_fabric --compress_routing #--verbose
|
2020-04-28 19:22:41 -05:00
|
|
|
|
2020-05-05 15:38:46 -05:00
|
|
|
# Write the fabric hierarchy of module graph to a file
|
|
|
|
# This is used by hierarchical PnR flows
|
|
|
|
write_fabric_hierarchy --file ./fabric_hierarchy.txt
|
|
|
|
|
2022-07-26 15:48:54 -05:00
|
|
|
# Write the fabric I/O attributes to a file
|
|
|
|
# This is used by pin constraint files
|
2022-07-26 15:55:29 -05:00
|
|
|
write_fabric_io_info --file ./fabric_io_location.xml --verbose
|
2022-07-26 15:48:54 -05:00
|
|
|
|
2020-04-28 19:22:41 -05:00
|
|
|
# Write the Verilog netlist for FPGA fabric
|
|
|
|
# - Enable the use of explicit port mapping in Verilog netlist
|
2021-04-11 18:26:27 -05:00
|
|
|
write_fabric_verilog --file ${OPENFPGA_VERILOG_OUTPUT_DIR}/SRC --explicit_port_mapping --include_timing --print_user_defined_template --verbose
|
2020-04-28 19:22:41 -05:00
|
|
|
|
|
|
|
# Write the SDC files for PnR backend
|
|
|
|
# - Turn on every options here
|
|
|
|
write_pnr_sdc --file ./SDC
|
|
|
|
|
2020-05-14 18:23:58 -05:00
|
|
|
# Write SDC to disable timing for configure ports
|
|
|
|
write_sdc_disable_timing_configure_ports --file ./SDC/disable_configure_ports.sdc
|
|
|
|
|
2020-04-28 19:22:41 -05:00
|
|
|
# Finish and exit OpenFPGA
|
|
|
|
exit
|
|
|
|
|
|
|
|
# Note :
|
|
|
|
# To run verification at the end of the flow maintain source in ./SRC directory
|