| 1 | = Standard usage = |
| 2 | |
| 3 | When using a VCI-AVALON component, you must define explicitely the three Avalon parameters: |
| 4 | {{{ |
| 5 | address_width |
| 6 | data_width |
| 7 | burstcount_width |
| 8 | }}} |
| 9 | |
| 10 | So you may factor out common parameters putting them at the end of the list of the VCI parameters as shown in the following platform_desc example: |
| 11 | |
| 12 | {{{ |
| 13 | todo = Platform('caba', 'top.cpp', |
| 14 | uses = [ |
| 15 | Uses('iss_wrapper', iss_t = 'common:nios2_fast'), |
| 16 | Uses('vci_ram'), |
| 17 | Uses('vci_multi_tty'), |
| 18 | Uses('avalon_switch_fabric'), |
| 19 | Uses('vci_avalon_target_wrapper'), |
| 20 | Uses('vci_avalon_initiator_wrapper'), |
| 21 | Uses('vci_xcache'), |
| 22 | ], |
| 23 | cell_size = 4, |
| 24 | plen_size = 8, |
| 25 | addr_size = 32, |
| 26 | rerror_size = 1, |
| 27 | clen_size = 1, |
| 28 | rflag_size = 1, |
| 29 | srcid_size = 8, |
| 30 | pktid_size = 1, |
| 31 | trdid_size = 1, |
| 32 | wrplen_size = 1, |
| 33 | nb_master = 1, |
| 34 | nb_slave = 2, |
| 35 | address_width = 32, |
| 36 | data_width = 32, |
| 37 | burstcount_width = 8 |
| 38 | ) |
| 39 | }}} |