OpenASIP
2.0
|
#include <HDLRegister.hh>
Public Member Functions | |
Register (std::string name, int width, WireType wt, ResetOption rst=ResetOption::Mandatory) | |
Register (std::string name, int width=1, ResetOption rst=ResetOption::Mandatory) | |
Register (std::string name, std::string width, ResetOption rst=ResetOption::Mandatory) | |
Width | width () noexcept |
std::string | name () |
Register & | setResetValue (BinaryLiteral &&rhs) |
void | reset (std::ostream &stream, Language lang, int ident) |
void | declare (std::ostream &stream, Language lang, int ident) |
ResetOption | resetOption () const noexcept |
Private Attributes | |
std::string | name_ |
std::string | strWidth_ |
int | width_ |
WireType | wt_ |
ResetOption | rst_ |
BinaryLiteral | literal_ |
Sync signal/sync reg.
Definition at line 51 of file HDLRegister.hh.
|
inline |
|
inline |
Definition at line 57 of file HDLRegister.hh.
References HDLGenerator::Auto.
|
inline |
Definition at line 61 of file HDLRegister.hh.
References HDLGenerator::Auto.
|
inline |
Definition at line 100 of file HDLRegister.hh.
References StringTools::indent(), name(), strWidth_, HDLGenerator::Vector, HDLGenerator::Verilog, HDLGenerator::VHDL, width_, and wt_.
|
inline |
|
inline |
Definition at line 75 of file HDLRegister.hh.
References HDLGenerator::LHSValue::hdl(), StringTools::indent(), literal_, name(), HDLGenerator::BinaryLiteral::name(), HDLGenerator::Vector, HDLGenerator::Verilog, HDLGenerator::VHDL, width_, and wt_.
Referenced by HDLGenerator::Synchronous::hdl(), and HDLGenerator::Synchronous::vhdlReset().
|
inlinenoexcept |
Definition at line 131 of file HDLRegister.hh.
References rst_.
Referenced by HDLGenerator::Synchronous::hdl(), and HDLGenerator::Synchronous::vhdlReset().
|
inline |
Definition at line 70 of file HDLRegister.hh.
References literal_.
|
inlinenoexcept |
|
private |
Definition at line 139 of file HDLRegister.hh.
Referenced by reset(), and setResetValue().
|
private |
Definition at line 134 of file HDLRegister.hh.
Referenced by name().
|
private |
Definition at line 138 of file HDLRegister.hh.
Referenced by resetOption().
|
private |
Definition at line 135 of file HDLRegister.hh.
|
private |
Definition at line 136 of file HDLRegister.hh.
|
private |
Definition at line 137 of file HDLRegister.hh.