sane import and export behaviors
This commit is contained in:
parent
d343b6f5ff
commit
9f18b166a5
12 changed files with 62 additions and 62 deletions
|
@ -5,9 +5,7 @@
|
|||
use clap::Parser;
|
||||
use std::fs::File;
|
||||
|
||||
use fastwave_backend::*;
|
||||
|
||||
use num::{BigUint};
|
||||
use fastwave_backend::parse_vcd;
|
||||
|
||||
#[derive(Parser)]
|
||||
struct Cli {
|
||||
|
@ -23,7 +21,7 @@ fn main() -> std::io::Result<()> {
|
|||
|
||||
let now = Instant::now();
|
||||
let file = File::open(&args.path)?;
|
||||
let vcd = parse_vcd(file).unwrap();
|
||||
parse_vcd(file).unwrap();
|
||||
let elapsed = now.elapsed();
|
||||
|
||||
println!("Parsed VCD file {} : {:.2?}", &args.path.as_os_str().to_str().unwrap(), elapsed);
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
// the root of the folder containing the sources for this program.
|
||||
use std::fs::File;
|
||||
|
||||
use fastwave_backend::*;
|
||||
use fastwave_backend::{ScopeIdx, VCD, parse_vcd};
|
||||
|
||||
fn indented_print(indent : u8, name : &String) {
|
||||
for _ in 0..indent {print!(" |");}
|
||||
|
|
Reference in a new issue