Add write dma

This commit is contained in:
Byron Lathi
2025-11-09 16:02:47 -08:00
parent 50275dc581
commit abc6ea65c5
6 changed files with 446 additions and 18 deletions

View File

@@ -117,5 +117,16 @@ async def test_sanity(dut):
await dev_bar0.write_dword(0xc, len(message))
await dev_bar0.write_dword(0x10, 0x00000001)
await Timer(100, "ns")
await Timer(10, "us")
await dev_bar0.write_dword(0x20, 0x00000100)
await dev_bar0.write_dword(0x24, 0x00000000)
await dev_bar0.write_dword(0x28, 0x00000000)
await dev_bar0.write_dword(0x2c, len(message))
await dev_bar0.write_dword(0x30, 0x00000001)
await Timer(10, "us")
read_msg = await mem.read(0x100, len(message))
tb.log.info(read_msg)