gem5 v23.0.0.1
Loading...
Searching...
No Matches
dramsys_wrapper.hh
Go to the documentation of this file.
1/*
2 * Copyright (c) 2022 Fraunhofer IESE
3 * All rights reserved
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are
7 * met: redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer;
9 * redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the
11 * documentation and/or other materials provided with the distribution;
12 * neither the name of the copyright holders nor the names of its
13 * contributors may be used to endorse or promote products derived from
14 * this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
17 * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
18 * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
19 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
20 * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
23 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
24 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#ifndef __MEM_DRAMSYS_WRAPPER_HH__
30#define __MEM_DRAMSYS_WRAPPER_HH__
31
32#include <iostream>
33#include <memory>
34
35#include "DRAMSysConfiguration.h"
36#include "mem/abstract_mem.hh"
37#include "params/DRAMSys.hh"
38#include "sim/core.hh"
39#include "simulation/DRAMSysRecordable.h"
42#include "systemc/ext/systemc"
43#include "systemc/ext/tlm"
46
47namespace gem5
48{
49
50namespace memory
51{
52
54{
55 friend class DRAMSys;
56
57 public:
60 DRAMSysConfiguration::Configuration const &config,
61 bool recordable,
63
64 private:
65 static std::shared_ptr<::DRAMSys>
66 instantiateDRAMSys(bool recordable,
67 DRAMSysConfiguration::Configuration const &config);
68
70 tlm::tlm_phase &phase,
71 sc_core::sc_time &fwDelay);
72
74 tlm::tlm_phase &phase,
75 sc_core::sc_time &bwDelay);
76
77 unsigned int transport_dbg(tlm::tlm_generic_payload &trans);
78
81
82 std::shared_ptr<::DRAMSys> dramsys;
83
85};
86
87} // namespace memory
88} // namespace gem5
89
90#endif // __MEM_DRAMSYS_WRAPPER_HH__
AbstractMemory declaration.
The AddrRange class encapsulates an address range, and supports a number of tests to check if two ran...
Definition addr_range.hh:82
static std::shared_ptr<::DRAMSys > instantiateDRAMSys(bool recordable, DRAMSysConfiguration::Configuration const &config)
tlm::tlm_sync_enum nb_transport_bw(tlm::tlm_generic_payload &payload, tlm::tlm_phase &phase, sc_core::sc_time &bwDelay)
tlm::tlm_sync_enum nb_transport_fw(tlm::tlm_generic_payload &payload, tlm::tlm_phase &phase, sc_core::sc_time &fwDelay)
tlm_utils::simple_initiator_socket< DRAMSysWrapper > iSocket
unsigned int transport_dbg(tlm::tlm_generic_payload &trans)
std::shared_ptr<::DRAMSys > dramsys
tlm_utils::simple_target_socket< DRAMSysWrapper > tSocket
SC_HAS_PROCESS(DRAMSysWrapper)
const char * name() const
Definition sc_object.cc:44
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
tlm_sync_enum
Definition fw_bw_ifs.hh:31
Definition mem.h:38

Generated on Mon Jul 10 2023 15:32:04 for gem5 by doxygen 1.9.7