Skip to content

feat: 增加 DarkRISCV custom-0 DOT4 指令 - #29

Merged
Liophis merged 8 commits into
masterfrom
feat/darkriscv-dot4
Jul 13, 2026
Merged

Liophis merged 8 commits into
masterfrom
feat/darkriscv-dot4

Conversation

@NoNormalCreeper

Copy link
Copy Markdown
Owner

变更

  • 为 DarkRISCV 增加 dot4.s8 custom-0 指令,完成四路 signed INT8 点积
  • 增加 firmware ABI、scalar/custom benchmark 和专项仿真
  • 增加 ISE 导出目标、PPA 对照基线与中文设计文档

验证

  • DOT4 suite:4/4,通过;仿真 cycles speedup 为 26.96x
  • firmware workflow / output isolation:通过
  • RV32I safe:通过
  • DarkRISCV RV32MI:10/10,通过
  • smoke:14/15;唯一失败 tb_mode_check 在基线 origin/master=35968e6 上同样复现

待人工验证

  • ISE Map/PAR/Timing 与资源增量
  • 真实开发板 UART benchmark

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NoNormalCreeper! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

@NoNormalCreeper

Copy link
Copy Markdown
Owner Author

@Liophis

根据这里面的流程上板测试一下?

汇总 issue #29 的 Map、Timing、UART benchmark 与层级检查结果,并明确资源增量仍缺 baseline 对照。
@Liophis

Liophis commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

上板人工验证已完成。DOT4 UART benchmark PASS,Map/PAR/timing 通过,50 MHz slack 为正。
g_darkriscv 层级名未直接检索到,可能被 ISE flatten/rename;但 CPU_IMPL=1、u_dot4 出现在 XST report、DSP48A1=4、UART benchmark PASS,可作为 DarkRISCV DOT4 路径工作的证据。

@NoNormalCreeper
NoNormalCreeper marked this pull request as ready for review July 13, 2026 14:09

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @NoNormalCreeper! 👋

Your private repo does not have access to Sourcery.

Please upgrade to continue using Sourcery ✨

Comment thread README.md
```bash
make dot4-bench
make ise-export ISE_TARGET=minisoc_dot4_dark
make dot4-load PORT=COM8

@Liophis Liophis Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test1

Comment thread rtl/accel/dot4_int8.v
{{2{product2[15]}}, product2} +
{{2{product3[15]}}, product3};

// 结果只对产生它的 instruction PC 有效。相邻 custom 指令即使 req 连续为高,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

test2

@Liophis
Liophis merged commit b490491 into master Jul 13, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants