add support for mismatching bitdwidths

This commit is contained in:
Yehowshua Immanuel 2022-07-30 19:58:54 -04:00
parent eb379e4ce6
commit 0052baf196
5 changed files with 245 additions and 228 deletions

View file

@ -1,4 +1,4 @@
use std::fs::File;
use std::{fs::File};
use clap::Parser;
pub mod test;
@ -7,6 +7,8 @@ use test::*;
pub mod vcd;
use vcd::parse_vcd;
use std::mem::size_of_val;
#[derive(Parser)]
struct Cli {
/// The path to the file to read
@ -26,6 +28,10 @@ fn main() -> std::io::Result<()> {
println!("Elapsed: {:.2?}", elapsed);
vcd.print_longest_signal();
dbg!(size_of_val(&*vcd.timeline));
// unsafe {
// let sz = size_of_val(&*vcd.timeline);
// }
// println!("printing signal tree");
// vcd.print_scopes();