From e8804500b012736ce6393182975bcbfc4b5d71a8 Mon Sep 17 00:00:00 2001 From: Stephen Williams Date: Sat, 16 Aug 2008 19:02:09 -0700 Subject: [PATCH] Replace an assert in vvp/arith.cc with a detailed message. ... and an assert. --- vvp/arith.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/vvp/arith.cc b/vvp/arith.cc index 698e06b94..9a2061504 100644 --- a/vvp/arith.cc +++ b/vvp/arith.cc @@ -602,7 +602,11 @@ void vvp_cmp_ne::recv_vec4(vvp_net_ptr_t ptr, const vvp_vector4_t&bit) { dispatch_operand_(ptr, bit); - assert(op_a_.size() == op_b_.size()); + if (op_a_.size() != op_b_.size()) { + cerr << "internal error: vvp_cmp_ne: op_a_=" << op_a_ + << ", op_b_=" << op_b_ << endl; + assert(op_a_.size() == op_b_.size()); + } vvp_vector4_t res (1); res.set_bit(0, BIT4_0);