From 642c4b303606e13f2d4c8ced0e78a4b651f482b9 Mon Sep 17 00:00:00 2001 From: Greg Davill Date: Mon, 27 Apr 2020 20:10:25 +0930 Subject: [PATCH] build/trellis: add verilog_read -defer option to yosys script --- litex/build/lattice/trellis.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/build/lattice/trellis.py b/litex/build/lattice/trellis.py index a9ae49be4..fa19b9192 100644 --- a/litex/build/lattice/trellis.py +++ b/litex/build/lattice/trellis.py @@ -49,7 +49,10 @@ def _build_lpf(named_sc, named_pc, build_name): # Yosys/Nextpnr Helpers/Templates ------------------------------------------------------------------ _yosys_template = [ + "verilog_defaults -push", + "verilog_defaults -add -defer", "{read_files}", + "verilog_defaults -pop", "attrmap -tocase keep -imap keep=\"true\" keep=1 -imap keep=\"false\" keep=0 -remove keep=0", "synth_ecp5 -abc9 {nwl} -json {build_name}.json -top {build_name}", ]