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(SimObject &obj, 83 MasterID master_id, Tick _duration, 84 Addr start_addr, Addr end_addr, 85 Addr _blocksize, Addr cacheline_size, |
86 Tick min_period, Tick max_period, 87 uint8_t read_percent, Addr 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), |
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 |