- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.cnLink Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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)
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page