From abaab602bc0f446f5f959eeeb1bc0de0434db0f9 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Thu, 24 Apr 2008 11:05:11 -0700 Subject: [PATCH] Fix >= compare not detecting right X bits. Oops, never properly checking that the right value has XZ bits. --- vvp/vvp_net.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vvp/vvp_net.cc b/vvp/vvp_net.cc index 90dfa0d7c..6f1438e88 100644 --- a/vvp/vvp_net.cc +++ b/vvp/vvp_net.cc @@ -2726,7 +2726,7 @@ vvp_bit4_t compare_gtge(const vvp_vector4_t&lef, const vvp_vector4_t&rig, return BIT4_X; // Check for X/Z in the right operand - if (lef.has_xz()) + if (rig.has_xz()) return BIT4_X; for (unsigned idx = lef.size() ; idx > rig.size() ; idx -= 1) {