build/xilinx/ise.py: write .v file for post synthesis sim
authorMichael Betz <michibetz@gmail.com>
Tue, 23 Apr 2019 07:22:48 +0000 (09:22 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 23 Apr 2019 07:22:48 +0000 (09:22 +0200)
litex/build/xilinx/ise.py

index cd3e2d183a4e666a209fd4a7bec497384f7f7a59..0bb19d4988893ce8d1ecba20bfd6cb2fc87f5670 100644 (file)
@@ -108,6 +108,11 @@ def _run_ise(build_name, ise_path, source, mode, ngdbuild_opt,
         ext = "ngc"
         build_script_contents += """
 xst -ifn {build_name}.xst{fail_stmt}
+"""
+
+    # This generates a .v file for post synthesis simulation
+    build_script_contents += """
+netgen -ofmt verilog -w -sim {build_name}.{ext} {build_name}_synth.v
 """
 
     build_script_contents += """