HAL
module_pin.cpp
Go to the documentation of this file.
1
#include "
hal_core/netlist/pins/module_pin.h
"
2
3
namespace
hal
4
{
5
ModulePin::ModulePin
(
const
u32
id
,
const
std::string&
name
,
Net
*
net
,
PinDirection
direction
,
PinType
type
) :
BasePin
(
id
,
name
,
direction
,
type
), m_net(
net
)
6
{
7
}
8
9
bool
ModulePin::operator==
(
const
ModulePin
& other)
const
10
{
11
return
m_net->
get_id
() == other.
get_net
()->
get_id
() &&
BasePin::operator==
(other);
12
}
13
14
bool
ModulePin::operator!=
(
const
ModulePin
& other)
const
15
{
16
return
!
operator==
(other);
17
}
18
19
Net
*
ModulePin::get_net
()
const
20
{
21
return
m_net;
22
}
23
}
// namespace hal
hal::BasePin
Definition:
base_pin.h:45
hal::BasePin::operator==
bool operator==(const BasePin &other) const
Definition:
base_pin.h:55
hal::ModulePin
Definition:
module_pin.h:45
hal::ModulePin::operator==
bool operator==(const ModulePin &other) const
Definition:
module_pin.cpp:9
hal::ModulePin::ModulePin
ModulePin(const u32 id, const std::string &name, Net *net, PinDirection direction, PinType type=PinType::none)
Definition:
module_pin.cpp:5
hal::ModulePin::get_net
Net * get_net() const
Definition:
module_pin.cpp:19
hal::ModulePin::operator!=
bool operator!=(const ModulePin &other) const
Definition:
module_pin.cpp:14
hal::Net
Definition:
net.h:58
hal::Net::get_id
u32 get_id() const
Definition:
net.cpp:88
module_pin.h
hal
Definition:
parser_liberty.cpp:10
hal::PinDirection
PinDirection
Definition:
pin_direction.h:36
hal::PinType
PinType
Definition:
pin_type.h:36
u32
quint32 u32
Definition:
net_layout_point.h:40
type
PinType type
Definition:
netlist_serializer.cpp:59
net
Net * net
Definition:
netlist_serializer.cpp:57
direction
PinDirection direction
Definition:
netlist_serializer.cpp:64
name
std::string name
Definition:
netlist_serializer.cpp:58
id
i32 id
Definition:
netlist_serializer.cpp:56
src
netlist
pins
module_pin.cpp
Generated on Fri Feb 14 2025 14:22:44 for HAL by
1.9.1