Skip to content

Commit

Permalink
add optional rtl arg
Browse files Browse the repository at this point in the history
  • Loading branch information
miceforrat committed Jan 14, 2025
1 parent a86b85e commit 8118dee
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ dut:
@python3 run.py --config $(CFG) --build $(DUTS) $(args)

rtl:
@python3 run.py --config $(CFG) --download-rtl
@python3 run.py --config $(CFG) --download-rtl $(args)

doc:
cd documents && hugo server --bind 0.0.0.0
6 changes: 6 additions & 0 deletions documents/content/zh-cn/docs/01_verfiy_env.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@ pip3 install -r requirements.txt # 安装python依赖(例如 toffee)
make rtl # 该命下载最新的rtl代码,并解压至rtl目录,并创建软连接
```

可以用以下命令指定下载的rtl版本:

```bash
make rtl args="rtl.version=\'openxiangshan-kmh-fad7803d-24120901\'"
```

所有RTL下载包请在[UnityChipXiangShanRTLs](https://github.com/XS-MLVP/UnityChipXiangShanRTLs)中查看。

RTL压缩包的命名规范为:`名称-微架构-Git标记-日期编号.tar.gz`,例如`openxiangshan-kmh-97e37a2237-24092701.tar.gz`。在使用时,仓库代码会过滤掉git标记和后缀,例如通过 cfg.rtl.version 访问到的版本号为:`openxiangshan-kmh-24092701`。压缩包内的目录结构为:
Expand Down
1 change: 0 additions & 1 deletion scripts/backend_ctrlblock_decode/rtl_files.f
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
../../rtl/rtl/DecodeUnitComp.sv
../../rtl/rtl/DecodeUnit.sv
../../rtl/rtl/FPToVecDecoder.sv
../../rtl/rtl/indexedLSUopTable_1.sv
../../rtl/rtl/indexedLSUopTable_2.sv
../../rtl/rtl/indexedLSUopTable_3.sv
Expand Down

0 comments on commit 8118dee

Please sign in to comment.