From: Clifford Wolf Date: Tue, 3 Mar 2015 08:41:41 +0000 (+0100) Subject: Json bugfix X-Git-Tag: yosys-0.6~380 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=adc12ce46e488be2080e7575dac958cb7fc128c1;p=yosys.git Json bugfix --- diff --git a/backends/json/json.cc b/backends/json/json.cc index 889e5b7ec..54bb4357c 100644 --- a/backends/json/json.cc +++ b/backends/json/json.cc @@ -68,7 +68,7 @@ struct JsonWriter string &s = sigids[bit]; if (bit.wire == nullptr) { if (bit == State::S0) s = "\"0\""; - else if (bit == State::S1) s = "\"0\""; + else if (bit == State::S1) s = "\"1\""; else if (bit == State::Sz) s = "\"z\""; else s = "\"x\""; } else