Go to the documentation of this file.
48 virtual ~Port() =
default;
63 stream <<
"std_logic_vector("
64 << std::to_string(
width_) <<
"-1 downto 0)";
66 stream <<
"std_logic";
72 stream <<
"output reg ";
77 stream <<
"[" << std::to_string(
width_ - 1) <<
":0] ";
81 throw std::runtime_error(__PRETTY_FUNCTION__);
InPort(std::string name, std::string parametricWidth, WireType wireType=WireType::Auto)
WireType wireType() const
OutPort(std::string name, int width=1, WireType wireType=WireType::Auto)
Port(std::string name, Direction dir, int width=1, WireType wireType=WireType::Auto)
InPort(std::string name, int width=1, WireType wireType=WireType::Auto)
OutPort(std::string name, std::string parametricWidth, WireType wireType=WireType::Auto)
Port(std::string name, Direction dir, std::string parametricWidth, WireType wireType=WireType::Auto)
void declare(std::ostream &stream, Language lang, int level=0)
std::string parametricWidth_