SimpleInitiatorWrapper.h revision 12855:588919e0e4aa
1/*****************************************************************************
2
3  Licensed to Accellera Systems Initiative Inc. (Accellera) under one or
4  more contributor license agreements.  See the NOTICE file distributed
5  with this work for additional information regarding copyright ownership.
6  Accellera licenses this file to you under the Apache License, Version 2.0
7  (the "License"); you may not use this file except in compliance with the
8  License.  You may obtain a copy of the License at
9
10    http://www.apache.org/licenses/LICENSE-2.0
11
12  Unless required by applicable law or agreed to in writing, software
13  distributed under the License is distributed on an "AS IS" BASIS,
14  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
15  implied.  See the License for the specific language governing
16  permissions and limitations under the License.
17
18 *****************************************************************************/
19
20#ifndef __SIMPLE_INITIATOR_WRAPPER_H__
21#define __SIMPLE_INITIATOR_WRAPPER_H__
22
23#include "tlm.h"
24#include "SimpleLTInitiator1.h"
25
26class SimpleInitiatorWrapper : public sc_core::sc_module
27{
28public:
29  typedef tlm::tlm_generic_payload transaction_type;
30  typedef tlm::tlm_phase phase_type;
31  typedef tlm::tlm_sync_enum sync_enum_type;
32  typedef tlm::tlm_fw_transport_if<> fw_interface_type;
33  typedef tlm::tlm_bw_transport_if<> bw_interface_type;
34  typedef tlm::tlm_initiator_socket<> initiator_socket_type;
35
36public:
37  initiator_socket_type socket;
38
39public:
40  SimpleInitiatorWrapper(sc_core::sc_module_name name) :
41    sc_core::sc_module(name),
42    socket("socket"),
43    child("child")
44  {
45    child.socket(socket);
46  }
47
48protected:
49  SimpleLTInitiator1 child;
50
51};
52
53#endif
54
55
56