Changeset 945 for trunk/platforms/tsar_generic_iob
- Timestamp:
- Feb 14, 2015, 8:12:29 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/arch.py
r943 r945 110 110 ## These segments are only defined in cluster_io 111 111 112 offset_io = ((x_io << y_width) + y_io) << (paddr_width - x_width - y_width) 113 114 bdv_base = 0x00B3000000 + offset_io 112 bdv_base = 0x00B3000000 115 113 bdv_size = 0x1000 # 4kbytes 116 114 117 tty_base = 0x00B4000000 + offset_io115 tty_base = 0x00B4000000 118 116 tty_size = 0x4000 # 16 Kbytes 119 117 120 nic_base = 0x00B5000000 + offset_io118 nic_base = 0x00B5000000 121 119 nic_size = 0x80000 # 512 kbytes 122 120 123 cma_base = 0x00B6000000 + offset_io121 cma_base = 0x00B6000000 124 122 cma_size = 0x1000 * 2 * nb_nics # 4 kbytes * 2 * nb_nics 125 123 126 fbf_base = 0x00B7000000 + offset_io124 fbf_base = 0x00B7000000 127 125 fbf_size = fbf_width * fbf_width # fbf_width * fbf_width bytes 128 126 129 pic_base = 0x00B8000000 + offset_io127 pic_base = 0x00B8000000 130 128 pic_size = 0x1000 # 4 Kbytes 131 129 132 iob_base = 0x00BE000000 + offset_io130 iob_base = 0x00BE000000 133 131 iob_size = 0x1000 # 4 bytes 134 132 135 rom_base = 0x00BFC00000 + offset_io133 rom_base = 0x00BFC00000 136 134 rom_size = 0x4000 # 16 Kbytes 137 135 … … 235 233 if ( (x==x_io) and (y==y_io) ): 236 234 237 iob = mapping.addPeriph( 'IOB', base = iob_base , size = iob_size,235 iob = mapping.addPeriph( 'IOB', base = iob_base + offset, size = iob_size, 238 236 ptype = 'IOB' ) 239 237 240 bdv = mapping.addPeriph( 'BDV', base = bdv_base , size = bdv_size,238 bdv = mapping.addPeriph( 'BDV', base = bdv_base + offset, size = bdv_size, 241 239 ptype = 'IOC', subtype = 'BDV' ) 242 240 243 tty = mapping.addPeriph( 'TTY', base = tty_base , size = tty_size,241 tty = mapping.addPeriph( 'TTY', base = tty_base + offset, size = tty_size, 244 242 ptype = 'TTY', channels = nb_ttys ) 245 243 246 nic = mapping.addPeriph( 'NIC', base = nic_base , size = nic_size,244 nic = mapping.addPeriph( 'NIC', base = nic_base + offset, size = nic_size, 247 245 ptype = 'NIC', channels = nb_nics ) 248 246 249 cma = mapping.addPeriph( 'CMA', base = cma_base , size = cma_size,247 cma = mapping.addPeriph( 'CMA', base = cma_base + offset, size = cma_size, 250 248 ptype = 'CMA', channels = nb_cmas ) 251 249 252 fbf = mapping.addPeriph( 'FBF', base = fbf_base , size = fbf_size,250 fbf = mapping.addPeriph( 'FBF', base = fbf_base + offset, size = fbf_size, 253 251 ptype = 'FBF', arg = fbf_width ) 254 252 255 rom = mapping.addPeriph( 'ROM', base = rom_base , size = rom_size,253 rom = mapping.addPeriph( 'ROM', base = rom_base + offset, size = rom_size, 256 254 ptype = 'ROM' ) 257 255 258 pic = mapping.addPeriph( 'PIC', base = pic_base , size = pic_size,256 pic = mapping.addPeriph( 'PIC', base = pic_base + offset, size = pic_size, 259 257 ptype = 'PIC', channels = 32 ) 260 258
Note: See TracChangeset
for help on using the changeset viewer.