SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
simulation_interface_proxy.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_SIMULATION_INTERFACE_PROXY_H
17#define SIMICS_SYSTEMC_SIMULATION_INTERFACE_PROXY_H
18
20
21#include <systemc>
22
23namespace simics {
24namespace systemc {
25
28 public:
29 SimulationInterfaceProxy() : simulation_(NULL) {
30 }
31
33 simulation_ = simulation;
34 }
35
36 // SimulationInterface
37 virtual int runDeltaPhase(int count) {
38 return simulation_->runDeltaPhase(count);
39 }
40 virtual bool runSimulation(sc_core::sc_time t) {
41 return simulation_->runSimulation(t);
42 }
43 virtual void stopSimulation() {
44 return simulation_->stopSimulation();
45 }
46 virtual sc_core::sc_simcontext *context() const {
47 return simulation_->context();
48 }
49 virtual ConfObjectRef simics_object() const {
50 return simulation_->simics_object();
51 }
52
53 private:
54 iface::SimulationInterface *simulation_;
55};
56
57} // namespace systemc
58} // namespace simics
59
60#endif
Interface to the SystemC simulation.
Definition: simulation_interface_proxy.h:27
SimulationInterfaceProxy()
Definition: simulation_interface_proxy.h:29
virtual void stopSimulation()
Definition: simulation_interface_proxy.h:43
virtual sc_core::sc_simcontext * context() const
Definition: simulation_interface_proxy.h:46
virtual bool runSimulation(sc_core::sc_time t)
Definition: simulation_interface_proxy.h:40
virtual int runDeltaPhase(int count)
Definition: simulation_interface_proxy.h:37
void setSimulation(iface::SimulationInterface *simulation)
Definition: simulation_interface_proxy.h:32
virtual ConfObjectRef simics_object() const
Definition: simulation_interface_proxy.h:49
Interface to the SystemC simulation.
Definition: simulation_interface.h:27
virtual sc_core::sc_simcontext * context() const =0
virtual bool runSimulation(sc_core::sc_time t)=0
virtual ConfObjectRef simics_object() const =0
Definition: pci_bus_interface.h:24