阅读:1174回复:6
请教9054的问题。(20分)
我需要用9054做一块数据传输卡,要求是用DMA方式把FIFO里的数据传输到主机中存储。FIFO宽度8bit,要求传输速度能达到20MByte/s。
我以前从来没接触过PCI的开发,看了一些资料,看被人好像是从主机端发起DMA,9054采用C模式。但具体怎样操作心里一点没底。我现在在看9054的Data Book,但时间紧,希望做过的大虾们给讲讲,这样我看资料也来得快。一点小分不成敬意,以后还要多多仰仗各位高手。 |
|
沙发#
发布于:2003-09-23 22:47
兄弟你用的FIFO是多大的?价格如何?
|
|
板凳#
发布于:2003-09-24 08:31
好象大于1M,价钱不清楚,没见过片子
[编辑 - 9/24/03 by ilovehardware] |
|
地板#
发布于:2003-09-24 08:50
你知不知道如何用VHDL实现总线交换开关的功能?(7416212) |
|
地下室#
发布于:2003-09-24 16:10
怎么没人回答啊:( 是不是体的问题太弱了? 呵呵,没办法还没入门。迫切需要高手们来个醍醐灌顶 :) 欢迎跟贴
PS: to louis_hioe兄,不好意思,我没做过你说的东西。 |
|
5楼#
发布于:2003-09-24 23:26
if you have plx9054 SDK/RDK you can just use the driver and test program, or you can use them as a reference to write your own.
to do dma from local bus fifo/memory to host memey is very simple with plx9054. focus on the DMA related registers and set them properly. basically you need to have following parameters ready: 1. local address;(the fifo access address on your board, this is constant normally) 2. target address;(physical address of host memory) 3. set the threshold; 4. set INT; (you can disable int during the testing) 5. start dma command; after sometime, then you can check the data on host memroy. |
|
6楼#
发布于:2003-10-09 11:03
谢谢hong老大的回答,前几天放假没上网,现在才给分,请见谅.
我现在正在看9054 data book,不懂的地方还得问你. |
|