SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
signal.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2013 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_SIMICS2SYSTEMC_SIGNAL_H
17#define SIMICS_SYSTEMC_SIMICS2SYSTEMC_SIGNAL_H
18
19#include <simics/cc-api.h>
20#include <systemc>
21
26
27namespace simics {
28namespace systemc {
29namespace simics2systemc {
30
32 public:
34 Signal(const Signal&) = delete;
35 Signal& operator=(const Signal&) = delete;
37
38 // iface::SignalInterface
39 void raise() override {
40 validate_signal_level(true);
41 update(true);
42 }
43 void lower() override {
44 validate_signal_level(false);
45 update(false);
46 }
47
49 InternalInterface *internal);
50 void set_pin(sc_core::sc_in<bool> *target_pin, bool initial_level,
51 const ConfObjectRef &obj);
52 void set_pin(sc_core::sc_inout<bool> *target_pin, bool initial_level,
53 const ConfObjectRef &obj);
55
56 private:
57 void update(bool value);
58 void set_pin(const char *target_pin_name, bool initial_level,
59 const ConfObjectRef &obj);
60 void validate_signal_level(bool raise);
61
62 ConfObjectRef *simics_obj_;
63 GasketInterface *gasket_;
64 iface::SimulationInterface *simulation_;
65 InternalInterface *internal_;
66};
67
68} // namespace simics2systemc
69} // namespace systemc
70} // namespace simics
71
72#endif
Definition: internal_interface.h:25
Simics signal interface.
Definition: signal_interface.h:28
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
Definition: gasket_interface.h:30
void set_pin(sc_core::sc_in< bool > *target_pin, bool initial_level, const ConfObjectRef &obj)
void set_pin(sc_core::sc_inout< bool > *target_pin, bool initial_level, const ConfObjectRef &obj)
void raise() override
Definition: signal.h:39
Signal & operator=(const Signal &)=delete
void init(iface::SimulationInterface *simulation, InternalInterface *internal)
void lower() override
Definition: signal.h:43
Definition: pci_bus_interface.h:24