cores/gpio/GPIOTristate: Use Record.flatten() instead of Record.raw_bits().

Fix verilog syntax error.
This commit is contained in:
Florent Kermarrec 2021-11-30 15:48:34 +01:00
parent 9036050364
commit 16a43e983e

View file

@ -85,7 +85,7 @@ class GPIOTristate(_GPIOIRQ, Module, AutoCSR):
# Internal Tristate. # Internal Tristate.
if internal: if internal:
if isinstance(pads, Record): if isinstance(pads, Record):
pads = pads.raw_bits() pads = pads.flatten()
# Proper inout IOs. # Proper inout IOs.
for i in range(nbits): for i in range(nbits):
t = TSTriple() t = TSTriple()