build.plat: strip internal attributes from Verilog output.
authorwhitequark <whitequark@whitequark.org>
Tue, 24 Sep 2019 14:54:22 +0000 (14:54 +0000)
committerwhitequark <whitequark@whitequark.org>
Tue, 24 Sep 2019 14:56:00 +0000 (14:56 +0000)
commit53bb4300a36a8e5a2f9f9613d484d75a73643273
treea93ef2e7693f27d3566066250bad485eceef0f40
parentf87c00e6c32781555ec17d95bf4ec8b1b9c5a765
build.plat: strip internal attributes from Verilog output.

Although useful for debugging, most external tools often complain
about such attributes (with notable exception of Vivado). As such,
it is better to emit Verilog with these attributes into a separate
file such as `design.debug.v` and only emit the attributes that were
explicitly placed by the user to `design.v`.

This still leaves the (*init*) attribute. See #220 for details.
nmigen/back/verilog.py
nmigen/build/plat.py
nmigen/vendor/lattice_ecp5.py
nmigen/vendor/lattice_ice40.py
nmigen/vendor/xilinx_7series.py
nmigen/vendor/xilinx_spartan_3_6.py