enjoy-digital / litedram

Small footprint and configurable DRAM core
Other
365 stars 115 forks source link

phy/gw2ddrphy: supressing warnings about unconnected and bit length. #326

Closed trabucayre closed 1 year ago

trabucayre commented 1 year ago

When using gw2ddrphy Gowin tool produces bunch of warnings like:

WARN  (EX3073) : Port 'Q1' remains unconnected for this instance("/somewhere/build/sipeed_tang_primer_20k/gateware/sipeed_tang_primer_20k.v":10334)
[...]
WARN  (EX3670) : Actual bit length 1 differs from formal bit length 8 for port 'WSTEP'("/somewhere/build/sipeed_tang_primer_20k/gateware/sipeed_tang_primer_20k.v":10364)

It's also true for simulation using verilator

This PR add an class called Open to handle unconnected output ports, and uses Constant to specify input ports size.

enjoy-digital commented 1 year ago

Thanks @trabucayre!