From: Miodrag Milanovic Date: Fri, 28 Jan 2022 12:53:27 +0000 (+0100) Subject: detect edges even when x X-Git-Tag: yosys-0.14~2^2~20 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=72acce0c82a14b615710acc186e209068b6b9fea;p=yosys.git detect edges even when x --- diff --git a/kernel/fstdata.cc b/kernel/fstdata.cc index 9170da45e..53603ef49 100644 --- a/kernel/fstdata.cc +++ b/kernel/fstdata.cc @@ -114,9 +114,9 @@ void FstData::reconstruct_edges_callback(uint64_t pnt_time, fstHandle pnt_facidx std::string val = std::string((const char *)pnt_value); std::string prev = last_data[pnt_facidx]; if (pnt_time>=start_time) { - if (prev=="0" && val=="1") + if (prev!="1" && val=="1") edges.push_back(pnt_time); - if (prev=="1" && val=="0") + if (prev!="0" && val=="0") edges.push_back(pnt_time); } last_data[pnt_facidx] = val;