Changes between Version 1 and Version 2 of Soclib Cc/Vci Parameters


Ignore:
Timestamp:
Feb 26, 2008, 9:58:54 AM (16 years ago)
Author:
Nicolas Pouillon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Soclib Cc/Vci Parameters

    v1 v2  
    3737}}}
    3838
    39 So you may factor out common parameters:
     39So you may factor out common parameters putting them at the end:
    4040
    4141{{{
    42 vci_params = dict(
     42todo = Platform('caba', 'top.cpp',
     43                                uses = [
     44        Uses('iss_wrapper', iss_t = 'common:mipsel'),
     45        Uses('vci_framebuffer'),
     46        Uses('vci_dma'),
     47        Uses('vci_ram'),
     48        Uses('vci_multi_tty'),
     49        Uses('vci_timer'),
     50        Uses('vci_vgmn'),
     51        Uses('vci_xcache'),
     52        ],
    4353        cell_size = 4,
    4454        plen_size = 1,
     
    5161        trdid_size = 1,
    5262        wrplen_size = 1
    53         )
    54 
    55 todo = Platform(
    56         Uses('mips'),
    57         Uses('vci_locks',     **vci_params),
    58         Uses('vci_multi_ram', **vci_params),
    59         Uses('vci_multi_tty', **vci_params),
    60         Uses('vci_timer',     **vci_params),
    61         Uses('vci_vgmn',      **vci_params),
    62         Uses('vci_xcache',    **vci_params),
    63         Source('top.cc'),
    6463)
    6564}}}
    66 
    67 The `**variable_name` will be expanded with all the things defined in the variable, for every line, source:trunk/soclib/platforms/timer_4mips/platform_desc is a live example.
    68 
    69 If you have some exceptionnal template parameter to add in for one component, you can specify it ''before'' the expanded one:
    70 
    71 {{{
    72 vci_params = dict(
    73         cell_size = 4,
    74 [...]
    75         )
    76 
    77 [...]
    78         Uses('vci_vgmn', write_buffer_depth = 16, **vci_params),
    79 [...]
    80 }}}
    81