Forum Discussion
Altera_Forum
Honored Contributor
15 years agoif i initialize the memory with the memset having all adressess with 33 and using IORD_8DIRECT instead of what i was using i get this:
loop start
0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:testing fifo & onchip : dma operation
content of fifo:before DMA operation
0: 1
0: 3
0: 5
0: 7
0: 9
0: b
0: d
0: f
0: 11
0: 13
0: 15
0: 17
0: 19
0: 1b
0: 1d
0: 1f
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
0: 20
content of onchip:before DMA operation
0: 33
1: 33
2: 33
3: 33
4: 33
5: 33
6: 33
7: 33
8: 33
9: 33
10: 33
11: 33
12: 33
13: 33
14: 33
15: 33
16: 33
17: 33
18: 33
19: 33
20: 33
21: 33
22: 33
23: 33
24: 33
25: 33
26: 33
27: 33
28: 33
29: 33
30: 33
31: 33
Transfer successful!
content of onchip:after DMA operation
0: 20
1: 0
2: 0
3: 0
4: 20
5: 0
6: 0
7: 0
8: 20
9: 0
10: 0
11: 0
12: 20
13: 0
14: 0
15: 0
16: 20
17: 0
18: 0
19: 0
20: 20
21: 0
22: 0
23: 0
24: 20
25: 0
26: 0
27: 0
28: 20
29: 0
30: 0
31: 0
FIM