From bb928af976d6006a19ae2f64db48d1752d03b682 Mon Sep 17 00:00:00 2001 From: Unai Martinez-Corral Date: Tue, 7 Jun 2022 12:54:07 +0200 Subject: [PATCH] xc7/counter_test: use 'f4pga build' Signed-off-by: Unai Martinez-Corral --- xc7/counter_test/Makefile | 10 ++++++---- xc7/counter_test/flow.json | 25 +++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 xc7/counter_test/flow.json diff --git a/xc7/counter_test/Makefile b/xc7/counter_test/Makefile index d022824..f537a8a 100644 --- a/xc7/counter_test/Makefile +++ b/xc7/counter_test/Makefile @@ -2,9 +2,7 @@ current_dir := ${CURDIR} TOP := top SOURCES := ${current_dir}/counter.v -ifeq ($(TARGET),arty_35) - XDC := ${current_dir}/arty.xdc -else ifeq ($(TARGET),arty_100) +ifeq ($(TARGET),arty_100) XDC := ${current_dir}/arty.xdc else ifeq ($(TARGET),nexys4ddr) XDC := ${current_dir}/nexys4ddr.xdc @@ -17,5 +15,9 @@ else XDC := ${current_dir}/basys3.xdc endif -include ${current_dir}/../../common/common.mk +ifeq ($(TARGET),arty_35) +build: + f4pga build --flow ./flow.json +endif +include ${current_dir}/../../common/common.mk diff --git a/xc7/counter_test/flow.json b/xc7/counter_test/flow.json new file mode 100644 index 0000000..a3fb657 --- /dev/null +++ b/xc7/counter_test/flow.json @@ -0,0 +1,25 @@ +{ + "default_part": "XC7A35TCSG324-1", + "values": { + "top": "top" + }, + "dependencies": { + "sources": [ + "counter.v" + ], + "synth_log": "synth.log", + "pack_log": "pack.log" + }, + "XC7A35TCSG324-1": { + "default_target": "bitstream", + "dependencies": { + "build_dir": "build/arty_35", + "xdc": [ + "arty.xdc" + ] + }, + "values": { + "part": "xc7a35tcpg236-1" + } + } +}