Go to the documentation of this file.
33 #include <boost/format.hpp>
43 #include <unordered_map>
44 #include <unordered_set>
82 stream <<
"(others => '0');\n";
96 throw std::runtime_error(__PRETTY_FUNCTION__);
106 stream <<
"std_logic_vector("
107 << std::to_string(
width_ - 1)
110 stream <<
"std_logic_vector(" <<
strWidth_
111 <<
"-1 downto 0);\n";
114 stream <<
"std_logic;\n";
118 if (width_ < 0 || width_ > 1) {
120 stream <<
"[" << std::to_string(
width_ - 1) <<
":0] ";
125 stream <<
name() <<
";\n";
127 throw std::runtime_error(__PRETTY_FUNCTION__);
ResetOption resetOption() const noexcept
Register & setResetValue(BinaryLiteral &&rhs)
Register(std::string name, int width=1, ResetOption rst=ResetOption::Mandatory)
void declare(std::ostream &stream, Language lang, int ident)
Register(std::string name, std::string width, ResetOption rst=ResetOption::Mandatory)
void hdl(std::ostream &stream, Language lang, int level)
Register(std::string name, int width, WireType wt, ResetOption rst=ResetOption::Mandatory)
void reset(std::ostream &stream, Language lang, int ident)