| 1 | [wiki:Component SocLib Components General Index] |
| 2 | |
| 3 | = !VciSimpleCrossbar Functional Description = |
| 4 | |
| 5 | This hardware component is a generic VCI crossbar, it contains two |
| 6 | independant crossbars for VCI commands and VCI responses. |
| 7 | |
| 8 | When several initiators try to reach the same target, the arbitration |
| 9 | policy is round-robin. |
| 10 | It gives the system designer a generic "communication black-box" with |
| 11 | a parametrized number of VCI initiator ports (NB_INITIATOR), |
| 12 | and a parameterized number of VCI target ports (NB_TARGET). |
| 13 | |
| 14 | As any VCI advanced compliant interconnect, this component uses |
| 15 | the MSB bits of the VCI ADDRESS field to route the command packets |
| 16 | to the proper target, thanks to a routing table, implemented as a ROM. |
| 17 | This routing table is build by the constructor from the informations stored in |
| 18 | the [wiki:Component/MappingTable mapping table]. |
| 19 | It uses the VCI RSRCID field to route the response packet to the initiator. |
| 20 | |
| 21 | = Component definition = |
| 22 | |
| 23 | Available in source:trunk/soclib/desc/soclib/vci_simple_crossbar.sd |
| 24 | |
| 25 | == Usage == |
| 26 | |
| 27 | !VciSimpleCrossbar has no other parameter than VCI ones, it may be used like others, |
| 28 | see [wiki:SoclibCc/VciParameters SoclibCc/VciParameters] |
| 29 | {{{ |
| 30 | Uses( 'vci_simple_crossbar', **vci_parameters ) |
| 31 | }}} |
| 32 | |
| 33 | = !VciSimpleCrossbar CABA Implementation = |
| 34 | |
| 35 | The caba implementation is in |
| 36 | * source:trunk/soclib/systemc/include/caba/interconnect/vci_simple_crossbar.h |
| 37 | * source:trunk/soclib/systemc/src/caba/interconnect/vci_simple_crossbar.cc |
| 38 | |
| 39 | == Template parameters == |
| 40 | |
| 41 | {{{ |
| 42 | template<typename vci_param> |
| 43 | }}} |
| 44 | |
| 45 | == Constructor parameters == |
| 46 | |
| 47 | {{{ |
| 48 | VciSimpleCrossbar( |
| 49 | sc_module_name name, |
| 50 | const soclib::common::MappingTable &mt, |
| 51 | size_t nb_initiator, |
| 52 | size_t nb_target ); |
| 53 | }}} |
| 54 | |
| 55 | == Ports == |
| 56 | |
| 57 | * sc_in<bool> '''p_resetn''' : Global system reset |
| 58 | * sc_in<bool> '''p_clk''' : Global system clock |
| 59 | * soclib::caba::!VciTarget<vci_param> '''p_from_initiator[]''' : Ports from VCI initiators |
| 60 | * soclib::caba::!VciInitiator<vci_param> '''p_to_target[]''' : Ports to VCI targets |