Fix the modpath delay to ignore bits that are not changing
This commit is contained in:
parent
a682e13d82
commit
a4306dbac1
|
|
@ -645,8 +645,11 @@ void vvp_fun_modpath::recv_vec4(vvp_net_ptr_t port, const vvp_vector4_t&bit,
|
||||||
and schedule an event for each partial change. Hard! */
|
and schedule an event for each partial change. Hard! */
|
||||||
for (unsigned idx = 1 ; idx < bit.size() ; idx += 1) {
|
for (unsigned idx = 1 ; idx < bit.size() ; idx += 1) {
|
||||||
vvp_time64_t tmp = delay_from_edge(cur_vec4_.value(idx),
|
vvp_time64_t tmp = delay_from_edge(cur_vec4_.value(idx),
|
||||||
bit.value(0),
|
bit.value(idx),
|
||||||
out_at);
|
out_at);
|
||||||
|
/* If the current and new bit values match then no delay
|
||||||
|
* is needed for this bit. */
|
||||||
|
if (cur_vec4_.value(idx) == bit.value(idx)) continue;
|
||||||
assert(tmp == use_delay);
|
assert(tmp == use_delay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue