X-Git-Url: https://git.libre-soc.org/?p=soc.git;a=blobdiff_plain;f=src%2Fscoreboard%2Ftest_iq.py;h=3f1f99646e3280b37d92a0ebcd4d7f4f697aebe1;hp=6bbb26db4c33921fbf589242a69a8ed97481f2c4;hb=6a3626c21002512a60a92d6b4a0a27d41622b5c8;hpb=d3b64e32129089e714aa5e440ab24bfde364ad92 diff --git a/src/scoreboard/test_iq.py b/src/scoreboard/test_iq.py index 6bbb26db..3f1f9964 100644 --- a/src/scoreboard/test_iq.py +++ b/src/scoreboard/test_iq.py @@ -35,10 +35,10 @@ class IQSim: o_p_ready = yield self.dut.p_ready_o yield + yield self.dut.p_add_i.eq(0) print ("send", len(self.iq), i, sendlen) - yield self.dut.p_add_i.eq(0) # wait random period of time before queueing another value for j in range(randint(0, 3)): yield @@ -62,6 +62,9 @@ class IQSim: def rcv(self): i = 0 + yield + yield + yield while i < len(self.iq): rcvlen = randint(1, self.n_out) #print ("outreq", rcvlen) @@ -92,7 +95,7 @@ def test_iq(): wid = 8 opwid = 4 qlen = 5 - n_in = 2 + n_in = 3 n_out = 3 dut = InstructionQ(wid, opwid, qlen, n_in, n_out) insns = mk_insns(10, wid, opwid)