Skip to content

Commit

Permalink
[t1rocket] fix wrong freg hit score board logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Clo91eaf authored and sequencer committed Aug 26, 2024
1 parent fc1ac31 commit 686cccd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t1rocketemu/offline/src/json_events.rs
Original file line number Diff line number Diff line change
Expand Up @@ -267,8 +267,6 @@ impl JsonEventRunner for SpikeRunner {
let idx = reg_write.idx;
let data = reg_write.data;

let se = self.find_freg_se();

if let Some(board_data) = self.frf_board[idx as usize] {
info!(
"[{cycle}] FregWrite: Hit board! idx={idx}, rtl data={data:#x}, board data={board_data:#x}",
Expand All @@ -284,6 +282,8 @@ impl JsonEventRunner for SpikeRunner {
return Ok(());
}

let se = self.find_freg_se();

info!(
"[{cycle}] FregWrite: rtl idx={idx}, data={data:#x}; se idx={}, data={:#x} ({})",
se.rd_idx,
Expand Down

0 comments on commit 686cccd

Please sign in to comment.