阅读:2210回复:2
PCI9054与DSP C6202的问题
9054与DSP的XBUS相连,
1。地址映射问题 问要访问DSP的EMIF口连接的SDRAM, 地址是怎么映射的? 根据9054说明书的例子 A 1 MB Local Address Space, 12300000h through 123FFFFFh, is accessible from the PCI Bus at PCI addresses 78900000h through 789FFFFFh. a. Local initialization software sets the Range and Local Base Address registers as follows: • Range―FFF00000h (1 MB, decode the upper 12 PCI Address bits) • Local Base Address (Remap)―123XXXXXh (Local Base Address for PCI-to-Local accesses) [Space Enable bit(s) must be set to be recognized by the PCI Host (LAS0BA[0]=1, LAS1BA[0]=1)] b. PCI Initialization software writes all ones to the PCI Base Address, then reads it back again. • The PCI 9054 returns a value of FFF00000h. The PCI software then writes to the PCI Base Address register(s). • PCI Base Address―789XXXXXh (PCI Base Address for Access to the Local Address Space registers, PCIBAR2 and PCIBAR3). 9054的BAR2是Local端的基地址(78900000), 是不是就是说PC机的驱动通过访问这个地址78900000就可以访问存储空间?只要计算好在存储空间上的偏移地址就好了 2。完成DSP和PC机的传输, 我的DSP上的程序需要做什么? 上面初始化中的 Local initialization software sets the Range and Local Base Address registers 是需要在DSP上编程完成的吗? 还有别的什么吗? 有什么例子可以给俺看看吗?那就更谢谢咯 :D |
|
|
沙发#
发布于:2003-11-24 14:05
我真是搞不明白,为什么不用DSP6205呢,人家搞好的,我们为什么不用,这样肯定比你种方案要稳定。我就是这样用的。
|
|
|
板凳#
发布于:2010-01-31 14:06
en ,同意上家意见。
用6205好了。 |
|