SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
i3c_slave.h
Go to the documentation of this file.
1// -*- mode: C++; c-file-style: "virtutech-c++" -*-
2
3/*
4 © 2019 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_I3C_SLAVE_H
17#define SIMICS_SYSTEMC_TLM2SIMICS_I3C_SLAVE_H
18
24
25namespace simics {
26namespace systemc {
27namespace tlm2simics {
28
33 public TransactionHandler,
35 public:
36 I3cSlave() : InterfaceProvider("i3c_slave"),
38 iface::I3cSlaveExtension::createIgnoreReceiver()),
39 receiver_(iface::I3cSlaveExtension::createReceiver(this)) {}
40 virtual ~I3cSlave();
41
42 // I3cSlaveInterface
43 void start(uint8_t address) override;
44 void write(uint8_t value) override;
45 void sdr_write(types::bytes_t data) override;
46 void read() override;
47 void daa_read() override;
48 void stop() override;
49 void ibi_start() override;
51 // TransactionHandler
53
54 private:
55 tlm::tlm_response_status simics_transaction(
56 ConfObjectRef &simics_obj,
57 tlm::tlm_generic_payload *trans) override;
58 iface::ReceiverInterface *receiver_;
59};
60
61} // namespace tlm2simics
62} // namespace systemc
63} // namespace simics
64
65#endif
Returns the interface provided by the associated Simics object.
Definition: interface_provider.h:32
Definition: i3c_slave_interface.h:27
Interface implemented by the ExtensionReceiver class, used by the ExtensionDispatcher.
Definition: receiver_interface.h:29
Protocol specific transaction handler for Simics i3c_slave interface.
Definition: i3c_slave.h:34
void sdr_write(types::bytes_t data) override
iface::ReceiverInterface * receiver() override
I3cSlave()
Definition: i3c_slave.h:36
void ibi_acknowledge(types::i3c_ack_t ack) override
void write(uint8_t value) override
void start(uint8_t address) override
Base class for transaction handlers without support for DMI.
Definition: transaction_handler.h:36
i3c_ack_t
Definition: i3c_ack.h:22
Definition: pci_bus_interface.h:24
Definition: bytes.h:28