Ignore:
Timestamp:
Jun 10, 2014, 11:09:40 AM (10 years ago)
Author:
alain
Message:

Remove the multi-TTY capability: only one external TTY channel.
This reduce the number of external IRQs (i.e. the number of WTIs)
and we can now generate mono-cluster / mono-processor architecture.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/platforms/tsar_generic_iob/genmap.py

    r707 r710  
    159159    cma = mapping.addPeriph( 'CMA', base = cma_base, size = cma_size, ptype = 'CMA', channels = 2*nb_nics )
    160160
    161     fbf = mapping.addPeriph( 'FBF', base = fbf_base, size = fbf_size, ptype = 'FBF', arg1 = 128, arg2 = 128 )
     161    fbf = mapping.addPeriph( 'FBF', base = fbf_base, size = fbf_size, ptype = 'FBF', arg = 128 )
    162162
    163163    rom = mapping.addPeriph( 'ROM', base = rom_base, size = rom_size, ptype = 'ROM' )
     
    165165    pic = mapping.addPeriph( 'PIC', base = pic_base, size = pic_size, ptype = 'PIC', channels = 32 )
    166166
    167     mapping.addIrq( pic, index = 0,  isrtype = 'ISR_NIC_RX', channel = 0 )
    168     mapping.addIrq( pic, index = 1,  isrtype = 'ISR_NIC_RX', channel = 1 )
    169     mapping.addIrq( pic, index = 2,  isrtype = 'ISR_NIC_TX', channel = 0 )
    170     mapping.addIrq( pic, index = 3,  isrtype = 'ISR_NIC_TX', channel = 1 )
    171 
    172     mapping.addIrq( pic, index = 4,  isrtype = 'ISR_CMA'   , channel = 0 )
    173     mapping.addIrq( pic, index = 5,  isrtype = 'ISR_CMA'   , channel = 1 )
    174     mapping.addIrq( pic, index = 6,  isrtype = 'ISR_CMA'   , channel = 2 )
    175     mapping.addIrq( pic, index = 7,  isrtype = 'ISR_CMA'   , channel = 3 )
    176 
    177     mapping.addIrq( pic, index = 8,  isrtype = 'ISR_BDV'   , channel = 0 )
    178 
    179     mapping.addIrq( pic, index = 16, isrtype = 'ISR_TTY_RX', channel = 0 )
    180     mapping.addIrq( pic, index = 17, isrtype = 'ISR_TTY_RX', channel = 1 )
    181     mapping.addIrq( pic, index = 18, isrtype = 'ISR_TTY_RX', channel = 2 )
    182     mapping.addIrq( pic, index = 19, isrtype = 'ISR_TTY_RX', channel = 3 )
    183     mapping.addIrq( pic, index = 20, isrtype = 'ISR_TTY_RX', channel = 4 )
    184     mapping.addIrq( pic, index = 21, isrtype = 'ISR_TTY_RX', channel = 5 )
    185     mapping.addIrq( pic, index = 22, isrtype = 'ISR_TTY_RX', channel = 6 )
    186     mapping.addIrq( pic, index = 23, isrtype = 'ISR_TTY_RX', channel = 7 )
     167    mapping.addIrq( pic, index = 0, isrtype = 'ISR_NIC_RX', channel = 0 )
     168    mapping.addIrq( pic, index = 1, isrtype = 'ISR_NIC_RX', channel = 1 )
     169
     170    mapping.addIrq( pic, index = 2, isrtype = 'ISR_NIC_TX', channel = 0 )
     171    mapping.addIrq( pic, index = 3, isrtype = 'ISR_NIC_TX', channel = 1 )
     172
     173    mapping.addIrq( pic, index = 4, isrtype = 'ISR_CMA'   , channel = 0 )
     174    mapping.addIrq( pic, index = 5, isrtype = 'ISR_CMA'   , channel = 1 )
     175    mapping.addIrq( pic, index = 6, isrtype = 'ISR_CMA'   , channel = 2 )
     176    mapping.addIrq( pic, index = 7, isrtype = 'ISR_CMA'   , channel = 3 )
     177
     178    mapping.addIrq( pic, index = 8, isrtype = 'ISR_BDV'   , channel = 0 )
     179
     180    mapping.addIrq( pic, index = 9, isrtype = 'ISR_TTY_RX', channel = 0 )
    187181
    188182    ### hardware components replicated in all clusters   
     
    202196
    203197            xcu = mapping.addPeriph( 'XCU', base = xcu_base + offset, size = xcu_size,
    204                                      ptype = 'XCU', channels = nb_procs * irq_per_proc,
    205                                      arg1 = 16, arg2 = 16, arg3 = 16 )
    206 
    207             # MMC IRQ replicated in all clusters
    208             mapping.addIrq( xcu, index = 0, isrtype = 'ISR_MMC' )
     198                                     ptype = 'XCU', channels = nb_procs * irq_per_proc, arg = 16 )
    209199
    210200            # DMA IRQs replicated in all clusters
     
    212202                mapping.addIrq( xcu, index = (p+1), isrtype = 'ISR_DMA', channel = p )
    213203           
     204            # MMC IRQ replicated in all clusters
     205            mapping.addIrq( xcu, index = 0, isrtype = 'ISR_MMC' )
     206
    214207            # processors
    215208            for p in xrange ( nb_procs ):
     
    273266                       vtype = 'PERI', x = 0, y = 0, pseg = 'ROM', identity = True )
    274267
    275     ### Global vsegs for replicated peripherals, and for scheduler
    276     ### Note: one vseg per cluster: the vseg name is indexed by (x,y)
    277     ### the vseg base address is incremented by (cluster_xy * 0x10000)
     268    ### Global vsegs for replicated peripherals, and for scheduler.
     269    ### A replicated vseg is replicated in all clusters: vseg name is indexed by (x,y),
     270    ### and vseg base address is incremented by (cluster_xy * 0x10000)
    278271
    279272    mapping.addGlobal( 'seg_xcu'  , xcu_base          , xcu_size         , '__W_',
Note: See TracChangeset for help on using the changeset viewer.