31 static constexpr std::string_view
Type =
"ConstantComponent";
43 return {
"Constant",
"Drives a fixed binary or unknown logic value.",
69 static constexpr std::string_view
Type =
"DummyInputComponent";
76 (void)
outputs[0].forceSetCurrentValue({s}, weak_from_this());
82 return {
"Input",
"Provides a user-toggleable one-bit signal.",
91 static constexpr std::string_view
Type =
"DummyBusInputComponent";
99 (void)
outputs[0].forceSetCurrentValue(value, weak_from_this());
105 return {
"Bus Input",
"Provides an editable multi-bit bus value.",
114 static constexpr std::string_view
Type =
"DummyOutputComponent";
122 return {
"Output",
"Displays the current state of a one-bit signal.",
131 static constexpr std::string_view
Type =
"DummyBusOutputComponent";
141 return {
"Bus Output",
"Displays the current value of a multi-bit bus.",
void serializeYosys(SILICON::yosys::SerializationContext &context) const override
Lower this component into native Yosys netlist cells.
BoundaryIoComponent(std::vector< Bus > inputs, std::vector< Bus > outputs, std::string name)
void setPortId(uint64_t id)
std::vector< Bus > outputs
Output buses produced by this component.
std::vector< Bus > inputs
Input buses connected to this component.
static constexpr std::string_view Type
ComponentMetadata metadata() const override
Gets catalog metadata for this component type.
void serializeYosys(SILICON::yosys::SerializationContext &context) const override
Lower this component into native Yosys netlist cells.
std::string_view typeName() const override
Gets the component type name.
BusValue setValue(const BusValue &value) const
void simulate(SILICON::simulation::Simulator &sim) override
Executes the component's logic.
static constexpr std::string_view Type
void simulate(SILICON::simulation::Simulator &) override
Executes the component's logic.
ComponentMetadata metadata() const override
Gets catalog metadata for this component type.
std::string_view typeName() const override
Gets the component type name.
DummyBusOutputComponent()
static constexpr std::string_view Type
void simulate(SILICON::simulation::Simulator &) override
Executes the component's logic.
ComponentMetadata metadata() const override
Gets catalog metadata for this component type.
std::string_view typeName() const override
Gets the component type name.
Executes event-driven simulation of a Circuit.
Mutable module-building interface passed to component serializers.
std::shared_ptr< Wire > Wire_ptr
std::vector< State > BusValue