阅读:1509回复:4
pci地址如何映射
我做一pci9054、双口ram、tms320c31的pci卡,想知道计算机如何访问到我的双口ram上。双口ram数据线16位,对计算机来说,他的地址是什么(pci9054的映射寄存器该如何设置)。
best wishes kapok@371.net |
|
最新喜欢:![]()
|
沙发#
发布于:2003-07-15 21:43
you have to make your self clear first:
1. do you want to access the on board memory from Host computer through PCI? or 2. you want to access the on board memory from your on board MPU or other devices? if you are the case 1. normally you not need to do base address assignment manually, bios will do it automatically. there is not reason for doing so manually. as long as you have a way to access the on board memory who cares the value of the base address. if you are the case 2. you can do it freely on your board design. |
|
板凳#
发布于:2002-01-07 11:01
问题是我想手动分配,如何做到?
关键是如何得到一块可用的内存空间?又如何知道物理地址和逻辑地址之间的关系? ???? |
|
|
地板#
发布于:2002-01-07 10:45
对于计算机来说
9054的地址就是在pci总线上的地址 一般是由bios来分配的 你只要根据bar的值就可以访问了 |
|
地下室#
发布于:2002-01-07 10:44
9054作设计时,你需要提供这块存储器的range,local bus base
address,其中系统关心的主要是range,系统通过读config register 获得range后,分配一部分地址空间,系统启动后,你可以通过读 config register,获得实际分配的物理地址,如果想知道逻辑地址, 就要借助于驱动程序了(至少我不知道还有什么办法). |
|
|