Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenXiangShan
XiangShan
提交
4a99cefe
X
XiangShan
项目概览
OpenXiangShan
/
XiangShan
11 个月 前同步成功
通知
1183
Star
3914
Fork
526
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
X
XiangShan
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4a99cefe
编写于
11月 06, 2020
作者:
J
jinyue110
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'icache-Non-Blocking' into icache-l1plus
上级
e3bbb124
043203e7
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
6 addition
and
6 deletion
+6
-6
debug/Makefile
debug/Makefile
+1
-2
src/main/scala/xiangshan/cache/icache.scala
src/main/scala/xiangshan/cache/icache.scala
+3
-2
src/main/scala/xiangshan/cache/icacheMissQueue.scala
src/main/scala/xiangshan/cache/icacheMissQueue.scala
+2
-2
未找到文件。
debug/Makefile
浏览文件 @
4a99cefe
...
...
@@ -18,8 +18,7 @@ cache:
#2>&1 | tee > loader.log
cpu
:
$(MAKE)
-C
$(AM_HOME)
/tests/cputest
$(ARCH)
ALL
=
dummy
$(EMU_ARGS)
run
#2>&1 | tee > dummy.log
$(MAKE)
-C
$(AM_HOME)
/tests/cputest
$(ARCH)
ALL
=
hello-str
$(EMU_ARGS)
run 2>&1 |
tee
>
hello.log
# ------------------------------------------------------------------
# run different test sets
...
...
src/main/scala/xiangshan/cache/icache.scala
浏览文件 @
4a99cefe
...
...
@@ -361,14 +361,15 @@ class ICache extends ICacheModule
val
icacheMissQueue
=
Module
(
new
IcacheMissQueue
)
val
blocking
=
RegInit
(
false
.
B
)
val
isICacheResp
=
icacheMissQueue
.
io
.
resp
.
valid
&&
icacheMissQueue
.
io
.
resp
.
bits
.
clientID
===
cacheID
.
U
(
2.
W
)
icacheMissQueue
.
io
.
req
.
valid
:=
s3_miss
&&
(
io
.
flush
===
0.
U
)
&&
!
blocking
//TODO: specificate flush condition
icacheMissQueue
.
io
.
req
.
valid
:=
s3_miss
&&
!
io
.
flush
(
1
)
&&
!
blocking
//TODO: specificate flush condition
icacheMissQueue
.
io
.
req
.
bits
.
apply
(
missAddr
=
groupPC
(
s3_tlb_resp
.
paddr
),
missIdx
=
s3_idx
,
missWaymask
=
s3_wayMask
,
source
=
cacheID
.
U
(
2.
W
))
icacheMissQueue
.
io
.
resp
.
ready
:=
io
.
resp
.
ready
icacheMissQueue
.
io
.
flush
:=
io
.
flush
(
1
)
when
(
icacheMissQueue
.
io
.
req
.
fire
()){
blocking
:=
true
.
B
}
.
elsewhen
(
icacheMissQueue
.
io
.
resp
.
fire
()
&&
isICacheResp
){
blocking
:=
false
.
B
}
.
elsewhen
(
blocking
&&
((
icacheMissQueue
.
io
.
resp
.
fire
()
&&
isICacheResp
)
||
io
.
flush
(
1
))
){
blocking
:=
false
.
B
}
XSDebug
(
blocking
&&
io
.
flush
(
1
),
"check for icache non-blocking"
)
//cache flush register
val
icacheFlush
=
WireInit
(
false
.
B
)
val
cacheflushed
=
RegInit
(
false
.
B
)
...
...
src/main/scala/xiangshan/cache/icacheMissQueue.scala
浏览文件 @
4a99cefe
...
...
@@ -102,7 +102,6 @@ class IcacheMissEntry extends ICacheMissQueueModule
io
.
req
.
ready
:=
state
===
s_idle
io
.
mem_acquire
.
valid
:=
state
===
s_memReadReq
io
.
resp
.
valid
:=
state
===
s_wait_resp
//flush register
val
needFlush
=
RegInit
(
false
.
B
)
...
...
@@ -162,7 +161,8 @@ class IcacheMissEntry extends ICacheMissQueueModule
io
.
mem_acquire
.
bits
.
addr
:=
req
.
addr
io
.
mem_acquire
.
bits
.
id
:=
io
.
id
//resp to icache
io
.
resp
.
valid
:=
(
state
===
s_wait_resp
)
&&
!
needFlush
XSDebug
(
"[ICache MSHR %d] (req)valid:%d ready:%d req.addr:%x waymask:%b || Register: req:%x \n"
,
io
.
id
.
asUInt
,
io
.
req
.
valid
,
io
.
req
.
ready
,
io
.
req
.
bits
.
addr
,
io
.
req
.
bits
.
waymask
,
req
.
asUInt
)
XSDebug
(
"[ICache MSHR %d] (Info)state:%d needFlush:%d\n"
,
io
.
id
.
asUInt
,
state
,
needFlush
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录