Ignore:
Timestamp:
Jan 7, 2011, 1:50:18 PM (13 years ago)
Author:
choichil
Message:

Synthetic Initiator with parallel transactions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/modules/vci_synthetic_initator/caba/sources/include/vci_synthetic_initiator.h

    r122 r123  
    44 * Copyright    : UPMC / LIP6
    55 * Authors      : Christophe Choichillon
    6  *
     6 * Version      : 2.0
     7 *
    78 * SOCLIB_LGPL_HEADER_BEGIN
    89 *
     
    2728 * Maintainers: christophe.choichillon@lip6.fr
    2829 */
    29  /*
    30      TODO : Adding the broadcast latency
    31  */
    3230
    3331#ifndef SOCLIB_CABA_SYNTHETIC_INITIATOR_H
     
    4341#include "mapping_table.h"
    4442#include "arithmetics.h"
     43//#include <cmath>
    4544
    4645namespace soclib {  namespace caba {
     
    6362        VCI_IDLE,
    6463        VCI_SINGLE_SEND,
    65         VCI_SINGLE_RECEIVE,
    6664        VCI_BC_SEND,
    67         VCI_BC_RECEIVE
    6865      };
    69 //      enum gen_fsm_state_e{
    70 //        A_IDLE,
    71 //        A_DATA
    72 //      };
     66
     67      enum bc_rsp_fsm_state_e{
     68        BC_RSP_IDLE,
     69        BC_RSP_WAIT_RSP
     70      };
     71
    7372
    7473      uint64_t     m_cpt_cycles;            // Counter of cycles
     
    9089                const uint32_t length,    // Packet length (flit numbers)
    9190                const uint32_t rho,       // Packets ratio on the network
    92                 //const float    rho,       // Packets ratio on the network
    9391                const uint32_t depth,     // Fifo depth
    9492                const uint32_t xmesh,   
     
    137135      uint64_t                            m_latency1;               // Average latency wanted
    138136      uint64_t                            m_latency2;               // Average latency
    139       size_t                              m_bc_nrsp;                // Expected number of responses for a broadcast command
    140137      addr_t                              m_address_to_send;        // Address to send the write command
    141138      uint32_t                            m_local_seed;
     139      int                                 m_id_to_send;
    142140
    143141      uint64_t                            m_start_latency_bc;
     
    145143      uint64_t                            m_nb_bc;
    146144
     145      static const int                    tab_size = 1 << vci_param::T;
    147146      // Fifo transmitting date to the VCI FSM
    148       GenericFifo<uint32_t>    m_date_fifo;
     147      GenericFifo<uint32_t>     m_date_fifo;
    149148
    150       //sc_signal<int>           r_cmd_fsm;
    151       sc_signal<int>           r_vci_fsm;
     149      sc_signal<int>            r_cmd_fsm;
    152150
    153       sc_signal<int>           r_bc_rsp_fsm;
     151      sc_signal<int>            r_bc_rsp_fsm;
    154152       
    155       sc_signal<size_t>        r_index;
     153      sc_signal<size_t>         r_index;
    156154
    157       sc_signal<bool>          r_broadcast_req;
     155      sc_signal<bool>           r_broadcast_req;
     156
     157      sc_signal<bool>           r_broadcast_rsp;
     158
     159      sc_signal<uint32_t>       r_bc_nrsp;                  // Expected number of responses for a broadcast command
     160
     161      sc_signal<uint64_t>       **r_req_id;
    158162
    159163
Note: See TracChangeset for help on using the changeset viewer.