Skip to content

Commit 4fc9ccd

Browse files
committed
Update difftest_api.md
1 parent ec2ee80 commit 4fc9ccd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

doc/difftest_api.md

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

55
```verilog
66
// 触发异常
7-
`DIFFTEST_MOD_DECL(ArchEvent) (
7+
module DifftestInstrCommit (
88
input clock, // 时钟
99
input [ 7:0] coreid, // cpu id,单核时固定为0
1010
input [31:0] intrNO, // 中断号
@@ -14,7 +14,7 @@
1414
);
1515
1616
// 提交指令
17-
`DIFFTEST_MOD_DECL(InstrCommit)(
17+
module DifftestArchIntRegState (
1818
input clock,
1919
input [ 7:0] coreid,
2020
input [ 7:0] index,
@@ -30,7 +30,7 @@
3030
);
3131
3232
// Trap事件,用于告知difftest程序执行结束
33-
`DIFFTEST_MOD_DECL(TrapEvent)(
33+
module DifftestTrapEvent (
3434
input clock,
3535
input [ 7:0] coreid,
3636
input valid, // 执行结束
@@ -41,7 +41,7 @@
4141
);
4242
4343
// 提交CSR寄存器
44-
`DIFFTEST_MOD_DECL(CSRState)(
44+
module DifftestCSRState (
4545
input clock,
4646
input [ 7:0] coreid,
4747
input [ 1:0] priviledgeMode,// 特权模式
@@ -65,7 +65,7 @@
6565
);
6666
6767
// 提交通用寄存器
68-
`DIFFTEST_MOD_DECL(ArchIntRegState)(
68+
module DifftestArchFpRegState (
6969
input clock,
7070
input [ 7:0] coreid,
7171
input [63:0] gpr_0,

0 commit comments

Comments
 (0)