From c4c891dec51a77560f8660967f6666b170b517dc Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 27 Apr 2020 13:17:53 +0200 Subject: [PATCH] build/icestorm: add verilog_read -defer option to yosys script (changes similar the ones applied to trellis). --- litex/build/lattice/icestorm.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/litex/build/lattice/icestorm.py b/litex/build/lattice/icestorm.py index a084a998..2822a9b5 100644 --- a/litex/build/lattice/icestorm.py +++ b/litex/build/lattice/icestorm.py @@ -38,7 +38,10 @@ def _build_pre_pack(vns, clocks): # 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_ice40 {synth_opts} -json {build_name}.json -top {build_name} -dsp", ] -- 2.30.2