Skip to content

Commit 95567b0

Browse files
committed
Update difftest_api.md
1 parent 0ed9670 commit 95567b0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

doc/difftest_api.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,17 @@
44

55
```verilog
66
// 触发异常
7-
module DifftestInstrCommit (
7+
module DifftestArchEvent (
88
input clock, // 时钟
99
input [ 7:0] coreid, // cpu id,单核时固定为0
10-
input [31:0] intrNO, // 中断号
11-
input [31:0] cause, // 异常号
10+
input [31:0] intrNO, // 中断号,非0时产生中断。产生中断的时钟周期中,DifftestInstrCommit提交的valid需为0
11+
input [31:0] cause, // 异常号,ecall时不需要考虑
1212
input [63:0] exceptionPC, // 产生异常时的PC
1313
input [31:0] exceptionInst // 产生异常时的指令
1414
);
1515
1616
// 提交指令
17-
module DifftestArchIntRegState (
17+
module DifftestInstrCommit (
1818
input clock,
1919
input [ 7:0] coreid,
2020
input [ 7:0] index,

0 commit comments

Comments
 (0)