From 4ee8237833990a5b25c00bfd68881012c3375fd4 Mon Sep 17 00:00:00 2001 From: Carlos Venegas Date: Fri, 6 Oct 2023 16:10:12 +0200 Subject: [PATCH] Fix *unconstrained in LPF* for ecp5 boards with the new oss cad suite --- apio/resources/ecp5/SConstruct | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apio/resources/ecp5/SConstruct b/apio/resources/ecp5/SConstruct index ecda68f7..4778963d 100644 --- a/apio/resources/ecp5/SConstruct +++ b/apio/resources/ecp5/SConstruct @@ -20,6 +20,7 @@ PROG = ARGUMENTS.get('prog', '') FPGA_SIZE = ARGUMENTS.get('fpga_size', '') FPGA_TYPE = ARGUMENTS.get('fpga_type', '') FPGA_PACK = ARGUMENTS.get('fpga_pack', '') +YOSYS_TOP = ARGUMENTS.get('top_module', '') FPGA_IDCODE = ARGUMENTS.get('fpga_idcode', '') VERBOSE_ALL = ARGUMENTS.get('verbose_all', False) VERBOSE_YOSYS = ARGUMENTS.get('verbose_yosys', False) @@ -169,6 +170,7 @@ except IndexError: # -- Define the Sintesizing Builder synth = Builder( action='yosys -p \"synth_ecp5 -json $TARGET\" {} $SOURCES'.format( + ('-top '+YOSYS_TOP) if YOSYS_TOP else '', '' if VERBOSE_ALL or VERBOSE_YOSYS else '-q' ), suffix='.json',