Altera Forum






Threads: 18,959
Posts: 77,485
Members: 29,245
Welcome to our newest member, Solarpreiswert
User
Reputation
9135
7620
5891
4150
3030
2197
2056
1706
1388
1300




 
Register
Quick Search
 
  Altera Forums > IP and Dev Kit Related > IP Discussion

PCI with SGDMA operation

Reply
 
Thread Tools Display Modes
  #1  
Old November 10th, 2008, 03:53 AM
newfrance newfrance is offline
Altera Beginner
 
Join Date: Nov 2008
Posts: 3
Rep Power: 671
newfrance is on a distinguished road
Default PCI with SGDMA operation

Dear all:
I met a problem on my way to implement SGDMA transfer complied with PCI Master/Target core in SOPC system. Without NIOSII, I applied one Bar of PCI to setup the related control registers. My action is simple, to move the on-chip memory to DRAM of PC. The similar operation had been success under simple DMA controller, but I failed in SGDMA. It seems the whole SGDMA process failed.
To simplify the problem, I change my design to move the data of on-chip memory to another blocks of on-chip memory. The whole process is under SOPC system itself and only the PCI target core are required to setup registers. But, it still failed. The following are my control step, and the attached file is my SOPC address assignment. Please kindly gives me some advices, I'M gonna crazy by it.

1. Bar0+0x50, 0x00000080 //PCI INT enable
2. Bar1+0x00, 0x00004000
Bar1+0x08, 0x00005000
Bar1+0x10, 0x00000020
Bar1+0x18, 0x0100
Bar1+0x1F, 0x01
//setup only single descriptor
3. Bar1+0x1020, 0x00000000 //setup Next Descriptor address in control register
4. Bar1+0x1010, 0x00000028 //RUN + INT_enable

I have simplified it as single descriptor operation, but nothing happened.

Or could anyone tell me where can I find the related example or document mention these settings!? I only find the one under NIOSII software control with delicate library, but all I need is the basic registers control example. Thank you for all your great help.
Attached Images
File Type: jpg SGDMA.JPG (145.4 KB, 34 views)
Reply With Quote
  #2  
Old November 10th, 2008, 11:28 PM
newfrance newfrance is offline
Altera Beginner
 
Join Date: Nov 2008
Posts: 3
Rep Power: 671
newfrance is on a distinguished road
Default Re: PCI with SGDMA operation

Dear all:
I
Reply With Quote
  #3  
Old November 10th, 2008, 11:30 PM
newfrance newfrance is offline
Altera Beginner
 
Join Date: Nov 2008
Posts: 3
Rep Power: 671
newfrance is on a distinguished road
Default Re: PCI with SGDMA operation

I have gotten the answers from some good friends. It seems I forgot to set "Owned by HW" bit. All problem have been resolved. Thank you, all of you.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
LCD SGDMA and RGB565 input rama_shankar IP Discussion 3 June 20th, 2009 04:47 AM
SGDMA interrupt swordflyer General Altera Discussion 1 April 13th, 2009 08:10 PM
problem adding TSE_MAC + SGDMA bertronicom General Altera Discussion 3 February 6th, 2009 04:10 AM
Avalon-ST backpressure with SGDMA paulz IP Discussion 3 June 26th, 2008 07:08 AM


All times are GMT -8. The time now is 10:01 PM.