Nios® V/II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® V/II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
12600 Discussions

PCI Burst Transfer in SOPC Builder

Altera_Forum
Honored Contributor II
988 Views

hi, girls and guys, i want to design a PCI Master device with the Altera PCI IP inside the SOPC Builder. But i met some problems, need ur help! 

my hardware inside sopc builder: 

1 hardware components:  

a) PCI IP: Master mode, 32bits/33Mhz, danymic translation table, 2 pages, page size:4kB; 3 bars( choose auto size) 

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif DMA IP: 13bits, burst transfer enabled, and specify burst length 16Word  

c) on chip ram: 4k,32 bit 

2 connection: 

a) bar0--->PCI Control Port, bar1--->Dma Control Port, bar2 -->on chip ram;  

http://forum.niosforum.com/work2/style_emoticons/<#EMO_DIR#>/cool.gif dma read master---> on chip ram,  

dma wirte master---> pci bus access port; 

I wrote a driver to control the dma, and the sequence for the register setup follows: 

1 Clear DMA Status Register; 

2 Avalon to PCI Translation table entry 0: address of the allocated physical page( page size :4k), and also clear the lower 2 bits to 0( indicating memory space) 

3 Set up DMA Read address register: address of the on chip ram(0x00000000) 

4 Set up DMA Write address register: address of the pci bus access port( 0x00000000) 

5 Set up DMA Length register: 10 

6 Set up DMA Control regiter: 0x0000008c, 

But, i can not see the data coming into the allocated physical page,  

any idea and suggestions are welcome. 

thanks! 

ps: my personal email:qisepu@yahoo.com.cn
0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
268 Views

Before you try DMA access to external PCI device, you should try CPU access first. 

I had posted a sample PC hsot design. 

http://nioswiki.jot.com/wikihome/operatingsystems/alterapci (http://nioswiki.jot.com/wikihome/operatingsystems/alterapci)
0 Kudos
Reply