SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
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 virtual bool trigger(iface::Transaction *transaction) {
37 return false;
38 }
39 virtual simics::ConfObjectRef &simics_obj() {
40 return obj_;
41 }
43 return &dmi_data_table_;
44 }
45 virtual void set_type(ClassType *type) {}
46 virtual ClassType *type() {
47 return NULL;
48 }
49 virtual sc_core::sc_object *get_target_socket() {
50 return NULL;
51 }
52 virtual void set_dmi(bool enable) {
53 }
54 virtual bool is_dmi_enabled() {
55 return false;
56 }
57 std::string gasket_name() const {
58 return "";
59 }
60
61 // deprecated
62 virtual tlm::tlm_generic_payload &payload() {
63 return transaction_;
64 }
65 virtual bool trigger_transaction() {
66 return false;
67 }
68 virtual void set_inquiry(bool inquiry) {
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:30
Interface used by simics2tlm gaskets, implemented by Gasket base class.
Definition: gasket_interface.h:35
Definition: null_gasket.h:34
virtual bool trigger(iface::Transaction *transaction)
Definition: null_gasket.h:36
virtual void set_inquiry(bool inquiry)
Deprecated, use the TransactionExtension::set_transport_debug(bool) instead.
Definition: null_gasket.h:68
std::string gasket_name() const
Definition: null_gasket.h:57
virtual ClassType * type()
Definition: null_gasket.h:46
virtual bool trigger_transaction()
Deprecated, use the trigger(iface::Transaction *transaction) instead.
Definition: null_gasket.h:65
virtual void set_dmi(bool enable)
Definition: null_gasket.h:52
virtual DmiDataTable * get_dmi_data_table()
Definition: null_gasket.h:42
virtual bool is_dmi_enabled()
Definition: null_gasket.h:54
virtual void set_type(ClassType *type)
Definition: null_gasket.h:45
virtual sc_core::sc_object * get_target_socket()
Definition: null_gasket.h:49
virtual simics::ConfObjectRef & simics_obj()
Definition: null_gasket.h:39
virtual tlm::tlm_generic_payload & payload()
Deprecated, use the TransactionPool::acquire() instead.
Definition: null_gasket.h:62
Definition: pci_bus_interface.h:24