link_tb: fix cont regression

This commit is contained in:
Florent Kermarrec 2014-12-15 20:00:19 +01:00
parent fadd21fae2
commit a71fa2f522
2 changed files with 5 additions and 3 deletions

View File

@ -44,7 +44,10 @@ class SATACONTInserter(Module):
last_was_primitive.eq(1) last_was_primitive.eq(1)
).Else( ).Else(
last_was_primitive.eq(0) last_was_primitive.eq(0)
), )
)
self.comb += \
If(sink.stb & source.ack,
If(change | last_primitive_insert_d, If(change | last_primitive_insert_d,
counter.reset.eq(1) counter.reset.eq(1)
).Else( ).Else(

View File

@ -67,8 +67,7 @@ class LinkLogger(Module):
class TB(Module): class TB(Module):
def __init__(self): def __init__(self):
self.submodules.hdd = HDD( self.submodules.hdd = HDD(
phy_debug=False, link_debug=False, link_random_level=50,
link_random_level=50,
transport_debug=False, transport_loopback=True) transport_debug=False, transport_loopback=True)
self.submodules.link = SATALink(self.hdd.phy) self.submodules.link = SATALink(self.hdd.phy)