vendor.lattice_{ice40,ecp5}: emit Verilog as well, for debugging.
authorwhitequark <whitequark@whitequark.org>
Sun, 13 Oct 2019 18:04:33 +0000 (18:04 +0000)
committerwhitequark <whitequark@whitequark.org>
Sun, 13 Oct 2019 18:04:33 +0000 (18:04 +0000)
nmigen/vendor/lattice_ecp5.py
nmigen/vendor/lattice_ice40.py

index c3ca286ca7697f983d02e66b2ff6d1de0f70a4d9..c1140630fbb28c95a1061b66a3d0e41816410fbc 100644 (file)
@@ -103,6 +103,10 @@ class LatticeECP5Platform(TemplatedPlatform):
             # {{autogenerated}}
             {{emit_rtlil()}}
         """,
+        "{{name}}.debug.v": r"""
+            /* {{autogenerated}} */
+            {{emit_debug_verilog()}}
+        """,
         "{{name}}.ys": r"""
             # {{autogenerated}}
             {% for file in platform.iter_extra_files(".v") -%}
index 5a8d197cf5cce87485a66005109b35ae4e03d777..20a844c642304c7835318032b55eb6e0cf31459e 100644 (file)
@@ -108,6 +108,10 @@ class LatticeICE40Platform(TemplatedPlatform):
             # {{autogenerated}}
             {{emit_rtlil()}}
         """,
+        "{{name}}.debug.v": r"""
+            /* {{autogenerated}} */
+            {{emit_debug_verilog()}}
+        """,
         "{{name}}.ys": r"""
             # {{autogenerated}}
             {% for file in platform.iter_extra_files(".v") -%}