Skip to content

Commit

Permalink
ghw: don't check for "real" change
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Mar 7, 2024
1 parent 93f897f commit 20e0449
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

[package]
name = "wellen"
version = "0.8.8"
version = "0.8.9"
edition = "2021"
authors = ["Kevin Laeufer <[email protected]>"]
description = "Fast VCD and FST library for waveform viewers written in Rust."
Expand Down
13 changes: 5 additions & 8 deletions src/ghw/signals.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,14 +307,11 @@ impl VecBuffer {
fn update_value(&mut self, vector_id: GhwVecId, signal_id: GhwSignalId, value: u8) {
let info = &self.info[vector_id.index()];
let bit = info.max_index - signal_id.index() as u32;
let is_a_real_change = self.get_value(info, bit) != value;
if is_a_real_change {
Self::mark_bit_changed(&mut self.bit_change, info, bit);
Self::set_value(&mut self.data, info, bit, value);
// add signal to change list if it has not already been added
if !self.has_signal_changed(vector_id) {
self.mark_signal_changed(vector_id);
}
Self::mark_bit_changed(&mut self.bit_change, info, bit);
Self::set_value(&mut self.data, info, bit, value);
// add signal to change list if it has not already been added
if !self.has_signal_changed(vector_id) {
self.mark_signal_changed(vector_id);
}
}

Expand Down

0 comments on commit 20e0449

Please sign in to comment.