提交 571624d1 编写于 作者: G GouLingrui

Merge remote-tracking branch 'origin/dev-frontend-bpu' into dev-frontend

......@@ -85,7 +85,7 @@ class BTB extends BasePredictor with BTBParams{
// BTB read requests
val baseBank = btbAddr.getBank(io.pc.bits)
val realMask = circularShiftRight(io.inMask, BtbBanks, baseBank)
val realMask = circularShiftLeft(io.inMask, BtbBanks, baseBank)
val realMaskLatch = RegEnable(realMask, io.pc.valid)
......
......@@ -76,7 +76,7 @@ class MicroBTB extends BasePredictor
val read_valid = io.pc.valid
val read_req_tag = getTag(io.pc.bits)
val read_req_basebank = getBank(io.pc.bits)
val read_mask = circularShiftRight(io.inMask, PredictWidth, read_req_basebank)
val read_mask = circularShiftLeft(io.inMask, PredictWidth, read_req_basebank)
XSDebug(read_valid,"uBTB read req: pc:0x%x, tag:%x basebank:%d\n",io.pc.bits,read_req_tag,read_req_basebank)
......
#include "common.h"
#define RAMSIZE (128 * 1024 * 1024)
#define RAMSIZE (256 * 1024 * 1024)
static uint64_t ram[RAMSIZE / sizeof(uint64_t)];
static long img_size = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册