rtio/phy/ttl_simple: reset sensitivity with RTIO logic

This commit is contained in:
Sebastien Bourdeauducq 2015-05-02 16:17:31 +08:00
parent d8fdac6f86
commit cb65b1e322

View File

@ -26,12 +26,11 @@ class Inout(Module):
sensitivity = Signal(2) sensitivity = Signal(2)
self.sync.rio_phy += If(self.rtlink.o.stb, self.sync.rio_phy += If(self.rtlink.o.stb,
Case(self.rtlink.o.address, { If(self.rtlink.o.address == 0, ts.o.eq(self.rtlink.o.data[0])),
0: ts.o.eq(self.rtlink.o.data[0]), If(self.rtlink.o.address == 1, ts.oe.eq(self.rtlink.o.data[0])),
1: ts.oe.eq(self.rtlink.o.data[0]),
2: sensitivity.eq(self.rtlink.o.data)
}).makedefault()
) )
self.sync.rio += If(self.rtlink.o.stb & (self.rtlink.o.address == 2),
sensitivity.eq(self.rtlink.o.data))
i = Signal() i = Signal()
i_d = Signal() i_d = Signal()