Changes between Version 1 and Version 2 of Soclib Cc/Vci Parameters
- Timestamp:
- Feb 26, 2008, 9:58:54 AM (17 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Soclib Cc/Vci Parameters
v1 v2 37 37 }}} 38 38 39 So you may factor out common parameters :39 So you may factor out common parameters putting them at the end: 40 40 41 41 {{{ 42 vci_params = dict( 42 todo = 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 ], 43 53 cell_size = 4, 44 54 plen_size = 1, … … 51 61 trdid_size = 1, 52 62 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'),64 63 ) 65 64 }}} 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