mirror of
https://github.com/YosysHQ/yosys
synced 2025-12-14 07:36:24 +00:00
Capture error case more correctly
This commit is contained in:
parent
5d5a7ab443
commit
ddcd93024f
1 changed files with 2 additions and 2 deletions
|
|
@ -308,8 +308,8 @@ struct SmtrModule {
|
||||||
output_struct.write_definition(w);
|
output_struct.write_definition(w);
|
||||||
state_struct.write_definition(w);
|
state_struct.write_definition(w);
|
||||||
|
|
||||||
if (input_helper_name) {
|
if (input_helper_name || output_helper_name) {
|
||||||
if (!output_helper_name)
|
if (!output_helper_name || !input_helper_name)
|
||||||
log_error("if keyword helpers are enabled, both input and output helper names are expected");
|
log_error("if keyword helpers are enabled, both input and output helper names are expected");
|
||||||
write_assoc_list_helpers(w);
|
write_assoc_list_helpers(w);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue