build/lattice/prjtrellis: modify generated verilog instead of creating a wrapper...
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Oct 2018 07:51:23 +0000 (08:51 +0100)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Tue, 30 Oct 2018 07:54:30 +0000 (08:54 +0100)
commit6048a5291cb0ec3cffa2a6c137acd913f6f41276
tree0a666d7727bdec2ab62c2b678b9a0df52bbec801
parent2243f628f7846bc40f786b570213071784c52dfa
build/lattice/prjtrellis: modify generated verilog instead of creating a wrapper, handle inouts.

nextpnr expects TRELLIS_IO on all ios, it's not possible to ensure that with a wrapper.
We now just modify the generated verilog to insert the io constraints and TRELLIS_IOs.
litex/build/lattice/prjtrellis.py
litex/gen/fhdl/verilog.py