Forum Discussion
Altera_Forum
Honored Contributor
15 years agoOk IT'S WORKING!!
I changed the Read wait property on the Avalon interface from 1 to 0 (luck shot) and now i can read everything right. HOWEVER When it goes throught the DMA i can only read 8 bits per time, why is that? Simple for:
loop start
0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:0:content of fifo:before DMA operation
0: 0
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 8
9: 9
10: a
11: b
12: c
13: d
14: e
15: f
16: 10
17: 11
18: 12
19: 13
20: 14
21: 15
22: 16
23: 17
24: 18
25: 19
26: 1a
27: 1b
28: 1c
29: 1d
30: 1e
31: 1f
FIM
FOR in a onchip mem after going throught the DMA (FIFO->DMA->ONCHIP)
content of onchip:before DMA operation
0: 33333333
1: 33333333
2: 33333333
3: 33333333
4: 33333333
5: 33333333
6: 33333333
7: 33333333
8: 0
9: 0
10: 0
11: 0
12: 0
13: 0
14: 0
15: 0
16: 0
17: 0
18: 0
19: 0
20: 0
21: 0
22: 0
23: 0
24: 0
25: 0
26: 0
27: 0
28: 0
29: 0
30: 0
31: 0
32: 0
33: 0
Transfer successful!
content of onchip:after DMA operation
0: 0
1: 1
2: 2
3: 3
4: 4
5: 5
6: 6
7: 7
8: 0
9: 0
10: 0
11: 0
12: 0
13: 0
14: 0
15: 0
16: 0
17: 0
18: 0
19: 0
20: 0
21: 0
22: 0
23: 0
24: 0
25: 0
26: 0
27: 0
28: 0
29: 0
30: 0
31: 0
32: 0
33: 0
1:testing fifo & onchip : dma operation
content of onchip:before DMA operation
0: 33333333
1: 33333333
2: 33333333
3: 33333333
4: 33333333
5: 33333333
6: 33333333
7: 33333333
8: 0
9: 0
10: 0
11: 0
12: 0
13: 0
14: 0
15: 0
16: 0
17: 0
18: 0
19: 0
20: 0
21: 0
22: 0
23: 0
24: 0
25: 0
26: 0
27: 0
28: 0
29: 0
30: 0
31: 0
32: 0
33: 0
Transfer successful!
content of onchip:after DMA operation
0: 8
1: 9
2: a
3: b
4: c
5: d
6: e
7: f
8: 0
9: 0
10: 0
11: 0
12: 0
13: 0
14: 0
15: 0
16: 0
17: 0
18: 0
19: 0
20: 0
21: 0
22: 0
23: 0
24: 0
25: 0
26: 0
27: 0
28: 0
29: 0
30: 0
31: 0
32: 0
33: 0
FIM