Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenXiangShan
XiangShan
提交
0d341b7e
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,发现更多精彩内容 >>
提交
0d341b7e
编写于
8月 30, 2020
作者:
A
Allen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
LoadUnit: when we can completely forward data,
no need to send to dcache.
上级
2edce343
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
1 deletion
+6
-1
src/main/scala/xiangshan/mem/LoadUnit.scala
src/main/scala/xiangshan/mem/LoadUnit.scala
+6
-1
未找到文件。
src/main/scala/xiangshan/mem/LoadUnit.scala
浏览文件 @
0d341b7e
...
...
@@ -149,6 +149,8 @@ class LoadUnit extends XSModule {
val
l4_dcache
=
RegNext
(
l3_dcache
,
false
.
B
)
val
l4_bundle
=
RegNext
(
l3_bundle
)
val
fullForward
=
Wire
(
Bool
())
assert
(!(
io
.
dcache
.
resp
.
ready
&&
!
io
.
dcache
.
resp
.
valid
),
"DCache response got lost"
)
io
.
dcache
.
resp
.
ready
:=
l4_valid
&&
l4_dcache
when
(
io
.
dcache
.
resp
.
fire
())
{
...
...
@@ -158,7 +160,9 @@ class LoadUnit extends XSModule {
l4_out
.
bits
.
uop
:=
io
.
dcache
.
resp
.
bits
.
meta
.
uop
l4_out
.
bits
.
mmio
:=
io
.
dcache
.
resp
.
bits
.
meta
.
mmio
l4_out
.
bits
.
mask
:=
io
.
dcache
.
resp
.
bits
.
meta
.
mask
l4_out
.
bits
.
miss
:=
io
.
dcache
.
resp
.
bits
.
miss
// when we can get the data completely from forward
// we no longer need to access dcache
l4_out
.
bits
.
miss
:=
Mux
(
fullForward
,
false
.
B
,
io
.
dcache
.
resp
.
bits
.
miss
)
XSDebug
(
io
.
dcache
.
resp
.
fire
(),
p
"DcacheResp(l4): data:0x${Hexadecimal(io.dcache.resp.bits.data)} paddr:0x${Hexadecimal(io.dcache.resp.bits.meta.paddr)} pc:0x${Hexadecimal(io.dcache.resp.bits.meta.uop.cf.pc)} roqIdx:${io.dcache.resp.bits.meta.uop.roqIdx} lsroqIdx:${io.dcache.resp.bits.meta.uop.lsroqIdx} miss:${io.dcache.resp.bits.miss}\n"
)
}
.
otherwise
{
l4_out
.
bits
:=
l4_bundle
...
...
@@ -193,6 +197,7 @@ class LoadUnit extends XSModule {
})
l4_out
.
bits
.
forwardMask
:=
forwardMask
l4_out
.
bits
.
forwardData
:=
forwardVec
fullForward
:=
(~
l4_out
.
bits
.
forwardMask
.
asUInt
&
l4_out
.
bits
.
mask
)
===
0.
U
PipelineConnect
(
l4_out
,
l5_in
,
io
.
ldout
.
fire
()
||
(
l5_in
.
bits
.
miss
||
l5_in
.
bits
.
mmio
)
&&
l5_in
.
valid
,
false
.
B
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录