diff options
author | Clifford Wolf <clifford@clifford.at> | 2018-09-14 12:36:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-14 12:36:13 +0200 |
commit | 592a82c0ad8beb6de023aa2a131aab6472f949e8 (patch) | |
tree | 1f65cca24d5309f79b19e399210d5545d2010e3c /passes | |
parent | 1936d4408e6a359644681ec0f1e0f62c368458b7 (diff) | |
parent | 75c1f8d241d67ebb6db56516b4f9fdb0a312aa0b (diff) | |
download | yosys-592a82c0ad8beb6de023aa2a131aab6472f949e8.tar.gz yosys-592a82c0ad8beb6de023aa2a131aab6472f949e8.tar.bz2 yosys-592a82c0ad8beb6de023aa2a131aab6472f949e8.zip |
Merge pull request #625 from aman-goel/master
Minor revision to -expose in setundef pass
Diffstat (limited to 'passes')
-rw-r--r-- | passes/cmds/setundef.cc | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/passes/cmds/setundef.cc b/passes/cmds/setundef.cc index 62d940ce6..a1dfa9b5c 100644 --- a/passes/cmds/setundef.cc +++ b/passes/cmds/setundef.cc @@ -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) |