RapidIO映射寄存器的配置
- 内存空间4M字节(0x40,0000字节),128bit地址:0x14,0000, 32bit,32bit地址:0x50,0000,字节地址:0x140,0000,末地址(字节地址):17f,ffff
注意首地址必须是内存长度对齐,长度是4M字节,首地址必须4M字节对齐
- IO master配置
(1)Number of Rx address translation windows,这是在Rapidio II参数编辑器里配置的,设为1。
(2)IO Master Mapping Windows 0 Base:base寄存器,地址0x10300
Table 138 Input/Output Master Mapping Window Base
Field |
Bits |
Access |
Function |
Default |
BASE |
[31:4] |
RW |
RapidIO地址窗口的基地址,34bit基地址的最低4为假设为0 设为0101,1010,1000,0000,0000,0000,0000 |
28’h0 |
RSRV |
[3:2] |
RO |
保留,设为00 |
2’b00 |
XAMB |
[1:0] |
RW |
扩展地址,34位地址的最高两位,设为11 |
2’b00 |
假设我们将这4M字节的内存空间安排在rapidIO空间的空间起始地址(字节地址):11,0101,1010,10_00,0000,0000,0000,0000,0000(0x3,5a80,0000),注意首地址必须是映射的内存长度对齐,长度是4M字节,首地址必须4M字节对齐
(3)IO Master Mapping Window 0 Mask:屏蔽寄存器,0x10304
Table 139 Input/Output Master Mapping Windows n Mask
Field |
Bits |
Access |
Function |
Default |
MASK |
[31:4] |
RW |
屏蔽的31到4位,最低4位假设为0. 设为1111,1111,1100,0000,0000,0000,0000 因为是4M字节空间 |
28’h0 |