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

#include <NetlistPort.hh>

Collaboration diagram for ProGe::StaticSignal:
Collaboration graph

Public Types

enum  State { GND, VCC, MIXED, OPEN }
 

Public Member Functions

 StaticSignal (State state)
 
bool is (State state)
 

Private Attributes

State state_
 

Detailed Description

Definition at line 47 of file NetlistPort.hh.

Member Enumeration Documentation

◆ State

Enumerator
GND 

All port signals set to low.

VCC 

All port signals set to high.

MIXED 

Port has signals both the low and high states.

OPEN 

Port is left open/unused.

Definition at line 49 of file NetlistPort.hh.

49  {
50  GND, ///< All port signals set to low.
51  VCC, ///< All port signals set to high.
52  MIXED, ///< Port has signals both the low and high states.
53  OPEN ///< Port is left open/unused.
54  };

Constructor & Destructor Documentation

◆ StaticSignal()

ProGe::StaticSignal::StaticSignal ( State  state)
inline

Definition at line 56 of file NetlistPort.hh.

56 : state_(state) {}

Member Function Documentation

◆ is()

bool ProGe::StaticSignal::is ( State  state)
inline

Definition at line 57 of file NetlistPort.hh.

57 { return state_ == state; }

References state_.

Referenced by ProGe::VHDLNetlistWriter::portSignalName(), and ProGe::VerilogNetlistWriter::portSignalName().

Member Data Documentation

◆ state_

State ProGe::StaticSignal::state_
private

Definition at line 59 of file NetlistPort.hh.

Referenced by is().


The documentation for this class was generated from the following file:
ProGe::StaticSignal::GND
@ GND
All port signals set to low.
Definition: NetlistPort.hh:50
ProGe::StaticSignal::OPEN
@ OPEN
Port is left open/unused.
Definition: NetlistPort.hh:53
ProGe::StaticSignal::VCC
@ VCC
All port signals set to high.
Definition: NetlistPort.hh:51
ProGe::StaticSignal::state_
State state_
Definition: NetlistPort.hh:59
ProGe::StaticSignal::MIXED
@ MIXED
Port has signals both the low and high states.
Definition: NetlistPort.hh:52