wr_source.addr.eq(rd_sink.addr),
wr_source.count.eq(rd_sink.count),
wr_source.be.eq(rd_sink.be),
- #wr_source.data.eq(data.q),
- wr_source.data.eq(0x12345678), # XXX
+ wr_source.data.eq(data.q),
If(wr_source.stb & wr_source.ack,
rd_sink.ack.eq(1),
If(wr_source.eop,
yield
test_probe = False
- test_writes = False
+ test_writes = True
test_reads = True
# test probe
record.cyc = 0
record.wca = 0
record.wff = 0
- record.byte_enable = 0
+ record.byte_enable = 0xf
record.wcount = 16
record.rcount = 0
packet = etherbone.EtherbonePacket()
packet.records = [record]
- print(packet)
self.etherbone_model.send(packet)
for i in range(1024):
# test reads
if test_reads:
- reads = etherbone.EtherboneReads(base_ret_addr=0x2000)
+ reads = etherbone.EtherboneReads(base_ret_addr=0x1000)
for i in range(16):
reads.add(etherbone.EtherboneRead(i))
record = etherbone.EtherboneRecord()
record.cyc = 0
record.wca = 0
record.wff = 0
- record.byte_enable = 0
+ record.byte_enable = 0xf
record.wcount = 0
record.rcount = 16
packet = etherbone.EtherbonePacket()
packet.records = [record]
- print(packet)
self.etherbone_model.send(packet)
for i in range(1024):