OpenASIP  2.0
Public Member Functions | List of all members
HDLGenerator::Splice Class Reference

#include <WidthTransformations.hh>

Inheritance diagram for HDLGenerator::Splice:
Inheritance graph
Collaboration diagram for HDLGenerator::Splice:
Collaboration graph

Public Member Functions

 Splice (std::string name, int upperBound, int lowerBound)
 
- Public Member Functions inherited from HDLGenerator::LHSValue
 LHSValue ()
 
void hdl (std::ostream &stream, Language lang, int level)
 
void hdl (std::ostream &stream, Language lang)
 
void writeSignals (std::unordered_set< std::string > &readList) const
 
std::string vhdl () const
 
std::string verilog () const
 
LHSValue operator|| (LHSValue rhs)
 
LHSValue operator| (LHSValue rhs)
 
LHSValue operator&& (LHSValue rhs)
 
LHSValue operator& (LHSValue rhs)
 
LHSValue operator^ (LHSValue rhs)
 
LHSValue operator! ()
 
LHSValue operator~ ()
 

Additional Inherited Members

- Protected Attributes inherited from HDLGenerator::LHSValue
std::unordered_set< std::string > readList_
 
std::string vhdl_
 
std::string verilog_
 

Detailed Description

Splice of a vector.

Definition at line 68 of file WidthTransformations.hh.

Constructor & Destructor Documentation

◆ Splice()

HDLGenerator::Splice::Splice ( std::string  name,
int  upperBound,
int  lowerBound 
)
inline

Definition at line 70 of file WidthTransformations.hh.

70  {
71  readList_.insert(name);
72  vhdl_ = name + "(" + std::to_string(upperBound)
73  + " downto " + std::to_string(lowerBound) + ")";
74  verilog_ = name + "[" + std::to_string(upperBound)
75  + ":" + std::to_string(lowerBound) + "]";
76  }

References HDLGenerator::LHSValue::readList_, HDLGenerator::LHSValue::verilog_, and HDLGenerator::LHSValue::vhdl_.


The documentation for this class was generated from the following file:
HDLGenerator::LHSValue::vhdl_
std::string vhdl_
Definition: LHSValue.hh:59
HDLGenerator::LHSValue::verilog_
std::string verilog_
Definition: LHSValue.hh:60
HDLGenerator::LHSValue::readList_
std::unordered_set< std::string > readList_
Definition: LHSValue.hh:58