HAL
endpoint.cpp
Go to the documentation of this file.
1
#include "
hal_core/netlist/endpoint.h
"
2
3
#include "
hal_core/netlist/gate.h
"
4
#include "
hal_core/netlist/net.h
"
5
#include "
hal_core/netlist/pins/gate_pin.h
"
6
7
namespace
hal
8
{
9
Endpoint::Endpoint(Gate* gate, GatePin* pin, Net*
net
,
bool
is_a_destination) : m_gate(gate), m_pin(pin), m_net(
net
), m_is_a_destination(is_a_destination)
10
{
11
}
12
13
bool
Endpoint::operator==(
const
Endpoint
& other)
const
14
{
15
return
*m_pin == *other.
get_pin
() && m_is_a_destination == other.
is_destination_pin
() && *m_gate == *other.
get_gate
() && *m_net == *other.
get_net
();
16
}
17
18
bool
Endpoint::operator!=(
const
Endpoint
& other)
const
19
{
20
return
!operator==(other);
21
}
22
23
Gate
* Endpoint::get_gate()
const
24
{
25
return
m_gate;
26
}
27
28
GatePin
* Endpoint::get_pin()
const
29
{
30
return
m_pin;
31
}
32
33
Net
* Endpoint::get_net()
const
34
{
35
return
m_net;
36
}
37
38
bool
Endpoint::is_destination_pin()
const
39
{
40
return
m_is_a_destination;
41
}
42
43
bool
Endpoint::is_source_pin()
const
44
{
45
return
!m_is_a_destination;
46
}
47
}
// namespace hal
hal::Endpoint
Definition:
endpoint.h:43
hal::Endpoint::get_net
Net * get_net() const
Definition:
endpoint.cpp:33
hal::Endpoint::get_pin
GatePin * get_pin() const
Definition:
endpoint.cpp:28
hal::Endpoint::get_gate
Gate * get_gate() const
Definition:
endpoint.cpp:23
hal::Endpoint::is_destination_pin
bool is_destination_pin() const
Definition:
endpoint.cpp:38
hal::Gate
Definition:
gate.h:58
hal::GatePin
Definition:
gate_pin.h:45
hal::Net
Definition:
net.h:58
endpoint.h
gate.h
gate_pin.h
hal
Definition:
parser_liberty.cpp:10
net.h
net
Net * net
Definition:
netlist_serializer.cpp:57
src
netlist
endpoint.cpp
Generated on Fri Feb 14 2025 14:22:44 for HAL by
1.9.1