Skip to content
This repository has been archived by the owner on Dec 30, 2024. It is now read-only.

Commit

Permalink
Keep index as part of signal name
Browse files Browse the repository at this point in the history
  • Loading branch information
oscargus committed Sep 13, 2023
1 parent 4f88eab commit 04f311e
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/vcd/parse/scopes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,10 @@ pub(super) fn parse_var<'a, R: std::io::Read>(
let (word, _) = next_word!(word_reader)?;
match word {
"$end" => break,
other => {
if !other.starts_with("[") {
full_signal_name.push(word.to_string())
}
}
_ => full_signal_name.push(word.to_string())
}
}
let full_signal_name = full_signal_name.join(" ");
let full_signal_name = full_signal_name.join("");

let num_bytes = if num_bits.is_some() {
let bytes_required = SignalEnum::bytes_required(num_bits.unwrap(), &full_signal_name)?;
Expand Down

0 comments on commit 04f311e

Please sign in to comment.