YosysHQ / nextpnr

nextpnr portable FPGA place and route tool
ISC License
1.24k stars 237 forks source link

ecp5: Don't segfault when DI port of TRELLIS_FF unconnected #1242

Closed laanwj closed 7 months ago

laanwj commented 7 months ago

Currently a segfault happens while packing FFs when the DI port is not specified. Leaving it unconnected is probably incorrect, but it shouldn't crash the placer. This can only happen when doing direct instantiation. Fix by adding a check.