Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenXiangShan
XiangShan
提交
453f2124
X
XiangShan
项目概览
OpenXiangShan
/
XiangShan
9 个月 前同步成功
通知
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,体验更适合开发者的 AI 搜索 >>
提交
453f2124
编写于
9月 01, 2023
作者:
梁
梁森 Liang Sen
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update makefile
上级
d602ca4d
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
4 addition
and
26 deletion
+4
-26
Makefile
Makefile
+4
-26
未找到文件。
Makefile
浏览文件 @
453f2124
...
@@ -32,7 +32,6 @@ ABS_WORK_DIR := $(shell pwd)
...
@@ -32,7 +32,6 @@ ABS_WORK_DIR := $(shell pwd)
RUN_BIN_DIR
?=
$(ABS_WORK_DIR)
/ready-to-run
RUN_BIN_DIR
?=
$(ABS_WORK_DIR)
/ready-to-run
RUN_BIN
?=
coremark-2-iteration
RUN_BIN
?=
coremark-2-iteration
CONSIDER_FSDB
?=
1
CONSIDER_FSDB
?=
1
MFC
?=
0
ifdef
FLASH
ifdef
FLASH
RUN_OPTS
:=
+flash
=
$(RUN_BIN_DIR)
/
$(RUN_BIN)
.bin
RUN_OPTS
:=
+flash
=
$(RUN_BIN_DIR)
/
$(RUN_BIN)
.bin
...
@@ -62,13 +61,8 @@ endif
...
@@ -62,13 +61,8 @@ endif
RELEASE_ARGS
=
--disable-all
--remove-assert
--fpga-platform
RELEASE_ARGS
=
--disable-all
--remove-assert
--fpga-platform
DEBUG_ARGS
=
--enable-difftest
DEBUG_ARGS
=
--enable-difftest
ifeq
($(MFC),1)
RELEASE_ARGS
+=
--emission-options
disableRegisterRandomization
-E
verilog
RELEASE_ARGS
+=
-X
none
-E
chirrtl
--output-file
$(TOP)
.chirrtl.fir
DEBUG_ARGS
+=
--emission-options
disableRegisterRandomization
-E
verilog
DEBUG_ARGS
+=
-X
none
-E
chirrtl
--output-file
$(SIM_TOP)
.chirrtl.fir
else
RELEASE_ARGS
+=
--emission-options
disableRegisterRandomization
-E
verilog
--output-file
$(TOP)
.v
DEBUG_ARGS
+=
--emission-options
disableRegisterRandomization
-E
verilog
--output-file
$(SIM_TOP)
.v
endif
ifeq
($(RELEASE),1)
ifeq
($(RELEASE),1)
override
SIM_ARGS
+=
$(RELEASE_ARGS)
override
SIM_ARGS
+=
$(RELEASE_ARGS)
...
@@ -85,13 +79,7 @@ $(TOP_V): $(SCALA_FILE)
...
@@ -85,13 +79,7 @@ $(TOP_V): $(SCALA_FILE)
mkdir
-p
$
(
@D
)
mkdir
-p
$
(
@D
)
time
-o
$
(
@D
)
/time.log mill
-i
XiangShan.runMain
$(FPGATOP)
-td
$
(
@D
)
\
time
-o
$
(
@D
)
/time.log mill
-i
XiangShan.runMain
$(FPGATOP)
-td
$
(
@D
)
\
--config
$(CONFIG)
--full-stacktrace
--num-cores
$(NUM_CORES)
\
--config
$(CONFIG)
--full-stacktrace
--num-cores
$(NUM_CORES)
\
$(RELEASE_ARGS)
$(RELEASE_ARGS)
--output-file
$(TOP_V)
ifeq
($(MFC),1)
time
-a
-o
$
(
@D
)
/time.log firtool
--disable-all-randomization
--disable-annotation-unknown
\
--annotation-file
=
$(BUILD_DIR)
/
$(TOP)
.anno.json
--format
=
fir
\
--lowering-options
=
noAlwaysComb,disallowExpressionInliningInPorts,explicitBitcast
\
--verilog
--dedup
-o
$(TOP_V)
$(BUILD_DIR)
/
$(TOP)
.chirrtl.fir
endif
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_bits_/m_\1_\2_/g'
\
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_bits_/m_\1_\2_/g'
\
-e
's/\(dma\)_0_\(aw\|ar\|w\|r\|b\)_bits_/s_\1_\2_/g'
$@
>
$(BUILD_DIR)
/tmp.v
-e
's/\(dma\)_0_\(aw\|ar\|w\|r\|b\)_bits_/s_\1_\2_/g'
$@
>
$(BUILD_DIR)
/tmp.v
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_/m_\1_\2_/g'
\
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_/m_\1_\2_/g'
\
...
@@ -120,17 +108,7 @@ $(SIM_TOP_V): $(SCALA_FILE) $(TEST_FILE)
...
@@ -120,17 +108,7 @@ $(SIM_TOP_V): $(SCALA_FILE) $(TEST_FILE)
@
date
-R
|
tee
-a
$
(
@D
)
/time.log
@
date
-R
|
tee
-a
$
(
@D
)
/time.log
time
-o
$
(
@D
)
/time.log mill
-i
XiangShan.test.runMain
$(SIMTOP)
-td
$
(
@D
)
\
time
-o
$
(
@D
)
/time.log mill
-i
XiangShan.test.runMain
$(SIMTOP)
-td
$
(
@D
)
\
--config
$(CONFIG)
--full-stacktrace
--num-cores
$(NUM_CORES)
\
--config
$(CONFIG)
--full-stacktrace
--num-cores
$(NUM_CORES)
\
$(SIM_ARGS)
$(SIM_ARGS)
--output-file
$(SIM_TOP_V)
ifeq
($(MFC),1)
time
-a
-o
$
(
@D
)
/time.log firtool
--disable-all-randomization
--disable-annotation-unknown
\
--annotation-file
=
$(BUILD_DIR)
/
$(SIM_TOP)
.anno.json
--format
=
fir
\
--lowering-options
=
noAlwaysComb,disallowExpressionInliningInPorts,explicitBitcast
\
--verilog
--dedup
-o
$(SIM_TOP_V)
$(BUILD_DIR)
/
$(SIM_TOP)
.chirrtl.fir
sed
'/\/\/ ----- 8< ----- .*----- 8< -----/,$d'
$(SIM_TOP_V)
>
res.v
rm
$(SIM_TOP_V)
mv
res.v
$(SIM_TOP_V)
endif
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_bits_/m_\1_\2_/g'
\
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_bits_/m_\1_\2_/g'
\
-e
's/\(dma\)_0_\(aw\|ar\|w\|r\|b\)_bits_/s_\1_\2_/g'
$@
>
$(BUILD_DIR)
/tmp.v
-e
's/\(dma\)_0_\(aw\|ar\|w\|r\|b\)_bits_/s_\1_\2_/g'
$@
>
$(BUILD_DIR)
/tmp.v
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_/m_\1_\2_/g'
\
sed
-e
's/\(peripheral\|memory\)_0_\(aw\|ar\|w\|r\|b\)_/m_\1_\2_/g'
\
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录