Skip to content

Commit

Permalink
Refactor Dut eval function for better performance
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf committed May 9, 2024
1 parent 3c364c8 commit 1e38d05
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/dut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,17 +53,6 @@ impl Dut {
self.top.reset_toggle();
}

fn eval(&mut self) {
self.clock_toggle();
self.top.eval();
self.top.trace_at(Duration::from_nanos(self.ticks * 2));

self.clock_toggle();
self.top.eval();
self.top.trace_at(Duration::from_nanos(self.ticks * 2 + 1));
self.ticks += 1;
}

/// drive the instruction SRAM interface
pub fn step(&mut self, inst: u32, data: u64) -> anyhow::Result<(SramRequest, SramRequest, DebugInfo)> {
match self.ticks {
Expand Down

0 comments on commit 1e38d05

Please sign in to comment.