2c2
< * Copyright (c) 2012-2013, 2017 ARM Limited
---
> * Copyright (c) 2012-2013, 2017-2018 ARM Limited
62c62
< class RandomGen : public BaseGen
---
> class RandomGen : public StochasticGen
72,73c72
< * @param _name Name to use for status and debug
< * @param master_id MasterID set on each request
---
> * @param gen Traffic generator owning this sequence generator
83c82
< RandomGen(const std::string& _name, MasterID master_id, Tick _duration,
---
> RandomGen(BaseTrafficGen &gen, Tick _duration,
87,91c86,88
< : BaseGen(_name, master_id, _duration),
< startAddr(start_addr), endAddr(end_addr),
< blocksize(_blocksize), minPeriod(min_period),
< maxPeriod(max_period), readPercent(read_percent),
< dataLimit(data_limit), dataManipulated(0)
---
> : StochasticGen(gen, _duration, start_addr, end_addr, _blocksize,
> min_period, max_period, read_percent, data_limit),
> dataManipulated(0)
101,114d97
<
< /** Start of address range */
< const Addr startAddr;
<
< /** End of address range */
< const Addr endAddr;
<
< /** Block size */
< const Addr blocksize;
<
< /** Request generation period */
< const Tick minPeriod;
< const Tick maxPeriod;
<
116,123d98
< * Percent of generated transactions that should be reads
< */
< const uint8_t readPercent;
<
< /** Maximum amount of data to manipulate */
< const Addr dataLimit;
<
< /**