diff options
author | Alessandro Comodi <acomodi@antmicro.com> | 2021-06-02 09:49:30 +0200 |
---|---|---|
committer | Alessandro Comodi <acomodi@antmicro.com> | 2021-06-11 11:19:01 +0200 |
commit | 104536b7aae5970ae1d1e95394f26fbf04603d12 (patch) | |
tree | 0f1fad9a952f272e6436456077fe54ba3a7730ea /fpga_interchange/examples | |
parent | 7278d3c0edbc6f92ef4c69d7c5db66e811c7e9c4 (diff) | |
download | nextpnr-104536b7aae5970ae1d1e95394f26fbf04603d12.tar.gz nextpnr-104536b7aae5970ae1d1e95394f26fbf04603d12.tar.bz2 nextpnr-104536b7aae5970ae1d1e95394f26fbf04603d12.zip |
interchange: add support for generating BEL clusters
Clustering greatly helps the placer to identify and pack together
specific cells at the same site (e.g. LUT+FF), or cells that are chained through
dedicated interconnections (e.g. CARRY CHAINS)
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange/examples')
-rw-r--r-- | fpga_interchange/examples/tests.cmake | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/fpga_interchange/examples/tests.cmake b/fpga_interchange/examples/tests.cmake index 3c97fe26..48b1cee3 100644 --- a/fpga_interchange/examples/tests.cmake +++ b/fpga_interchange/examples/tests.cmake @@ -77,13 +77,14 @@ function(add_interchange_test) # Synthesis set(synth_json ${CMAKE_CURRENT_BINARY_DIR}/${name}.json) + set(synth_log ${CMAKE_CURRENT_BINARY_DIR}/${name}.json.log) add_custom_command( OUTPUT ${synth_json} COMMAND ${CMAKE_COMMAND} -E env SOURCES="${sources}" OUT_JSON=${synth_json} TECHMAP=${techmap} - yosys -c ${tcl} + yosys -c ${tcl} -l ${synth_log} DEPENDS ${sources} ${techmap} ${tcl} ) @@ -134,6 +135,7 @@ function(add_interchange_test) get_property(chipdb_bin_loc TARGET device-${device} PROPERTY CHIPDB_BIN_LOC) set(phys ${CMAKE_CURRENT_BINARY_DIR}/${name}.phys) + set(phys_log ${CMAKE_CURRENT_BINARY_DIR}/${name}.phys.log) add_custom_command( OUTPUT ${phys} COMMAND @@ -143,6 +145,7 @@ function(add_interchange_test) --netlist ${netlist} --phys ${phys} --package ${package} + --log ${phys_log} DEPENDS nextpnr-fpga_interchange ${netlist} @@ -151,6 +154,7 @@ function(add_interchange_test) ${chipdb_bin_loc} ) + set(phys_verbose_log ${CMAKE_CURRENT_BINARY_DIR}/${name}.phys.verbose.log) add_custom_target( test-${family}-${name}-phys-verbose COMMAND @@ -161,6 +165,7 @@ function(add_interchange_test) --phys ${phys} --package ${package} --verbose + --log ${phys_verbose_log} DEPENDS ${netlist} ${xdc} |