fixed simx lsu-unit bug

This commit is contained in:
Blaise Tine 2024-07-23 11:29:56 -07:00
parent 60f7786e17
commit eb92e0bdbe
2 changed files with 4 additions and 1 deletions

View file

@ -178,7 +178,7 @@ void LsuUnit::tick() {
}
// build memory request
LsuReq lsu_req(NUM_ALU_LANES);
LsuReq lsu_req(NUM_LSU_LANES);
lsu_req.write = is_write;
{
auto trace_data = std::dynamic_pointer_cast<LsuTraceData>(trace->data);

View file

@ -84,6 +84,8 @@ void MemCoalescer::tick() {
return;
auto& in_req = ReqIn.front();
assert(in_req.mask.size() == input_size_);
assert(!in_req.mask.none());
// ensure we can allocate a response tag
if (pending_rd_reqs_.full()) {
@ -120,6 +122,7 @@ void MemCoalescer::tick() {
out_mask.set(o);
out_addrs.at(o) = seed_addr;
break;
}
}