bridge.cc (2665:a124942bacb8) bridge.cc (2738:5d7a31c7fa29)
1
2/*
3 * Copyright (c) 2006 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

54 : MemObject(n),
55 portA(n + "-portA", this, &portB, _delay, qsa),
56 portB(n + "-portB", this, &portA, _delay, qsa),
57 ackWrites(write_ack)
58{
59}
60
61Port *
1
2/*
3 * Copyright (c) 2006 The Regents of The University of Michigan
4 * All rights reserved.
5 *
6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are
8 * met: redistributions of source code must retain the above copyright

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

54 : MemObject(n),
55 portA(n + "-portA", this, &portB, _delay, qsa),
56 portB(n + "-portB", this, &portA, _delay, qsa),
57 ackWrites(write_ack)
58{
59}
60
61Port *
62Bridge::getPort(const std::string &if_name)
62Bridge::getPort(const std::string &if_name, int idx)
63{
64 BridgePort *port;
65
66 if (if_name == "side_a")
67 port = &portA;
68 else if (if_name == "side_b")
69 port = &portB;
70 else

--- 191 unchanged lines hidden ---
63{
64 BridgePort *port;
65
66 if (if_name == "side_a")
67 port = &portA;
68 else if (if_name == "side_b")
69 port = &portB;
70 else

--- 191 unchanged lines hidden ---