trace_gen.hh (12396:3d04ea44fafb) | trace_gen.hh (12811:269967d5b4e4) |
---|---|
1/* | 1/* |
2 * Copyright (c) 2012-2013, 2017 ARM Limited | 2 * Copyright (c) 2012-2013, 2017-2018 ARM Limited |
3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed here under. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 136 unchanged lines hidden (view full) --- 147 bool read(TraceElement& element); 148 }; 149 150 public: 151 152 /** 153 * Create a trace generator. 154 * | 3 * All rights reserved 4 * 5 * The license below extends only to copyright in the software and shall 6 * not be construed as granting a license to any other intellectual 7 * property including but not limited to intellectual property relating 8 * to a hardware implementation of the functionality of the software 9 * licensed here under. You may use the software subject to the license 10 * terms below provided that you ensure that this notice is replicated --- 136 unchanged lines hidden (view full) --- 147 bool read(TraceElement& element); 148 }; 149 150 public: 151 152 /** 153 * Create a trace generator. 154 * |
155 * @param _name Name to use for status and debug 156 * @param master_id MasterID set on each request | 155 * @param gen Traffic generator owning this sequence generator |
157 * @param _duration duration of this state before transitioning 158 * @param trace_file File to read the transactions from 159 * @param addr_offset Positive offset to add to trace address 160 */ | 156 * @param _duration duration of this state before transitioning 157 * @param trace_file File to read the transactions from 158 * @param addr_offset Positive offset to add to trace address 159 */ |
161 TraceGen(const std::string& _name, MasterID master_id, Tick _duration, | 160 TraceGen(BaseTrafficGen &gen, Tick _duration, |
162 const std::string& trace_file, Addr addr_offset) | 161 const std::string& trace_file, Addr addr_offset) |
163 : BaseGen(_name, master_id, _duration), | 162 : BaseGen(gen, _duration), |
164 trace(trace_file), 165 tickOffset(0), 166 addrOffset(addr_offset), 167 traceComplete(false) 168 { 169 } 170 171 void enter(); --- 42 unchanged lines hidden --- | 163 trace(trace_file), 164 tickOffset(0), 165 addrOffset(addr_offset), 166 traceComplete(false) 167 { 168 } 169 170 void enter(); --- 42 unchanged lines hidden --- |