Ignore:
Timestamp:
Jan 20, 2015, 4:06:49 PM (9 years ago)
Author:
cfuguet
Message:

reconf: add external ROM in platform

  • The external ROM, which can be accessed through both IO Bridges, contains the bootloader program and some other utility functions which are used once the reconfiguration is performed.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reconfiguration/platforms/tsar_generic_iob/scripts/arch.py

    r907 r926  
    101101    mmc_size = 0x1000                     # 4 Kbytes
    102102
    103     rom_base = 0x00BFC00000
    104     rom_size = 0x8000                     # 32 Kbytes
     103    drom_base = 0x00BFC00000
     104    drom_size = 0x8000                    # 32 Kbytes
    105105
    106106    offset_io = pmsb(X_IO, Y_IO) << (PADDR_WIDTH - X_WIDTH - Y_WIDTH)
     
    129129    iob_base = 0x00BE000000 + offset_io
    130130    iob_size = 0x1000                     # 4 kbytes
     131
     132    rom_base = 0x00BA000000
     133    rom_size = 0x8000                     # 32 Kbytes
    131134
    132135    # create mapping
     
    170173                      ptype='SIM')
    171174
     175    mapping.addPeriph('ROM', base=rom_base, size=rom_size,
     176                      ptype='ROM')
     177
    172178    pic = mapping.addPeriph('PIC', base=pic_base, size=pic_size,
    173179                            ptype='PIC', channels=32)
     
    196202                              ptype='MMC')
    197203
    198             mapping.addPeriph('ROM', base=rom_base + offset, size=rom_size,
    199                               ptype='ROM')
     204            mapping.addPeriph('DROM', base=drom_base + offset, size=drom_size,
     205                              ptype='DROM')
    200206
    201207            dma = mapping.addPeriph('DMA', base=dma_base + offset,
     
    336342
    337343    # for the Giet-VM is not necessary to map the replicated ROMs
    338     mapping.addGlobal('seg_rom', rom_base, rom_size, 'CX__', vtype='PERI',
     344    mapping.addGlobal('seg_rom', drom_base, drom_size, 'CX__', vtype='PERI',
    339345                      x=X_IO, y=Y_IO, pseg='ROM', local=False, big=True)
    340346
Note: See TracChangeset for help on using the changeset viewer.