Replace an assert in vvp/arith.cc with a detailed message.

... and an assert.
This commit is contained in:
Stephen Williams 2008-08-16 19:02:09 -07:00
parent 66bed241f1
commit e8804500b0
1 changed files with 5 additions and 1 deletions

View File

@ -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);