aboutsummaryrefslogtreecommitdiffstats
path: root/fpga_interchange/examples/boards.cmake
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-04-07 12:07:10 +0200
committerAlessandro Comodi <acomodi@antmicro.com>2021-04-14 14:36:07 +0200
commitdfc9c3df8c016c26d8abe985d313b1bf81b4cc82 (patch)
tree9980d457fe97f3db67ba8dc16287bf9c607b0eb8 /fpga_interchange/examples/boards.cmake
parent2912860c9788033a7501726e77bb4962b394280d (diff)
downloadnextpnr-dfc9c3df8c016c26d8abe985d313b1bf81b4cc82.tar.gz
nextpnr-dfc9c3df8c016c26d8abe985d313b1bf81b4cc82.tar.bz2
nextpnr-dfc9c3df8c016c26d8abe985d313b1bf81b4cc82.zip
interchange: add FASM generation target and clean-up tests
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to 'fpga_interchange/examples/boards.cmake')
-rw-r--r--fpga_interchange/examples/boards.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/fpga_interchange/examples/boards.cmake b/fpga_interchange/examples/boards.cmake
index c44ab930..3639080b 100644
--- a/fpga_interchange/examples/boards.cmake
+++ b/fpga_interchange/examples/boards.cmake
@@ -2,6 +2,7 @@ function(add_board)
# ~~~
# add_board(
# name <board name>
+ # device_family <device family>
# device <common device>
# package <package>
# )
@@ -12,6 +13,8 @@ function(add_board)
#
# Arguments:
# - name: name of the board. E.g. arty
+ # - device_family: the name of the family this device belongs to.
+ # E.g. the xc7a35t device belongs to the xc7 family
# - device: common device name of a set of parts. E.g. xc7a35tcsg324-1 and xc7a35tcpg236-1
# share the same xc7a35t device prefix
# - package: one of the packages available for a given device. E.g. cpg236
@@ -20,7 +23,7 @@ function(add_board)
# - board-<name>
set(options)
- set(oneValueArgs name device package)
+ set(oneValueArgs name device_family device package)
set(multiValueArgs)
cmake_parse_arguments(
@@ -32,6 +35,7 @@ function(add_board)
)
set(name ${add_board_name})
+ set(device_family ${add_board_device_family})
set(device ${add_board_device})
set(package ${add_board_package})
@@ -39,6 +43,7 @@ function(add_board)
set_target_properties(
board-${name}
PROPERTIES
+ DEVICE_FAMILY ${device_family}
DEVICE ${device}
PACKAGE ${package}
)