Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions src/mem/hbm_ctrl.cc
Original file line number Diff line number Diff line change
Expand Up @@ -222,14 +222,16 @@ HBMCtrl::recvTimingReq(PacketPtr pkt)
}
prevArrival = curTick();

// What type of media does this packet access?
// Determine which pseudo channel this packet belongs to
// by checking the actual address ranges of each interface
bool is_pc0;

// TODO: make the interleaving bit across pseudo channels a parameter
if (bits(pkt->getAddr(), 6) == 0) {
if (pc0Int->getAddrRange().contains(pkt->getAddr())) {
is_pc0 = true;
} else {
} else if (pc1Int->getAddrRange().contains(pkt->getAddr())) {
is_pc0 = false;
} else {
panic("Can't handle address range for packet %s\n", pkt->print());
}

// Find out how many memory packets a pkt translates to
Expand Down