SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
serial_device.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2015 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_TLM2SIMICS_SERIAL_DEVICE_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_SERIAL_DEVICE_H
18
24
25namespace simics {
26namespace systemc {
27namespace tlm2simics {
28
33//:: pre tlm2simics_SerialDevice {{
35 public TransactionHandler,
37 public:
38 SerialDevice() : InterfaceProvider("serial_device"),
40 iface::SerialDeviceExtension::createIgnoreReceiver()),
41 receiver_(
42 iface::SerialDeviceExtension::createReceiver(this)) {}
43
44 // SerialDeviceInterface
45 int write(int value) override;
46 void receive_ready() override;
47 // TransactionHandler
49
50 virtual ~SerialDevice();
51
52 private:
53 tlm::tlm_response_status simics_transaction(
54 ConfObjectRef &simics_obj,
55 tlm::tlm_generic_payload *trans) override;
56 iface::ReceiverInterface *receiver_;
57};
58// }}
59
60} // namespace tlm2simics
61} // namespace systemc
62} // namespace simics
63
64#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Definition: serial_device_interface.h:24
Class that translates a TLM transaction with protocol specific SerialDeviceExtension to the Simics C+...
Definition: serial_device.h:36
SerialDevice()
Definition: serial_device.h:38
iface::ReceiverInterface * receiver() override
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
Definition: pci_bus_interface.h:24