SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
proxy_factory_signal_port.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2016 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_AWARENESS_PROXY_FACTORY_SIGNAL_PORT_H
17#define SIMICS_SYSTEMC_AWARENESS_PROXY_FACTORY_SIGNAL_PORT_H
18
24
25#include <string>
26
27namespace simics {
28namespace systemc {
29namespace awareness {
30
31class ProxyFactorySignalPort : public ProxyFactory<ProxySignalPort> {
32 public:
33 void registerInterfaces(sc_core::sc_object *object,
34 conf_class_t *cls) const {
38 ProxySignalPort> >(cls);
39 registerInterface<iface::ScPortSimicsAdapter<ProxySignalPort> >(cls);
40 }
41};
42
44 public:
45 virtual bool canManufacture(sc_core::sc_object *object) const {
46 return std::string("sc_in") == object->kind();
47 }
48 void registerInterfaces(sc_core::sc_object *object,
49 conf_class_t *cls) const {
52 ProxySignalPort> >(cls);
53 }
54};
55
57 public:
58 virtual bool canManufacture(sc_core::sc_object *object) const {
59 return std::string("sc_out") == object->kind();
60 }
61 void registerInterfaces(sc_core::sc_object *object,
62 conf_class_t *cls) const {
65 ProxySignalPort> >(cls);
66 }
67};
68
70 public:
71 virtual bool canManufacture(sc_core::sc_object *object) const {
72 return std::string("sc_inout") == object->kind();
73 }
74 void registerInterfaces(sc_core::sc_object *object,
75 conf_class_t *cls) const {
78 ProxySignalPort> >(cls);
80 ProxySignalPort> >(cls);
81 }
82};
83
84} // namespace awareness
85} // namespace systemc
86} // namespace simics
87
88#endif
Definition: proxy_factory_signal_port.h:69
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_signal_port.h:74
virtual bool canManufacture(sc_core::sc_object *object) const
Definition: proxy_factory_signal_port.h:71
Definition: proxy_factory_signal_port.h:43
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_signal_port.h:48
virtual bool canManufacture(sc_core::sc_object *object) const
Definition: proxy_factory_signal_port.h:45
Definition: proxy_factory_signal_port.h:56
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_signal_port.h:61
virtual bool canManufacture(sc_core::sc_object *object) const
Definition: proxy_factory_signal_port.h:58
Definition: proxy_factory_signal_port.h:31
void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory_signal_port.h:33
Definition: proxy_factory.h:44
virtual void registerInterfaces(sc_core::sc_object *object, conf_class_t *cls) const
Definition: proxy_factory.h:117
void registerInterface(conf_class_t *cls) const
Definition: proxy_factory.h:179
Definition: proxy_signal_port.h:39
Definition: sc_signal_read_simics_adapter.h:35
Definition: sc_signal_write_simics_adapter.h:35
Definition: provider_controller_simics_adapter.h:36
Definition: pci_bus_interface.h:24