Ignore:
Timestamp:
Apr 15, 2015, 4:02:09 PM (9 years ago)
Author:
cfuguet
Message:

Update arch.py scripts to support the new mapping.py version

  • In this new version, the addIrq() function takes as a supplementary argument the instance of the interrupt generating peripheral.
File:
1 edited

Legend:

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

    r958 r975  
    3333          nb_procs  = 2,
    3434          nb_ttys   = 1,
    35           fbf_width = 480 ):
     35          fbf_width = 480,
     36          ioc_type  = 'BDV' ):
    3637
    3738    ### define architecture constants
     
    165166                             ptype = 'MMC' )
    166167
    167     mapping.addIrq( xcu, index = 8 , isrtype = 'ISR_MMC' )
     168    mapping.addIrq( xcu, index = 8 , src = mmc, isrtype = 'ISR_MMC' )
    168169
    169170    for p in xrange ( nb_procs ): mapping.addProc( 0, 0, p )
     
    172173                             ptype = 'IOC', subtype = 'BDV' )
    173174
    174     mapping.addIrq( xcu, index = 9 , isrtype = 'ISR_BDV' )
     175    mapping.addIrq( xcu, index = 9 , src = bdv, isrtype = 'ISR_BDV' )
    175176
    176177    tty = mapping.addPeriph( 'TTY0', base = tty_base, size = tty_size,
    177178                             ptype = 'TTY', channels = nb_ttys )
    178179
    179     mapping.addIrq( xcu, index = 10, isrtype = 'ISR_TTY_RX' )
     180    mapping.addIrq( xcu, index = 10, src = tty, isrtype = 'ISR_TTY_RX' )
    180181
    181182    rom = mapping.addPeriph( 'ROM', base = rom_base, size = rom_size,
Note: See TracChangeset for help on using the changeset viewer.