diff options
author | Eddie Hung <eddie@fpgeh.com> | 2019-06-15 22:41:42 -0700 |
---|---|---|
committer | Eddie Hung <eddie@fpgeh.com> | 2019-06-15 22:41:42 -0700 |
commit | 3d1185b835e16cc0613aa7a31e810dd6da69599f (patch) | |
tree | b1578bd471303fc19d90af1916f12d79f985f5bc | |
parent | d969a9060eb337007e9246301fff906db5a8283e (diff) | |
download | yosys-3d1185b835e16cc0613aa7a31e810dd6da69599f.tar.gz yosys-3d1185b835e16cc0613aa7a31e810dd6da69599f.tar.bz2 yosys-3d1185b835e16cc0613aa7a31e810dd6da69599f.zip |
Read init from outputs
-rw-r--r-- | frontends/aiger/aigerparse.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/frontends/aiger/aigerparse.cc b/frontends/aiger/aigerparse.cc index d2657c9da..5a6db8481 100644 --- a/frontends/aiger/aigerparse.cc +++ b/frontends/aiger/aigerparse.cc @@ -927,6 +927,10 @@ void AigerReader::post_process() } } log_debug(" -> %s\n", log_id(wire)); + int init; + mf >> init; + if (init < 2) + wire->attributes["\\init"] = init; } else if (type == "box") { RTLIL::Cell* cell = module->cell(stringf("$__box%d__", variable)); |