dma.script 1.25 KB
# deposit some known values into DMEM and DRAM

deposit 0x00000000 0x01234567
deposit 0x00000004 0x89abcdef
deposit 0x00000008 0x00112233
deposit 0x0000000c 0x44556677
deposit 0x00000010 0x8899aabb
deposit 0x00000014 0xccddeeff
deposit 0x00000018 0x00001111
deposit 0x0000001c 0x22223333
deposit 0x00000020 0x44445555
deposit 0x00000024 0x66667777
deposit 0x00000028 0x88889999
deposit 0x0000002c 0xaaaabbbb
deposit 0x00000030 0xccccdddd
deposit 0x00000034 0xeeeeffff
deposit 0x00000038 0x00000000
deposit 0x0000003c 0x11111111
deposit 0x00000040 0x22222222
deposit 0x00000044 0x33333333
deposit 0x00000048 0x44444444
deposit 0x0000004c 0x55555555
deposit 0x00000050 0x66666666

deposit 0x10000000 0xfedcba98
deposit 0x10000004 0x76543210
deposit 0x10000008 0xffeeddcc
deposit 0x1000000c 0xbbaa9988
deposit 0x10000010 0x77665544
deposit 0x10000014 0x33221100
deposit 0x10000018 0x00001111
deposit 0x1000001c 0xffffeeee
deposit 0x10000020 0xddddcccc
deposit 0x10000024 0xbbbbaaaa
deposit 0x10000028 0x99998888
deposit 0x1000002c 0x77776666
deposit 0x10000030 0x55554444
deposit 0x10000034 0x33332222
deposit 0x10000038 0x11110000

# run the microcode

deposit pc 0x10002000
step 20

# snapshot DMEM and DRAM after

write dma.dmem 0x10000000 0x300
write dma.dram 0x00000000 0x300