⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 lt_initiator.h

📁 SystemC Transaction Level Modelling. 是基于SystemC之上的总线互联协议
💻 H
字号:
/*****************************************************************************  The following code is derived, directly or indirectly, from the SystemC  source code Copyright (c) 1996-2008 by all Contributors.  All Rights reserved.  The contents of this file are subject to the restrictions and limitations  set forth in the SystemC Open Source License Version 3.0 (the "License");  You may not use this file except in compliance with such restrictions and  limitations. You may obtain instructions on how to receive a copy of the  License at http://www.systemc.org/. Software distributed by Contributors  under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF  ANY KIND, either express or implied. See the License for the specific  language governing rights and limitations under the License. *****************************************************************************///==============================================================================///  @file lt_initiator.h///  @brief This is Loosley Timed Initiator//////  @Details///  This module implements only implements the blocking interface.///  The  nb_transport_bw and invalidate_direct_memory_ptr are implemented///  within the covenience socket////==============================================================================   //==============================================================================//  Original Authors://    Jack Donovan, ESLX//    Anna Keist, ESLX//==============================================================================#ifndef __LT_INITIATOR_H__#define __LT_INITIATOR_H__#include "tlm.h"                                    // TLM headers#include "tlm_utils/simple_initiator_socket.h"      // TLM simple initiator socketclass lt_initiator                                  // lt_initiator   :  public sc_core::sc_module                      // module base class {public:// Constructor =================================================================     lt_initiator                                    // constructor    ( sc_core::sc_module_name name                  // module name    , const unsigned int  ID                       ///< initiator ID    );     // Method Declarations =========================================================    //==============================================================================///     @brief SC_THREAD that performs blocking call (lt call)/////     @details///        This SC_THREAD takes transactions from traffic generator via the ///        sc_fifo attached to the request_in_port. Performs the blocking call.///        After completing the blocking call the transactions are returned to///        the traffic generator for checking via the response_out_port////==============================================================================   void initiator_thread (void);                        // Variable and Object Declarations ============================================public:     typedef tlm::tlm_generic_payload  *gp_ptr;        // generic payload   tlm_utils::simple_initiator_socket<lt_initiator> initiator_socket;    sc_core::sc_port<sc_core::sc_fifo_in_if  <gp_ptr> > request_in_port;     sc_core::sc_port<sc_core::sc_fifo_out_if <gp_ptr> > response_out_port;private:  tlm::tlm_response_status gp_status;  unsigned int            m_ID;                     // initiator ID  sc_core::sc_time        m_end_rsp_delay;          // end response delay  };  #endif /* __LT_INITIATOR_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -