Changeset 491


Ignore:
Timestamp:
Jan 20, 2015, 5:20:39 PM (9 years ago)
Author:
cfuguet
Message:

genmap: add distributed ROM support

  • Generate the DROM address space segment that is used for the TSAR reconfiguration distributed ROM.
Location:
soft/giet_vm
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_python/mapping.py

    r471 r491  
    6565                  'XCU',
    6666                  'PIC',
     67                  'DROM',
    6768                 ]
    6869
     
    904905        seg_xcu_size = 0
    905906
     907        nb_drom       = 0
     908        drom_channels = 0
     909        seg_drom_base = 0xFFFFFFFF
     910        seg_drom_size = 0
     911
    906912        use_bdv = False
    907913        use_spi = False
     
    965971                    rom_channels = periph.channels
    966972                    nb_rom +=1
     973
     974                elif ( periph.ptype == 'DROM' ):
     975                    seg_drom_base = periph.pseg.base & 0xFFFFFFFF
     976                    seg_drom_size = periph.pseg.size
     977                    drom_channels = periph.channels
     978                    nb_drom +=1
    967979
    968980                elif ( periph.ptype == 'SIM' ):
     
    11841196        s += '#define SEG_RDK_BASE           0x%x\n'  % seg_rdk_base
    11851197        s += '#define SEG_RDK_SIZE           0x%x\n'  % seg_rdk_size
     1198        s += '\n'
     1199        s += '#define SEG_DROM_BASE          0x%x\n'  % seg_drom_base
     1200        s += '#define SEG_DROM_SIZE          0x%x\n'  % seg_drom_size
    11861201        s += '\n'
    11871202        s += '#define PERI_CLUSTER_INCREMENT 0x%x\n'  % self.peri_increment
  • soft/giet_vm/giet_xml/mapping_info.h

    r470 r491  
    115115    PERIPH_TYPE_XCU       = 12,
    116116    PERIPH_TYPE_PIC       = 13,
    117 
    118     PERIPH_TYPE_MAX_VALUE = 14,
     117    PERIPH_TYPE_DROM      = 14,
     118
     119    PERIPH_TYPE_MAX_VALUE = 15,
    119120};
    120121
  • soft/giet_vm/giet_xml/xml_driver.c

    r472 r491  
    8888        "XCU",
    8989        "PIC",
     90        "DROM",
    9091    };
    9192
  • soft/giet_vm/giet_xml/xml_parser.c

    r472 r491  
    14841484        periph[periph_index]->subtype = 0xFFFFFFFF;
    14851485
    1486         // The CMA, FBF, HBA, IOB, IOC, NIC, ROM, SIM, TTY, peripherals are not
     1486        // The CMA, FBF, HBA, IOB, IOC, NIC, ROM, SIM, TTY, PIC, DROM peripherals are not
    14871487        // replicated in all clusters but can be instanciated twice.
    14881488
     
    16261626            }
    16271627        }
    1628         else
     1628        /////////////////////////////////
     1629        else if (strcmp(str, "DROM") == 0)
     1630        {
     1631            periph[periph_index]->type = PERIPH_TYPE_DROM;
     1632        }
     1633        else
    16291634        {
    16301635            printf("[XML ERROR] illegal peripheral type: %s in cluster %d\n",
     
    18791884    if      (ok && (strcmp(str, "RAM" ) == 0)) { pseg[pseg_index]->type = PSEG_TYPE_RAM; }
    18801885    else if (ok && (strcmp(str, "ROM" ) == 0)) { pseg[pseg_index]->type = PSEG_TYPE_ROM; }
     1886    else if (ok && (strcmp(str, "DROM" ) == 0)) { pseg[pseg_index]->type = PSEG_TYPE_ROM; }
    18811887    else if (ok && (strcmp(str, "PERI") == 0)) { pseg[pseg_index]->type = PSEG_TYPE_PERI; }
    18821888    else
Note: See TracChangeset for help on using the changeset viewer.