aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/examples/tests.cmake
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-03-15 11:02:56 +0100
committerAlessandro Comodi <acomodi@antmicro.com>2021-03-16 15:39:02 +0100
commitf52b5b39edf3075fbee7244aabea1a12f6cdc70b (patch)
treec576409140584d1d32e35ae3321be26cbb9a382f /fpga_interchange/examples/tests.cmake
parent3f3cabea2d16cd93c8d9114939b8a4fc883f09f1 (diff)
downloadnextpnr-f52b5b39edf3075fbee7244aabea1a12f6cdc70b.tar.gz
nextpnr-f52b5b39edf3075fbee7244aabea1a12f6cdc70b.tar.bz2
nextpnr-f52b5b39edf3075fbee7244aabea1a12f6cdc70b.zip
fpga_interchange: tests: add techmap optional source file
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange/examples/tests.cmake')
-rw-r--r--fpga_interchange/examples/tests.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/fpga_interchange/examples/tests.cmake b/fpga_interchange/examples/tests.cmake
index 9dc73add..899bfa4a 100644
--- a/fpga_interchange/examples/tests.cmake
+++ b/fpga_interchange/examples/tests.cmake
@@ -8,6 +8,7 @@ function(add_interchange_test)
# xdc <xdc>
# top <top name>
# sources <sources list>
+ # [techmap <techmap file>]
# )
#
# Generates targets to run desired tests
@@ -16,10 +17,10 @@ function(add_interchange_test)
# - test-fpga_interchange-<name>-json : synthesis output
# - test-fpga_interchange-<name>-netlist : interchange logical netlist
# - test-fpga_interchange-<name>-phys : interchange physical netlist
- # - test-fpga_interchange-<name>-phys : design checkpoint with RapidWright
+ # - test-fpga_interchange-<name>-dcp : design checkpoint with RapidWright
set(options)
- set(oneValueArgs name device package tcl xdc top)
+ set(oneValueArgs name device package tcl xdc top techmap)
set(multiValueArgs sources)
cmake_parse_arguments(
@@ -36,6 +37,7 @@ function(add_interchange_test)
set(top ${add_interchange_test_top})
set(tcl ${CMAKE_CURRENT_SOURCE_DIR}/${add_interchange_test_tcl})
set(xdc ${CMAKE_CURRENT_SOURCE_DIR}/${add_interchange_test_xdc})
+ set(techmap ${CMAKE_CURRENT_SOURCE_DIR}/${add_interchange_test_techmap})
set(sources)
foreach(source ${add_interchange_test_sources})
@@ -54,6 +56,7 @@ function(add_interchange_test)
COMMAND
SOURCES=${sources}
OUT_JSON=${synth_json}
+ TECHMAP=${techmap}
yosys -c ${tcl}
DEPENDS ${sources}
)