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// -*- 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_SIMICS2TLM_TRANSACTION_H
17#define SIMICS_SYSTEMC_SIMICS2TLM_TRANSACTION_H
18
23
24namespace simics {
25namespace systemc {
26namespace simics2tlm {
27
28//:: pre simics2tlm_Transaction {{
41 public GasketOwner {
42 public:
43 exception_type_t issue(transaction_t *transaction, uint64 addr) override;
44
57 void set_deferrable(bool enable) {
58 deferrable_ = enable;
59 }
60
61 private:
62 static iface::TransactionPool pool_;
63 static iface::TransactionDataBufferPool data_buffer_pool_;
64
65 /*
66 * Update the TLM transaction before sending it over to the SystemC side
67 * By default this function does nothing since the TLM transaction has
68 * been filled with the basic required information. It can used to modify
69 * the filled information or add more information including customized
70 * extensions.
71 *
72 * @param simics_transaction the transaction received from Simics side
73 * @param tlm_transaction the TLM transaction to be sent over to the SystemC
74 * side
75 */
76 virtual void update_transaction(const transaction_t *simics_transaction,
77 tlm::tlm_generic_payload *tlm_transaction) {
78 }
79
87 bool deferrable_ {false};
88};
89// }}
90
91} // namespace simics2tlm
92} // namespace systemc
93} // namespace simics
94
95#endif
Definition: transaction_data_buffer_pool.h:106
Simics transaction interface.
Definition: transaction_interface.h:26
A memory manager that implements the tlm::tlm_mm_interface providing a pool of transaction objects.
Definition: transaction_pool.h:34
Base class, responsible for handling a gasket.
Definition: gasket_owner.h:32
Class that implements the Simics transaction interface and translates it into a TLM transaction.
Definition: transaction.h:41
void set_deferrable(bool enable)
Toggle code paths for deferred transactions.
Definition: transaction.h:57
exception_type_t issue(transaction_t *transaction, uint64 addr) override
Definition: adapter.h:81