2
0
mirror of https://github.com/m-labs/artiq.git synced 2024-12-25 03:08:27 +08:00

rtio/phy: fix input synchronization

This commit is contained in:
Sebastien Bourdeauducq 2014-11-30 10:50:48 +08:00
parent c78c5a2b4f
commit dda4002ae1

View File

@ -19,7 +19,7 @@ class SimplePHY(Module):
i_pad = Signal()
self.sync.rio += ts.oe.eq(chif.oe)
self.comb += ts.o.eq(o_pad)
self.specials += MultiReg(ts.i, i_pad), \
self.specials += MultiReg(ts.i, i_pad, "rio"), \
ts.get_tristate(pad)
i_pad_d = Signal()