OpenASIP  2.0
Public Member Functions | Private Attributes | List of all members
ProGe::Signal Class Reference

#include <Signal.hh>

Collaboration diagram for ProGe::Signal:
Collaboration graph

Public Member Functions

 Signal ()
 
 Signal (SignalType type, ActiveState activeState=ActiveState::HIGH)
 
virtual ~Signal ()
 
SignalType type () const
 
ActiveState activeState () const
 
bool operator== (SignalType type) const
 
bool operator== (const Signal &other) const
 

Private Attributes

SignalType type_ = SignalType::UNDEFINED
 Signal purpose type id. More...
 
ActiveState activeState_ = ActiveState::HIGH
 The active state of the signal. More...
 

Detailed Description

Definition at line 46 of file Signal.hh.

Constructor & Destructor Documentation

◆ Signal() [1/2]

ProGe::Signal::Signal ( )

Definition at line 38 of file Signal.cc.

References ProGe::HIGH, and ProGe::UNDEFINED.

◆ Signal() [2/2]

ProGe::Signal::Signal ( SignalType  type,
ActiveState  activeState = ActiveState::HIGH 
)

Definition at line 41 of file Signal.cc.

44  : type_(type),
46 }

◆ ~Signal()

ProGe::Signal::~Signal ( )
virtual

Definition at line 48 of file Signal.cc.

48  {
49 }

Member Function Documentation

◆ activeState()

ActiveState ProGe::Signal::activeState ( ) const

Returns state in where the signal is considered to be active.

Definition at line 63 of file Signal.cc.

63  {
64  return activeState_;
65 }

References activeState_.

Referenced by ProGe::Netlist::connect().

◆ operator==() [1/2]

bool ProGe::Signal::operator== ( const Signal other) const
inline

Definition at line 59 of file Signal.hh.

59  {
60  return (this->type_ == other.type_
61  && this->activeState_ == other.activeState_);
62  }

References activeState_, and type_.

◆ operator==() [2/2]

bool ProGe::Signal::operator== ( SignalType  type) const
inline

Definition at line 56 of file Signal.hh.

56  {
57  return (this->type_ == type);
58  }

References type_.

◆ type()

SignalType ProGe::Signal::type ( ) const

Returns signal's purpose specified in the comments of SignalType definition.

Definition at line 55 of file Signal.cc.

55  {
56  return type_;
57 }

References type_.

Referenced by ProGe::NetlistPortGroup::clone(), ProGe::NetlistPort::clone(), ProGe::BaseNetlistBlock::hasPortsBy(), ProGe::BaseNetlistBlock::portsBy(), and ProGe::PortFactory::registerPort().

Member Data Documentation

◆ activeState_

ActiveState ProGe::Signal::activeState_ = ActiveState::HIGH
private

The active state of the signal.

Definition at line 71 of file Signal.hh.

Referenced by activeState(), and operator==().

◆ type_

SignalType ProGe::Signal::type_ = SignalType::UNDEFINED
private

Signal purpose type id.

Definition at line 69 of file Signal.hh.

Referenced by operator==(), and type().


The documentation for this class was generated from the following files:
ProGe::Signal::activeState
ActiveState activeState() const
Definition: Signal.cc:63
ProGe::ActiveState::HIGH
@ HIGH
ProGe::SignalType::UNDEFINED
@ UNDEFINED
Signal does not have specified usage.
ProGe::Signal::type_
SignalType type_
Signal purpose type id.
Definition: Signal.hh:69
ProGe::Signal::type
SignalType type() const
Definition: Signal.cc:55
ProGe::Signal::activeState_
ActiveState activeState_
The active state of the signal.
Definition: Signal.hh:71
ProGe::Signal::Signal
Signal()
Definition: Signal.cc:38