Skip to content

Commit

Permalink
A few more adjustments to the hack
Browse files Browse the repository at this point in the history
  • Loading branch information
EclecticGriffin committed Oct 22, 2024
1 parent 274bf07 commit 2554b6b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions interp/src/flatten/primitives/stateful/memories.rs
Original file line number Diff line number Diff line change
Expand Up @@ -660,9 +660,11 @@ impl RaceDetectionPrimitive for CombMem {
.check_write(thread_clock, clock_map)
.map_err(|e| e.add_cell_info(self.global_idx))?;
}
} else if addr != 0 {
// HACK: if the addr is 0 and the thread cannot be determined then
// this is probably not a real read
} else if addr != 0
|| port_map[self.write_en()].as_bool().unwrap_or_default()
{
// HACK: if the addr is 0, we're reading, and the thread
// can't be determined then we assume the read is not real
panic!("unable to determine thread for comb mem");
}
}
Expand Down

0 comments on commit 2554b6b

Please sign in to comment.