From 65e95530bfd1f9f403fad0ab523456f422a5d016 Mon Sep 17 00:00:00 2001 From: Joren Dumoulin Date: Mon, 30 Sep 2024 10:52:09 +0200 Subject: [PATCH] change file path names and readme --- README.md | 5 +++-- src/main.rs | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 407ea76..198d739 100644 --- a/README.md +++ b/README.md @@ -5,5 +5,6 @@ Generate csv files from a clocked vcd trace Current limitations: - Captures all signals in a fixed scope related to `gemmx` - Assumes clock is `TOP.clk_i` -- requires file to be called `src/sim.vcd` -- outputs to a fixed `result.csv` +- requires file to be called `sim.vcd` +- outputs to a fixed `sim.csv` +- Does not support vector values, these are all set to 0, only scalar values are supported for now. diff --git a/src/main.rs b/src/main.rs index 97928f7..65a3ecb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -65,7 +65,7 @@ fn parse_vcd_to_data(vcd_file: &str) -> Result<(), Box> { } // Prepare CSV writer - let mut wtr = csv::Writer::from_path("result.csv")?; + let mut wtr = csv::Writer::from_path("sim.csv")?; // Write headers (variable names) let mut headers: Vec = Vec::new(); @@ -94,7 +94,7 @@ fn parse_vcd_to_data(vcd_file: &str) -> Result<(), Box> { } fn main() { - if let Err(e) = parse_vcd_to_data("src/sim.vcd") { + if let Err(e) = parse_vcd_to_data("sim.vcd") { eprintln!("Error parsing VCD file: {}", e); } }