From 822c7b0341064c3d0d9b142dc6ce61c66797159a Mon Sep 17 00:00:00 2001 From: Lofty Date: Wed, 25 Jan 2023 09:26:58 +0000 Subject: muxcover: do not add decode muxes with x inputs --- passes/techmap/muxcover.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'passes/techmap') diff --git a/passes/techmap/muxcover.cc b/passes/techmap/muxcover.cc index a90d81985..2656f30ce 100644 --- a/passes/techmap/muxcover.cc +++ b/passes/techmap/muxcover.cc @@ -179,7 +179,7 @@ struct MuxcoverWorker int prepare_decode_mux(SigBit &A, SigBit B, SigBit sel, SigBit bit) { - if (A == B || sel == State::Sx) + if (A == B || A == State::Sx || B == State::Sx || sel == State::Sx) return 0; tuple key(A, B, sel); @@ -197,9 +197,6 @@ struct MuxcoverWorker if (std::get<2>(entry)) return 0; - if (A == State::Sx || B == State::Sx) - return 0; - return cost_dmux / GetSize(std::get<1>(entry)); } -- cgit v1.2.3