build/icestorm: add verilog_read -defer option to yosys script (changes similar the...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 27 Apr 2020 11:17:53 +0000 (13:17 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 27 Apr 2020 11:17:53 +0000 (13:17 +0200)
litex/build/lattice/icestorm.py

index a084a9980080d235782779e99f59336760e04bc8..2822a9b539a276650f0cbaf24f9168072ec80ad8 100644 (file)
@@ -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",
 ]