Changeset 1051 for trunk/platforms/tsar_generic_iob/arch_info.py
- Timestamp:
- Apr 11, 2017, 11:50:57 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/platforms/tsar_generic_iob/arch_info.py
r1050 r1051 31 31 # - fbf_width : frame_buffer width = frame_buffer heigth 32 32 # - ioc_type : can be 'IOC_BDV','IOC_HBA','IOC_SDC', 'IOC_SPI','NONE' 33 # - mwr_type : can be 'MWR_GCD','MWR_DCT','MWR_CPY','NONE'34 33 # - io_cxy : IO cluster identifier 35 34 # - boot_cxy : boot cluster identifier … … 53 52 fbf_width = 128, 54 53 ioc_type = 'IOC_BDV', 55 mwr_type = 'MWR_CPY',56 54 io_cxy = 0, 57 55 boot_cxy = 0, … … 83 81 assert( ioc_type in ['IOC_BDV','IOC_HBA','IOC_SDC','IOC_SPI','IOC_RDK'] ) 84 82 85 assert( mwr_type in ['MWR_GCD','MWR_DCT','MWR_CPY'] )86 87 83 assert( (io_cxy == 0) or (io_cxy == ((x_size-1)<<y_width) + (y_size-1)) ) 88 84 … … 103 99 xcu_size = 0x1000 # 4 Kbytes 104 100 105 mwr_base = 0x00B1000000106 mwr_size = 0x1000 # 4 Kbytes101 dma_base = 0x00B1000000 102 dma_size = 0x1000 # 4 Kbytes 107 103 108 104 mmc_base = 0x00B2000000 … … 170 166 size = xcu_size, 171 167 channels = 1, 172 arg0 = 16, 173 arg1 = 16, 174 arg2 = 16, 175 arg3 = 16 ) 168 arg0 = 16, # number of HWIs 169 arg1 = 16, # number of WTIs 170 arg2 = 16, # number of PTIs 171 arg3 = 16 ) # number of output IRQs 176 172 177 173 mmc = archi.addDevice( ptype = 'MMC_TSR', … … 181 177 archi.addIrq( dstdev = xcu, port = 0, srcdev = mmc ) 182 178 183 if ( mwr_type == 'MWR_GCD' ): 184 mwr = archi.addDevice( ptype = 'MWR_GCD', 185 base = mwr_base + offset, 186 size = mwr_size, 187 arg0 = 2, 188 arg1 = 1, 189 arg2 = 1, 190 arg3 = 0 ) 191 archi.addIrq( dstdev = xcu, port = 1, srcdev = mwr ) 192 193 if ( mwr_type == 'MWR_DCT' ): 194 mwr = archi.addDevice( ptype = 'MWR_DCT', 195 base = mwr_base + offset, 196 size = mwr_size, 197 arg0 = 1, 198 arg1 = 1, 199 arg2 = 1, 200 arg3 = 0 ) 201 archi.addIrq( dstdev = xcu, port = 1, srcdev = mwr ) 202 203 if ( mwr_type == 'MWR_CPY' ): 204 mwr = archi.addDevice( ptype = 'MWR_CPY', 205 base = mwr_base + offset, 206 size = mwr_size, 207 arg0 = 1, 208 arg1 = 1, 209 arg2 = 1, 210 arg3 = 0 ) 211 archi.addIrq( dstdev = xcu, port = 1, srcdev = mwr ) 179 dma = archi.addDevice( ptype = 'DMA_SCL', 180 base = dma_base + offset, 181 size = dma_size, 182 channels = nb_cores ) 183 184 archi.addIrq( dstdev = xcu, port = 1, srcdev = dma, channel = 0 ) 185 archi.addIrq( dstdev = xcu, port = 2, srcdev = dma, channel = 1 ) 186 archi.addIrq( dstdev = xcu, port = 3, srcdev = dma, channel = 2 ) 187 archi.addIrq( dstdev = xcu, port = 4, srcdev = dma, channel = 3 ) 212 188 213 189 # define external devices 214 190 if( cxy == io_cxy ): 191 192 pic = archi.addDevice( ptype ='PIC_TSR', 193 base = pic_base + offset, 194 size = pic_size, 195 arg0 = 32 ) # number of input IRQs 215 196 216 197 iob = archi.addDevice( ptype = 'IOB_TSR', … … 241 222 base = rom_base + offset, 242 223 size = rom_size ) 243 244 pic = archi.addDevice( ptype ='PIC_TSR',245 base = pic_base + offset,246 size = pic_size,247 arg0 = 32 )248 224 249 225 archi.addIrq( dstdev = pic, port = 0 , srcdev = nic, channel = 0 , is_rx = True )
Note: See TracChangeset
for help on using the changeset viewer.