Ignore:
Timestamp:
Jan 18, 2011, 6:37:31 PM (13 years ago)
Author:
alain
Message:

decreasing the number of registers

File:
1 edited

Legend:

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

    r126 r128  
    5757
    5858
    59       /* States of the GENERATOR fsm */
     59      /* States of the VCI CMD fsm */
    6060      enum vci_fsm_state_e{
    6161        VCI_IDLE,
     
    6464      };
    6565
    66       enum bc_rsp_fsm_state_e{
     66      enum bc_fsm_state_e{
    6767        BC_RSP_IDLE,
    6868        BC_RSP_WAIT_RSP
     
    7070
    7171
    72       uint64_t     m_cpt_cycles;            // Counter of cycles
    7372     
    7473
     
    115114
    116115      // Component attributes
    117       const size_t                        m_length;             // Number of words to write
    118       const size_t                        m_rho;                // Rate of packets in the network wanted
    119       //const float                       m_rho;                // Rate of packets in the network wanted
    120       const size_t                        m_depth;              // Fifo depth
    121       const size_t                        m_xmesh;     
    122       const size_t                        m_ymesh;
    123       const size_t                        m_bc_period;          // Broadcast period, if no broadcast => 0
    124       const size_t                        m_xmin;
    125       const size_t                        m_xmax;
    126       const size_t                        m_ymin;
    127       const size_t                        m_ymax;
    128       const size_t                        m_srcid;
    129       static const int                    tab_size = 1 << vci_param::T;
     116      const size_t                m_length;             // Number of words to write
     117      const size_t                m_rho;                // offered load * 1000
     118      const size_t                m_depth;              // Fifo depth
     119      const size_t                m_xmesh;     
     120      const size_t                m_ymesh;
     121      const size_t                m_bc_period;          // Broadcast period, if no broadcast => 0
     122      const size_t                m_xmin;
     123      const size_t                m_xmax;
     124      const size_t                m_ymin;
     125      const size_t                m_ymax;
     126      const size_t                m_srcid;
     127      static const int            m_tab_size = 1 << vci_param::T;
    130128
    131       sc_signal<size_t>                   r_count;                  // Numbers of words sent
    132       sc_signal<size_t>                   r_npackets;               // Total number of packets already sent
    133       sc_signal<uint64_t>                 r_start_latency1;         // Start time of sending packet wanted
    134       sc_signal<uint64_t>                 r_start_latency2;         // Start time of sending packet
    135       sc_signal<uint64_t>                 r_latency1;               // Average latency wanted
    136       sc_signal<uint64_t>                 r_latency2;               // Average latency
    137       sc_signal<addr_t>                   r_address_to_send;        // Address to send the write command
    138       sc_signal<uint32_t>                 r_local_seed;
    139       sc_signal<int>                      r_id_to_send;
    140129
    141       sc_signal<uint64_t>                 r_start_latency_bc;
    142       sc_signal<uint64_t>                 r_latency_bc;
    143       sc_signal<uint64_t>                 r_nb_bc;
     130      // Fifo transmitting requests from the generator FSM to the VCI FSM
     131      GenericFifo<uint64_t>     r_date_fifo;
     132      GenericFifo<bool>         r_bc_fifo;
    144133
    145       // Fifo transmitting date to the VCI FSM
    146       GenericFifo<uint32_t>     m_date_fifo;
     134      // VCI CMD FSM
     135      sc_signal<int>            r_cmd_fsm;
     136      sc_signal<addr_t>         r_cmd_address;  // Address for the single transaction
     137      sc_signal<int>            r_cmd_trdid;    // TRDID for the single transaction
     138      sc_signal<size_t>         r_cmd_count;    // Numbers of words sent
     139      sc_signal<uint32_t>       r_cmd_seed;     // seed for reproducible address generation
    147140
    148       sc_signal<int>            r_cmd_fsm;
     141      // Broadcast FSM
     142      sc_signal<bool>           r_bc_fsm;       // FSM state
     143      sc_signal<uint64_t>       r_bc_date;      // broadcast transaction requested date
     144      sc_signal<uint32_t>       r_bc_nrsp;      // Expected number of responses for a broadcast command
     145       
     146      // Pending transaction FSMs
     147      sc_signal<bool>*          r_pending_fsm;  // FSM states
     148      sc_signal<uint64_t>*      r_pending_date; // single transaction requested date
    149149
    150       sc_signal<int>            r_bc_rsp_fsm;
    151        
    152       sc_signal<size_t>         r_index;
    153 
    154       sc_signal<bool>           r_broadcast_req;
    155 
    156       sc_signal<bool>           r_broadcast_rsp;
    157 
    158       sc_signal<uint32_t>       r_bc_nrsp;                  // Expected number of responses for a broadcast command
    159 
    160       sc_signal<uint64_t>       **r_req_id;
    161 
     150      // Instrumentation registers
     151      sc_signal<uint64_t>       r_cpt_cycles;   // Local time
     152      sc_signal<uint64_t>       r_cpt_period;   // Number of cycles between 2 broadcast transactions
     153      sc_signal<size_t>         r_nb_single;    // Total number of single transactions
     154      sc_signal<uint64_t>       r_latency_single;       // Total cumulated latency for single transactions
     155      sc_signal<size_t>         r_nb_bc;        // Total number of bc transactions
     156      sc_signal<uint64_t>       r_latency_bc;   // Total cumulated latency for broadcast transactions
    162157
    163158    }; // end class VciSyntheticInitiator
Note: See TracChangeset for help on using the changeset viewer.