Ignore:
Timestamp:
Apr 6, 2017, 5:01:31 PM (7 years ago)
Author:
alain
Message:

Introduce the vci_master_nic component in the TSAR IOB architecture.

File:
1 edited

Legend:

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

    r1033 r1050  
    6565    ### define architecture constants
    6666
    67     nb_nics         = 1
    68     nb_cmas         = 4
     67    if   ( x_size * y_size >= 4 ) : nb_nics = 4
     68    elif ( x_size * y_size == 2 ) : nb_nics = 2
     69    else                          : nb_nics = 1
     70
     71    nb_cmas         = 1
    6972    x_io            = 0
    7073    y_io            = 0
     
    124127
    125128    nic_base  = 0x00B5000000
    126     nic_size  = 0x80000                    # 512 kbytes
     129    nic_size  = 0x1000                     # 4 Kkbytes
    127130
    128131    cma_base  = 0x00B6000000
     
    171174
    172175    kernel_heap_vbase    = 0xD0000000
    173     kernel_heap_size     = 0x00400000           # 4 Mbytes per cluster
     176    kernel_heap_size     = 0x00200000           # 2 Mbytes per cluster
    174177
    175178    kernel_sched_vbase   = 0xA0000000   
     
    267270                                         ptype = 'PIC', channels = 32 )
    268271
     272                if ( ioc_type == 'BDV' ): isr_ioc = 'ISR_BDV'
     273                if ( ioc_type == 'HBA' ): isr_ioc = 'ISR_HBA'
     274                if ( ioc_type == 'SDC' ): isr_ioc = 'ISR_SDC'
     275                if ( ioc_type == 'SPI' ): isr_ioc = 'ISR_SPI'
     276
    269277                mapping.addIrq( pic, index = 0, src = nic,
    270278                                isrtype = 'ISR_NIC_RX', channel = 0 )
    271279                mapping.addIrq( pic, index = 1, src = nic,
    272280                                isrtype = 'ISR_NIC_RX', channel = 1 )
    273 
    274281                mapping.addIrq( pic, index = 2, src = nic,
     282                                isrtype = 'ISR_NIC_RX', channel = 2 )
     283                mapping.addIrq( pic, index = 3, src = nic,
     284                                isrtype = 'ISR_NIC_RX', channel = 3 )
     285
     286                mapping.addIrq( pic, index = 4, src = nic,
    275287                                isrtype = 'ISR_NIC_TX', channel = 0 )
    276                 mapping.addIrq( pic, index = 3, src = nic,
     288                mapping.addIrq( pic, index = 5, src = nic,
    277289                                isrtype = 'ISR_NIC_TX', channel = 1 )
    278 
    279                 mapping.addIrq( pic, index = 4, src = cma,
     290                mapping.addIrq( pic, index = 6, src = nic,
     291                                isrtype = 'ISR_NIC_TX', channel = 2 )
     292                mapping.addIrq( pic, index = 7, src = nic,
     293                                isrtype = 'ISR_NIC_TX', channel = 3 )
     294
     295                mapping.addIrq( pic, index = 8 , src = cma,
    280296                                isrtype = 'ISR_CMA', channel = 0 )
    281                 mapping.addIrq( pic, index = 5, src = cma,
     297                mapping.addIrq( pic, index = 9 , src = cma,
    282298                                isrtype = 'ISR_CMA', channel = 1 )
    283                 mapping.addIrq( pic, index = 6, src = cma,
     299                mapping.addIrq( pic, index = 10, src = cma,
    284300                                isrtype = 'ISR_CMA', channel = 2 )
    285                 mapping.addIrq( pic, index = 7, src = cma,
     301                mapping.addIrq( pic, index = 11, src = cma,
    286302                                isrtype = 'ISR_CMA', channel = 3 )
    287303
    288                 if ( ioc_type == 'BDV' ): isr_ioc = 'ISR_BDV'
    289                 if ( ioc_type == 'HBA' ): isr_ioc = 'ISR_HBA'
    290                 if ( ioc_type == 'SDC' ): isr_ioc = 'ISR_SDC'
    291                 if ( ioc_type == 'SPI' ): isr_ioc = 'ISR_SPI'
    292 
    293                 mapping.addIrq( pic, index = 8, src = ioc,
     304                mapping.addIrq( pic, index = 12, src = ioc,
    294305                                isrtype = isr_ioc, channel = 0 )
     306
    295307                mapping.addIrq( pic, index = 16, src = tty,
    296308                                isrtype = 'ISR_TTY_RX', channel = 0 )
Note: See TracChangeset for help on using the changeset viewer.