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// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2014 Intel Corporation
5
6 This software and the related documents are Intel copyrighted materials, and
7 your use of them is governed by the express license under which they were
8 provided to you ("License"). Unless the License provides otherwise, you may
9 not use, modify, copy, publish, distribute, disclose or transmit this software
10 or the related documents without Intel's prior written permission.
11
12 This software and the related documents are provided as is, with no express or
13 implied warranties, other than those that are expressly stated in the License.
14*/
15
16#ifndef SIMICS_SYSTEMC_TLM2SIMICS_NULL_GASKET_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_NULL_GASKET_H
18
21
22#include <string>
23
24namespace simics {
25namespace systemc {
26namespace tlm2simics {
27
34 public simics::systemc::InstanceCounter<NullGasket> {
35 public:
38 }
39 void invalidate_direct_mem_ptr(sc_dt::uint64 start_range,
40 sc_dt::uint64 end_range) override {
41 }
42 sc_core::sc_object *get_initiator_socket() const override {
43 return NULL;
44 }
45 std::string gasket_name() const override {
46 return "NullGasket";
47 }
49 return NULL;
50 }
51};
52
53} // namespace tlm2simics
54} // namespace systemc
55} // namespace simics
56
57#endif
Keeps track of (counts) the number of instances for this type of class.
Definition: instance_counter.h:32
Interface used by tlm2simics gaskets, implemented by Gasket base class.
Definition: gasket_interface.h:30
Utility class that counts the number of instances.
Definition: null_gasket.h:34
sc_core::sc_object * get_initiator_socket() const override
Definition: null_gasket.h:42
TransactionHandlerInterface * transaction_handler() override
Definition: null_gasket.h:48
void set_transaction_handler(TransactionHandlerInterface *transaction_handler) override
Target object in Simics side receiving the TLM transaction.
Definition: null_gasket.h:36
std::string gasket_name() const override
Definition: null_gasket.h:45
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:39
Interface used by Gasket, implemented by protocol specific transaction handlers.
Definition: transaction_handler_interface.h:36
Definition: pci_bus_interface.h:24