SystemC Library API Reference Manual
Reference documentation for the Simics SystemC Library.
 
Loading...
Searching...
No Matches
transaction.h
Go to the documentation of this file.
1/*
2 © 2019 Intel Corporation
3
4 This software and the related documents are Intel copyrighted materials, and
5 your use of them is governed by the express license under which they were
6 provided to you ("License"). Unless the License provides otherwise, you may
7 not use, modify, copy, publish, distribute, disclose or transmit this software
8 or the related documents without Intel's prior written permission.
9
10 This software and the related documents are provided as is, with no express or
11 implied warranties, other than those that are expressly stated in the License.
12*/
13
14#ifndef SIMICS_SYSTEMC_SIMICS2TLM_TRANSACTION_H
15#define SIMICS_SYSTEMC_SIMICS2TLM_TRANSACTION_H
16
21
22namespace simics {
23namespace systemc {
24namespace simics2tlm {
25
26//:: pre simics2tlm_Transaction {{
39 public GasketOwner {
40 public:
41 exception_type_t issue(transaction_t *transaction, uint64 addr) override;
42
55 void set_deferrable(bool enable) {
56 deferrable_ = enable;
57 }
58
59 private:
60 static iface::TransactionPool pool_;
61 static iface::TransactionDataBufferPool data_buffer_pool_;
62
63 /*
64 * Update the TLM transaction before sending it over to the SystemC side
65 * By default this function does nothing since the TLM transaction has
66 * been filled with the basic required information. It can used to modify
67 * the filled information or add more information including customized
68 * extensions.
69 *
70 * @param simics_transaction the transaction received from Simics side
71 * @param tlm_transaction the TLM transaction to be sent over to the SystemC
72 * side
73 */
74 virtual void update_transaction(const transaction_t *simics_transaction,
75 tlm::tlm_generic_payload *tlm_transaction) {
76 }
77
85 bool deferrable_ {false};
86};
87// }}
88
89} // namespace simics2tlm
90} // namespace systemc
91} // namespace simics
92
93#endif
Definition: transaction_data_buffer_pool.h:104
Simics transaction interface.
Definition: transaction_interface.h:25
A memory manager that implements the tlm::tlm_mm_interface providing a pool of transaction objects.
Definition: transaction_pool.h:32
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:30
Class that implements the Simics transaction interface and translates it into a TLM transaction.
Definition: transaction.h:39
void set_deferrable(bool enable)
Toggle code paths for deferred transactions.
Definition: transaction.h:55
exception_type_t issue(transaction_t *transaction, uint64 addr) override
Definition: adapter.h:79