traffic_gen.hh (9403:af9066bc088c) traffic_gen.hh (9557:8666e81607a6)
1/*
2 * Copyright (c) 2012 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

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

543 */
544 Addr addrOffset;
545
546 /**
547 * Set to true when the trace replay for one instance of
548 * state is complete.
549 */
550 bool traceComplete;
1/*
2 * Copyright (c) 2012 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

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

543 */
544 Addr addrOffset;
545
546 /**
547 * Set to true when the trace replay for one instance of
548 * state is complete.
549 */
550 bool traceComplete;
551
552 /**
553 * Used to store the Tick when the next generate should
554 * occur. It is to remove a transaction as soon as we
555 * enter the state.
556 */
557 Tick oldEmitTime;
558 };
559
560 /** Pointer to owner of request handler */
561 TrafficGen& owner;
562
563 /** Pointer to request handler */
564 QueuedMasterPort& port;
565

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

577
578
579 /** Queued handler */
580 class TrafficGenPort : public QueuedMasterPort
581 {
582 public:
583
584 TrafficGenPort(const std::string& name, TrafficGen& _owner)
551 };
552
553 /** Pointer to owner of request handler */
554 TrafficGen& owner;
555
556 /** Pointer to request handler */
557 QueuedMasterPort& port;
558

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

570
571
572 /** Queued handler */
573 class TrafficGenPort : public QueuedMasterPort
574 {
575 public:
576
577 TrafficGenPort(const std::string& name, TrafficGen& _owner)
585 : QueuedMasterPort(name, &_owner, queue), queue(_owner, *this),
586 owner(_owner)
578 : QueuedMasterPort(name, &_owner, queue), queue(_owner, *this)
587 { }
588
589 protected:
590
591 bool recvTimingResp(PacketPtr pkt);
592
593 private:
594
595 MasterPacketQueue queue;
596
579 { }
580
581 protected:
582
583 bool recvTimingResp(PacketPtr pkt);
584
585 private:
586
587 MasterPacketQueue queue;
588
597 // Owner of the port
598 TrafficGen& owner;
599
600 };
601
602 TrafficGenPort port;
603
604 /** Request generator state graph */
605 StateGraph stateGraph;
606
607 /**

--- 32 unchanged lines hidden ---
589 };
590
591 TrafficGenPort port;
592
593 /** Request generator state graph */
594 StateGraph stateGraph;
595
596 /**

--- 32 unchanged lines hidden ---