mirror of https://github.com/YosysHQ/yosys.git
Merge pull request #625 from aman-goel/master
Minor revision to -expose in setundef pass
This commit is contained in:
commit
592a82c0ad
|
@ -162,7 +162,6 @@ struct SetundefPass : public Pass {
|
|||
continue;
|
||||
}
|
||||
if (args[argidx] == "-expose") {
|
||||
got_value = true;
|
||||
expose_mode = true;
|
||||
continue;
|
||||
}
|
||||
|
@ -212,6 +211,13 @@ struct SetundefPass : public Pass {
|
|||
}
|
||||
extra_args(args, argidx, design);
|
||||
|
||||
if (!got_value && expose_mode) {
|
||||
log("Using default as -undef with -expose.\n");
|
||||
got_value = true;
|
||||
worker.next_bit_mode = MODE_UNDEF;
|
||||
worker.next_bit_state = 0;
|
||||
}
|
||||
|
||||
if (expose_mode && !undriven_mode)
|
||||
log_cmd_error("Option -expose must be used with option -undriven.\n");
|
||||
if (!got_value)
|
||||
|
|
Loading…
Reference in New Issue