bridge.hh (13799:15badf7874ee) bridge.hh (13892:0182a0601f66)
1/*
2 * Copyright (c) 2011-2013 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

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

49 */
50
51#ifndef __MEM_BRIDGE_HH__
52#define __MEM_BRIDGE_HH__
53
54#include <deque>
55
56#include "base/types.hh"
1/*
2 * Copyright (c) 2011-2013 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

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

49 */
50
51#ifndef __MEM_BRIDGE_HH__
52#define __MEM_BRIDGE_HH__
53
54#include <deque>
55
56#include "base/types.hh"
57#include "mem/mem_object.hh"
57#include "mem/port.hh"
58#include "params/Bridge.hh"
58#include "params/Bridge.hh"
59#include "sim/clocked_object.hh"
59
60/**
61 * A bridge is used to interface two different crossbars (or in general a
62 * memory-mapped master and slave), with buffering for requests and
63 * responses. The bridge has a fixed delay for packets passing through
64 * it and responds to a fixed set of address ranges.
65 *
66 * The bridge comprises a slave port and a master port, that buffer
67 * outgoing responses and requests respectively. Buffer space is
68 * reserved when a request arrives, also reserving response space
69 * before forwarding the request. If there is no space present, then
70 * the bridge will delay accepting the packet until space becomes
71 * available.
72 */
60
61/**
62 * A bridge is used to interface two different crossbars (or in general a
63 * memory-mapped master and slave), with buffering for requests and
64 * responses. The bridge has a fixed delay for packets passing through
65 * it and responds to a fixed set of address ranges.
66 *
67 * The bridge comprises a slave port and a master port, that buffer
68 * outgoing responses and requests respectively. Buffer space is
69 * reserved when a request arrives, also reserving response space
70 * before forwarding the request. If there is no space present, then
71 * the bridge will delay accepting the packet until space becomes
72 * available.
73 */
73class Bridge : public MemObject
74class Bridge : public ClockedObject
74{
75 protected:
76
77 /**
78 * A deferred packet stores a packet along with its scheduled
79 * transmission time
80 */
81 class DeferredPacket

--- 248 unchanged lines hidden ---
75{
76 protected:
77
78 /**
79 * A deferred packet stores a packet along with its scheduled
80 * transmission time
81 */
82 class DeferredPacket

--- 248 unchanged lines hidden ---