random_gen.hh (12811:269967d5b4e4) random_gen.hh (12844:c934a1338314)
1/*
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

--- 65 unchanged lines hidden (view full) ---

74 * @param start_addr Start address
75 * @param end_addr End address
76 * @param _blocksize Size used for transactions injected
77 * @param min_period Lower limit of random inter-transaction time
78 * @param max_period Upper limit of random inter-transaction time
79 * @param read_percent Percent of transactions that are reads
80 * @param data_limit Upper limit on how much data to read/write
81 */
1/*
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

--- 65 unchanged lines hidden (view full) ---

74 * @param start_addr Start address
75 * @param end_addr End address
76 * @param _blocksize Size used for transactions injected
77 * @param min_period Lower limit of random inter-transaction time
78 * @param max_period Upper limit of random inter-transaction time
79 * @param read_percent Percent of transactions that are reads
80 * @param data_limit Upper limit on how much data to read/write
81 */
82 RandomGen(BaseTrafficGen &gen, Tick _duration,
83 Addr start_addr, Addr end_addr, Addr _blocksize,
82 RandomGen(SimObject &obj,
83 MasterID master_id, Tick _duration,
84 Addr start_addr, Addr end_addr,
85 Addr _blocksize, Addr cacheline_size,
84 Tick min_period, Tick max_period,
85 uint8_t read_percent, Addr data_limit)
86 Tick min_period, Tick max_period,
87 uint8_t read_percent, Addr data_limit)
86 : StochasticGen(gen, _duration, start_addr, end_addr, _blocksize,
87 min_period, max_period, read_percent, data_limit),
88 : StochasticGen(obj, master_id, _duration, start_addr, end_addr,
89 _blocksize, cacheline_size, min_period, max_period,
90 read_percent, data_limit),
88 dataManipulated(0)
89 { }
90
91 void enter();
92
93 PacketPtr getNextPacket();
94
95 Tick nextPacketTick(bool elastic, Tick delay) const;
96
97 protected:
98 /**
99 * Counter to determine the amount of data
100 * manipulated. Used to determine if we should continue
101 * generating requests.
102 */
103 Addr dataManipulated;
104};
105
106#endif
91 dataManipulated(0)
92 { }
93
94 void enter();
95
96 PacketPtr getNextPacket();
97
98 Tick nextPacketTick(bool elastic, Tick delay) const;
99
100 protected:
101 /**
102 * Counter to determine the amount of data
103 * manipulated. Used to determine if we should continue
104 * generating requests.
105 */
106 Addr dataManipulated;
107};
108
109#endif