113771Sgabeblack@google.com/*
213771Sgabeblack@google.com * Copyright (c) 2011-2012,2015,2017 ARM Limited
313771Sgabeblack@google.com * All rights reserved
413771Sgabeblack@google.com *
513771Sgabeblack@google.com * The license below extends only to copyright in the software and shall
613771Sgabeblack@google.com * not be construed as granting a license to any other intellectual
713771Sgabeblack@google.com * property including but not limited to intellectual property relating
813771Sgabeblack@google.com * to a hardware implementation of the functionality of the software
913771Sgabeblack@google.com * licensed hereunder.  You may use the software subject to the license
1013771Sgabeblack@google.com * terms below provided that you ensure that this notice is replicated
1113771Sgabeblack@google.com * unmodified and in its entirety in all distributions of the software,
1213771Sgabeblack@google.com * modified or unmodified, in source code or in binary form.
1313771Sgabeblack@google.com *
1413771Sgabeblack@google.com * Copyright (c) 2002-2005 The Regents of The University of Michigan
1513771Sgabeblack@google.com * All rights reserved.
1613771Sgabeblack@google.com *
1713771Sgabeblack@google.com * Redistribution and use in source and binary forms, with or without
1813771Sgabeblack@google.com * modification, are permitted provided that the following conditions are
1913771Sgabeblack@google.com * met: redistributions of source code must retain the above copyright
2013771Sgabeblack@google.com * notice, this list of conditions and the following disclaimer;
2113771Sgabeblack@google.com * redistributions in binary form must reproduce the above copyright
2213771Sgabeblack@google.com * notice, this list of conditions and the following disclaimer in the
2313771Sgabeblack@google.com * documentation and/or other materials provided with the distribution;
2413771Sgabeblack@google.com * neither the name of the copyright holders nor the names of its
2513771Sgabeblack@google.com * contributors may be used to endorse or promote products derived from
2613771Sgabeblack@google.com * this software without specific prior written permission.
2713771Sgabeblack@google.com *
2813771Sgabeblack@google.com * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
2913771Sgabeblack@google.com * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
3013771Sgabeblack@google.com * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
3113771Sgabeblack@google.com * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
3213771Sgabeblack@google.com * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
3313771Sgabeblack@google.com * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
3413771Sgabeblack@google.com * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
3513771Sgabeblack@google.com * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
3613771Sgabeblack@google.com * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
3713771Sgabeblack@google.com * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
3813771Sgabeblack@google.com * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3913771Sgabeblack@google.com *
4013771Sgabeblack@google.com * Authors: Ron Dreslinski
4113771Sgabeblack@google.com *          Andreas Hansson
4213771Sgabeblack@google.com *          William Wang
4313771Sgabeblack@google.com */
4413771Sgabeblack@google.com
4513771Sgabeblack@google.com/**
4613771Sgabeblack@google.com * @file
4713771Sgabeblack@google.com * Port Object Declaration.
4813771Sgabeblack@google.com */
4913771Sgabeblack@google.com
5013771Sgabeblack@google.com#include "sim/port.hh"
5113771Sgabeblack@google.com
5213782Sgabeblack@google.comPort::Port(const std::string& _name, PortID _id) :
5314189Sgabeblack@google.com    portName(_name), id(_id), _peer(nullptr), _connected(false)
5413782Sgabeblack@google.com{}
5513771Sgabeblack@google.comPort::~Port() {}
56