SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
null_gasket.h
Go to the documentation of this file.
1/*
2 © 2014 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_TLM2SIMICS_NULL_GASKET_H
15#define SIMICS_SYSTEMC_TLM2SIMICS_NULL_GASKET_H
16
19
20#include <string>
21
22namespace simics {
23namespace systemc {
24namespace tlm2simics {
25
32 public simics::systemc::InstanceCounter<NullGasket> {
33 public:
36 }
37 void invalidate_direct_mem_ptr(sc_dt::uint64 start_range,
38 sc_dt::uint64 end_range) override {
39 }
40 sc_core::sc_object *get_initiator_socket() const override {
41 return NULL;
42 }
43 std::string gasket_name() const override {
44 return "NullGasket";
45 }
47 return NULL;
48 }
49};
50
51} // namespace tlm2simics
52} // namespace systemc
53} // namespace simics
54
55#endif
Keeps track of (counts) the number of instances for this type of class.
Definition: instance_counter.h:30
Interface used by tlm2simics gaskets, implemented by Gasket base class.
Definition: gasket_interface.h:28
Utility class that counts the number of instances.
Definition: null_gasket.h:32
sc_core::sc_object * get_initiator_socket() const override
Definition: null_gasket.h:40
TransactionHandlerInterface * transaction_handler() override
Definition: null_gasket.h:46
void set_transaction_handler(TransactionHandlerInterface *transaction_handler) override
Target object in Simics side receiving the TLM transaction.
Definition: null_gasket.h:34
std::string gasket_name() const override
Definition: null_gasket.h:43
void invalidate_direct_mem_ptr(sc_dt::uint64 start_range, sc_dt::uint64 end_range) override
Calling this method will end up calling the same method on the target socket, that will forward the c...
Definition: null_gasket.h:37
Interface used by Gasket, implemented by protocol specific transaction handlers.
Definition: transaction_handler_interface.h:34
Definition: adapter.h:79