mirror of https://github.com/YosysHQ/yosys.git
Capture error case more correctly
This commit is contained in:
parent
5d5a7ab443
commit
ddcd93024f
|
|
@ -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…
Reference in New Issue