[wiki:Component SocLib Components General Index] = !VciVgmn Functional Description = [[Image(vci_vgmn.png, nolink, align=right)]] This hardware component is a generic micro-network respecting the VCI advanced protocol. It supports several simultaneous transaction, and behaves as two fully independent packet switched network for VCI commands and VCI responses. When several initiators try to reach the same target, the arbitration policy is round-robin. It gives the system designer a generic "communication black-box" with a parametrized number of VCI initiator ports (NB_INITIATOR), and a parameterized number of VCI target ports (NB_TARGET). It can be used to build a "flat" interconnect, where all VCI initiators and targets are identified by a single index: * The VCI targets must be indexed from 0 to (NB_TARGET - 1). * The VCI initiators must be indexed from 0 to (NB_INITIATOR - 1). As any VCI advanced compliant interconnect, this component uses the MSB bits of the VCI ADDRESS field to route the command packets to the proper target, thanks to a routing table, implemented as a ROM. This routing table is build by the constructor from the informations stored in the [wiki:MappingTable mapping table]. It uses the VCI RSRCID field to route the response packet to the initiator. This component has two "structural" parameters, that can be used to fit the behaviour of a specific physical micro-network: * The MIN_LATENCY parameter is a number of cycles that defines the latency of an empty network. * The FIFO_DEPTH parameter can be increased to improve the saturation threshold. = !VciVgmn CABA Implementation = The caba implementation is in * source:trunk/soclib/systemc/include/caba/interconnect/vci_vgmn.h * source:trunk/soclib/systemc/src/caba/interconnect/vci_vgmn.cc == Template parameters == {{{ template }}} == Constructor parameters == {{{ VciVgmn( sc_module_name name, // Component Name const soclib::common::MappingTable &mt); // MappingTable }}} == Ports == * sc_in '''p_resetn''' : Global system reset * sc_in '''p_clk''' : Global system clock * soclib::caba::!VciTarget '''p_from_initiator[NB_INITIATOR]''' : Ports from VCI initiators * soclib::caba::!VciInitiator '''p_to_target[NB_TARGET]''' : Ports to VCI targets == Implementation notes == Each micro network (Command and Response packets interconnects) is implemented within the same templated code. This code is instanciated twice, once for each network. [[Image(micro_network.png, nolink, align=right)]] There is one !InputRouter object per input port, it handles incoming packets and forwards them to the right !OutputPortQueue. There is one !OutputPortQueue per output port, handling as many fifos as input ports, and one delay line. It handles putting packets on output port.