3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-12-18 18:28:35 +00:00
This commit is contained in:
Gus Smith 2025-12-02 11:17:21 -08:00
parent 38ee4fc730
commit dd65dd610d

View file

@ -266,8 +266,7 @@ struct SmtrModule {
void write_assoc_list_helpers(SExprWriter &w) void write_assoc_list_helpers(SExprWriter &w)
{ {
if (!output_helper_name || !input_helper_name) log_assert(output_helper_name && input_helper_name);
log_error("if using keyword helpers, both input and output helper names are expected");
// Input struct keyword-based constructor. // Input struct keyword-based constructor.
w.push(); w.push();
@ -292,7 +291,7 @@ struct SmtrModule {
w.pop(); w.pop();
} }
w.pop(); w.pop();
// Output struct keyword-based destructor. // Output struct keyword-based destructuring
w.push(); w.push();
w.open(list("define")); w.open(list("define"));
const auto outputs_name = "outputs"; const auto outputs_name = "outputs";