gem5/ext/dsent/model/PortInfo.cc
Nilay Vaish e8ed7b1d1b ext: add the source code for DSENT
This patch adds a tool called DSENT to the ext/ directory.  DSENT
is a tool that models power and area for on-chip networks.  The next
patch adds a script for using the tool.
2014-10-11 15:02:23 -05:00

36 lines
713 B
C++

#include "model/PortInfo.h"
namespace DSENT
{
PortInfo::PortInfo(const String& port_name_, const NetIndex& net_index_)
: m_port_name_(port_name_), m_net_index_(net_index_), m_tran_info_(TransitionInfo())
{
}
PortInfo::~PortInfo()
{
}
const String& PortInfo::getPortName() const
{
return m_port_name_;
}
const NetIndex& PortInfo::getNetIndex() const
{
return m_net_index_;
}
void PortInfo::setTransitionInfo(const TransitionInfo& trans_info_)
{
m_tran_info_ = trans_info_;
return;
}
const TransitionInfo& PortInfo::getTransitionInfo() const
{
return m_tran_info_;
}
} // namespace DSENT