Skip to content

Commit

Permalink
Merge pull request #29 from Kev-J/fix-missing-word
Browse files Browse the repository at this point in the history
Fix missing word
Merged with thanks
  • Loading branch information
Martoni authored Oct 11, 2024
2 parents 9d7a887 + ad02df9 commit 9cb49d6
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions cocotbext/wishbone/driver.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@


import cocotb
from cocotb.triggers import RisingEdge, Event
from cocotb.triggers import FallingEdge, RisingEdge, Event
from cocotb_bus.drivers import BusDriver
from cocotb.result import TestFailure
from cocotb.binary import BinaryValue
Expand Down Expand Up @@ -247,7 +246,7 @@ async def _read(self):
Reader for slave replies
"""
count = 0
clkedge = RisingEdge(self.clock)
clkedge = FallingEdge(self.clock)
while self.busy:
ack, reply = self._get_reply()
# valid reply?
Expand All @@ -256,7 +255,7 @@ async def _read(self):
#append reply and meta info to result buffer
tmpRes = WBRes(ack=reply, sel=None, adr=None, datrd=datrd, datwr=None, waitIdle=None, waitStall=None, waitAck=self._clk_cycle_count, cti=None, bte=None)
self._res_buf.append(tmpRes)
self._acked_ops += 1

await clkedge
count += 1

Expand Down

0 comments on commit 9cb49d6

Please sign in to comment.