1 def wb_read(bus
, addr
, sel
, timeout
=32):
8 while not (yield bus
.ack
):
11 raise RuntimeError("Wishbone transaction timed out")
13 data
= (yield bus
.dat_r
)
18 def wb_write(bus
, addr
, data
, sel
, timeout
=32):
21 yield bus
.adr
.eq(addr
)
24 yield bus
.dat_w
.eq(data
)
27 while not (yield bus
.ack
):
30 raise RuntimeError("Wishbone transaction timed out")