Skip to content

Commit

Permalink
save all
Browse files Browse the repository at this point in the history
  • Loading branch information
rahulk29 committed Oct 9, 2024
1 parent 5d15c33 commit 6ea3dae
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/blocks/sram/testbench/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ fn generate_waveforms(params: &TbParams) -> TbWaveforms {
let mut clk = Waveform::with_initial_value(0f64);
let mut ce = Waveform::with_initial_value(0f64);
let mut we = Waveform::with_initial_value(0f64);
let mut reset_b = Waveform::with_initial_value(params.vdd);
let mut reset_b = Waveform::with_initial_value(0f64);

let period = params.clk_period;
let vdd = params.vdd;
Expand All @@ -154,7 +154,7 @@ fn generate_waveforms(params: &TbParams) -> TbWaveforms {
// Set chip enable low
ce.push_low(t_data, vdd, tf);
// Set reset high
reset_b.push_low(t_data, vdd, tf);
reset_b.push_low(t_data + period / 2., vdd, tf);
}
Op::None => {
// Set write enable low
Expand Down Expand Up @@ -576,11 +576,11 @@ impl Testbench for SramTestbench {
.unwrap(),
);

let signals = (0..self.params.sram.data_width)
.map(|i| format!("dout[{i}]"))
.collect();
ctx.save(Save::Signals(signals));
// ctx.save(Save::All);
// let signals = (0..self.params.sram.data_width)
// .map(|i| format!("dout[{i}]"))
// .collect();
// ctx.save(Save::Signals(signals));
ctx.save(Save::All);

let vdd = SiValue::with_precision(self.params.vdd, SiPrefix::Nano);

Expand Down

0 comments on commit 6ea3dae

Please sign in to comment.