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_SIMICS2TLM_NULL_GASKET_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_NULL_GASKET_H
18
21
22#include <string>
23
24namespace simics {
25namespace systemc {
26namespace simics2tlm {
27
34 public simics::systemc::InstanceCounter<NullGasket> {
35 public:
36 bool trigger(iface::Transaction *transaction) override {
37 return false;
38 }
39 simics::ConfObjectRef &simics_obj() override {
40 return obj_;
41 }
43 return &dmi_data_table_;
44 }
45 void set_type(ClassType *type) override {}
46 ClassType *type() override {
47 return NULL;
48 }
49 sc_core::sc_object *get_target_socket() override {
50 return NULL;
51 }
52 void set_dmi(bool enable) override {
53 }
54 bool is_dmi_enabled() override {
55 return false;
56 }
57 std::string gasket_name() const override {
58 return "";
59 }
60
61 // deprecated
62 tlm::tlm_generic_payload &payload() override {
63 return transaction_;
64 }
65 bool trigger_transaction() override {
66 return false;
67 }
68 void set_inquiry(bool inquiry) override {
69 }
70
71 private:
72 simics::ConfObjectRef obj_;
73 tlm::tlm_generic_payload transaction_;
74 DmiDataTable dmi_data_table_;
75};
76
77} // namespace simics2tlm
78} // namespace systemc
79} // namespace simics
80
81#endif
Definition: class_type.h:25
Keeps track of (counts) the number of instances for this type of class.
Definition: instance_counter.h:32
Class that encapsulates a generic_payload and returns it to the TransactionPool when the Transaction ...
Definition: transaction.h:31
Definition: dmi_data_table.h:29
Interface used by simics2tlm gaskets, implemented by Gasket base class.
Definition: gasket_interface.h:35
Definition: null_gasket.h:34
bool is_dmi_enabled() override
Definition: null_gasket.h:54
sc_core::sc_object * get_target_socket() override
Definition: null_gasket.h:49
std::string gasket_name() const override
Definition: null_gasket.h:57
void set_type(ClassType *type) override
Definition: null_gasket.h:45
bool trigger_transaction() override
Deprecated, use the trigger(iface::Transaction *transaction) instead.
Definition: null_gasket.h:65
DmiDataTable * get_dmi_data_table() override
Definition: null_gasket.h:42
bool trigger(iface::Transaction *transaction) override
Definition: null_gasket.h:36
ClassType * type() override
Definition: null_gasket.h:46
simics::ConfObjectRef & simics_obj() override
Definition: null_gasket.h:39
tlm::tlm_generic_payload & payload() override
Deprecated, use the TransactionPool::acquire() instead.
Definition: null_gasket.h:62
void set_dmi(bool enable) override
Definition: null_gasket.h:52
void set_inquiry(bool inquiry) override
Deprecated, use the TransactionExtension::set_transport_debug(bool) instead.
Definition: null_gasket.h:68
Definition: adapter.h:81