diff options
Diffstat (limited to 'src/systemc/tests/tlm/p2p/HierarchicalSocket/SimpleInitiatorWrapper.h')
-rw-r--r-- | src/systemc/tests/tlm/p2p/HierarchicalSocket/SimpleInitiatorWrapper.h | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/src/systemc/tests/tlm/p2p/HierarchicalSocket/SimpleInitiatorWrapper.h b/src/systemc/tests/tlm/p2p/HierarchicalSocket/SimpleInitiatorWrapper.h new file mode 100644 index 000000000..41b982ecd --- /dev/null +++ b/src/systemc/tests/tlm/p2p/HierarchicalSocket/SimpleInitiatorWrapper.h @@ -0,0 +1,55 @@ +/***************************************************************************** + + Licensed to Accellera Systems Initiative Inc. (Accellera) under one or + more contributor license agreements. See the NOTICE file distributed + with this work for additional information regarding copyright ownership. + Accellera licenses this file to you under the Apache License, Version 2.0 + (the "License"); you may not use this file except in compliance with the + License. You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied. See the License for the specific language governing + permissions and limitations under the License. + + *****************************************************************************/ + +#ifndef __SIMPLE_INITIATOR_WRAPPER_H__ +#define __SIMPLE_INITIATOR_WRAPPER_H__ + +#include "tlm.h" +#include "SimpleLTInitiator1.h" + +class SimpleInitiatorWrapper : public sc_core::sc_module +{ +public: + typedef tlm::tlm_generic_payload transaction_type; + typedef tlm::tlm_phase phase_type; + typedef tlm::tlm_sync_enum sync_enum_type; + typedef tlm::tlm_fw_transport_if<> fw_interface_type; + typedef tlm::tlm_bw_transport_if<> bw_interface_type; + typedef tlm::tlm_initiator_socket<> initiator_socket_type; + +public: + initiator_socket_type socket; + +public: + SimpleInitiatorWrapper(sc_core::sc_module_name name) : + sc_core::sc_module(name), + socket("socket"), + child("child") + { + child.socket(socket); + } + +protected: + SimpleLTInitiator1 child; + +}; + +#endif + + |