vendor.xilinx_spartan_3_6: always use -w for map/par/bitgen.
authorwhitequark <cz@m-labs.hk>
Sun, 4 Aug 2019 14:12:02 +0000 (14:12 +0000)
committerwhitequark <cz@m-labs.hk>
Sun, 4 Aug 2019 14:12:02 +0000 (14:12 +0000)
-w stands for "override output file", and supplying user options
should not remove it.

nmigen/vendor/xilinx_spartan_3_6.py

index fd9ce2b61625fa887cdbcf9cb1d7690b19d331eb..4a44ffdff64d1d503f4dd960bd217128947eb057 100644 (file)
@@ -138,21 +138,24 @@ class XilinxSpartan3Or6Platform(TemplatedPlatform):
         r"""
         {{get_tool("map")}}
             {{verbose("-detail")}}
-            {{get_override("map_opts")|default(["-w"])|options}}
+            {{get_override("map_opts")|default([])|options}}
+            -w
             -o {{name}}_map.ncd
             {{name}}.ngd
             {{name}}.pcf
         """,
         r"""
         {{get_tool("par")}}
-            {{get_override("par_opts")|default(["-w"])|options}}
+            {{get_override("par_opts")|default([])|options}}
+            -w
             {{name}}_map.ncd
             {{name}}_par.ncd
             {{name}}.pcf
         """,
         r"""
         {{get_tool("bitgen")}}
-            {{get_override("bitgen_opts")|default(["-w"])|options}}
+            {{get_override("bitgen_opts")|default([])|options}}
+            -w
             -g Binary:Yes
             {{name}}_par.ncd
             {{name}}.bit