From a71fa2f522380e1345aa8a4ba5e2f71478aa9c54 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Mon, 15 Dec 2014 20:00:19 +0100 Subject: [PATCH] link_tb: fix cont regression --- lib/sata/link/cont.py | 5 ++++- lib/sata/test/link_tb.py | 3 +-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/sata/link/cont.py b/lib/sata/link/cont.py index 731ef9a5..0666137a 100644 --- a/lib/sata/link/cont.py +++ b/lib/sata/link/cont.py @@ -44,7 +44,10 @@ class SATACONTInserter(Module): last_was_primitive.eq(1) ).Else( last_was_primitive.eq(0) - ), + ) + ) + self.comb += \ + If(sink.stb & source.ack, If(change | last_primitive_insert_d, counter.reset.eq(1) ).Else( diff --git a/lib/sata/test/link_tb.py b/lib/sata/test/link_tb.py index 5bf51ca7..907f5896 100644 --- a/lib/sata/test/link_tb.py +++ b/lib/sata/test/link_tb.py @@ -67,8 +67,7 @@ class LinkLogger(Module): class TB(Module): def __init__(self): self.submodules.hdd = HDD( - phy_debug=False, - link_random_level=50, + link_debug=False, link_random_level=50, transport_debug=False, transport_loopback=True) self.submodules.link = SATALink(self.hdd.phy) -- 2.30.2