Changes between Initial Version and Version 1 of Component/Vci Target Transactor


Ignore:
Timestamp:
Feb 25, 2010, 11:47:48 AM (13 years ago)
Author:
alinevieiramello@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Component/Vci Target Transactor

    v1 v1  
     1[wiki:Component SocLib Components General Index]
     2
     3= !VciTargetTransactor =
     4
     5== 1) Functional Description ==
     6All transactions received on the TLM-DT port are registered in a 2 dimensions buffer, indexed by both the VCI SRCID, and VCI TRDID fields. Each entry in this Pending-Transaction_Buffer contains a transaction status, a transaction time, and a pointer on the transaction payload.
     7As any TLM-DT target, the VciTargetTransactor component has a purely reactive behaviour : the behavior() thread is running only when a command is received, and keeps running until the last response to the last pending transaction has been transmited. When it is running,  it is descheduled twice per simulated cycle to drive the CK signal on the CABA interface.
     8Regarding the VCI commands received on the TLMDT port, the nb_transport_fw() interface method register the transaction in the Pending_Transaction_Buffer. The behaviour() thread will then send (cycle per cycle) the VCI command on the CABA port.
     9Regarding the VCI responses received on the CABA port, the behaviour() thread updates the payload (cycle per cycle). When the transaction is completed, the corresponding entry in the Pending_transaction_buffer is cleared, and the nd_transport_bw() method is called on the TLM-DT port.
     10
     11[[Image(vci_target_transactor.png, nolink)]]
     12
     13If the VCI target can send interrupts, the transactor provides an optional service of translation : When the behaviour() thread is running (following a VCI command, or NULL message reception) it polls the CABA IRQ port, and calls the nb_transport_fw() method on the IRQ TLM-DT port when the CABA value is modified.
     14
     15== 2) Implementation ==
     16
     17=== template parameters ===
     18
     19This component have two template parameters, defining respectively the width of the CABA and TLM-DT VCI parameters.
     20{{{
     21template<typename vci_param_caba, typename vci_param_tlmdt>
     22}}}
     23 
     24=== sources ===
     25
     26 * interface : source:trunk/soclib/soclib/module/network_component/vci_target_transactor/tlmdt/source/include/vci_target_transactor.h
     27 * implementation : source:trunk/soclib/soclib/module/network_component/vci_target_transactor/tlmdt/source/src/vci_target_transactor.cpp
     28
     29=== Constructor parameters ===
     30
     31{{{
     32VciTargetTransactor(
     33     sc_module_name name,  // Instance name
     34     size_t n_irq);        // optional : number of interruption ports (default = 0)
     35}}}
     36
     37=== Ports ===
     38
     39 * sc_out<bool> '''p_resetn''' : hardware reset
     40 * sc_out<bool> '''p_clk''' :  clock
     41 * sc_in<bool> '''*p_irq_target''' : IRQ target ports (from CABA to transactor)
     42 * VciInitiator<vci_param_caba> '''p_vci_initiator''' : VCI initiator port (from transactor to CABA)
     43
     44 * '''p_vci_target''' : VCI target port (from TLM-DT platform to transactor)
     45 * '''*p_irq_initiator''' : IRQ initiator ports (from transactor to TLM-DT platform)