Skip to content

Commit

Permalink
diff: multi bit signals
Browse files Browse the repository at this point in the history
  • Loading branch information
ekiwi committed Nov 9, 2023
1 parent 190f2c9 commit 0a539cd
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/diff_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,12 @@ fn diff_signals<R: BufRead>(ref_reader: &mut vcd::Parser<R>, our: &mut Waveform)
let our_value_str = our_value.to_bit_string().unwrap();
assert_eq!(our_value_str, value.to_string());
}
vcd::Command::ChangeVector(_, _) => {}
vcd::Command::ChangeVector(id, value) => {
let signal_ref = vcd_lib_id_to_signal_ref(id);
let our_value = our.get_signal_value_at(signal_ref, time_table_idx as u32);
let our_value_str = our_value.to_bit_string().unwrap();
assert_eq!(our_value_str, value.to_string());
}
vcd::Command::ChangeReal(_, _) => {
todo!("compare real")
}
Expand Down

0 comments on commit 0a539cd

Please sign in to comment.