📄 lt_dmi_initiator.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_dmi_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_DMI_INITIATOR_H__#define __LT_DMI_INITIATOR_H__#include "tlm.h" // TLM headers#include "dmi_memory.h"#include "tlm_utils/simple_initiator_socket.h"class lt_dmi_initiator // lt_dmi_initiator : public sc_core::sc_module // module base class // , virtual public tlm::tlm_bw_transport_if<> // backward non-blocking interface{public:// Constructor ================================================================= lt_dmi_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); void custom_invalidate_dmi_ptr // invalidate_direct_mem_ptr ( sc_dt::uint64 start_range // start range , sc_dt::uint64 end_range // end range ); // Variable and Object Declarations ============================================public: typedef tlm::tlm_generic_payload *gp_ptr; // generic payload tlm_utils::simple_initiator_socket<lt_dmi_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 m_gp_status; unsigned int m_ID; // initiator ID sc_core::sc_time m_end_rsp_delay; // end response delay dmi_memory m_dmi_memory; tlm::tlm_dmi m_dmi_properties; sc_dt::uint64 m_address; }; #endif /* __LT_DMI_INITIATOR_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -