exit_gen.hh (12397:a6d362560825) exit_gen.hh (12811:269967d5b4e4)
1/*
1/*
2 * Copyright (c) 2017 ARM Limited
2 * Copyright (c) 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 hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

51 * The exit generator exits from the simulation
52 * once entered.
53 */
54class ExitGen : public BaseGen
55{
56
57 public:
58
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 hereunder. You may use the software subject to the license
10 * terms below provided that you ensure that this notice is replicated

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

51 * The exit generator exits from the simulation
52 * once entered.
53 */
54class ExitGen : public BaseGen
55{
56
57 public:
58
59 ExitGen(const std::string& _name, MasterID master_id, Tick _duration)
60 : BaseGen(_name, master_id, _duration)
59 ExitGen(BaseTrafficGen &gen, Tick _duration)
60 : BaseGen(gen, _duration)
61 { }
62
63 void enter();
64
65 PacketPtr getNextPacket();
66
67 Tick nextPacketTick(bool elastic, Tick delay) const;
68
69};
70
71#endif
61 { }
62
63 void enter();
64
65 PacketPtr getNextPacket();
66
67 Tick nextPacketTick(bool elastic, Tick delay) const;
68
69};
70
71#endif