Skip to content

Commit 0ee7695

Browse files
committed
Add testplan for target error detection
Signed-off-by: Maciej Dudek <mdudek@antmicro.com>
1 parent 37f7052 commit 0ee7695

File tree

2 files changed

+55
-0
lines changed

2 files changed

+55
-0
lines changed

verification/testplan/source-maps.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ testplans:
3535
testpoints:
3636
- name: "^(.*)$"
3737
source: "verification/cocotb/top/lib_i3c_top/test_target_reset.py"
38+
- name: 'Target error detection'
39+
testpoints:
40+
- name: "^(.*)$"
41+
source: "verification/cocotb/top/lib_i3c_top/test_err_conds.py"
3842
- name: 'pec'
3943
testpoints:
4044
- name: "^(.*)$"
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{
2+
name: Target error detection
3+
testpoints:
4+
[
5+
{
6+
name: Detect target error condition 0
7+
desc:
8+
'''
9+
Issues I3C transaction with address set to broadcast address with single
10+
bit error.
11+
Checks target FSM transitioned to WaitHDRExitOrIdle.
12+
Either sends HDR exit pattern or waits 60us and checks that target
13+
is back to Idle state.
14+
'''
15+
tests: [
16+
"TE0_HDR_exit",
17+
"TE0_idle_exit",
18+
]
19+
tags: ["top"]
20+
}
21+
{
22+
name: Detect target error condition 1
23+
desc:
24+
'''
25+
Issues I3C CCC transaction with invalid T-bit.
26+
Checks target FSM transitioned to WaitHDRExitOrIdle.
27+
Either sends HDR exit pattern or waits 60us and checks that target
28+
is back to Idle state.
29+
'''
30+
tests: [
31+
"TE1_HDR_exit",
32+
"TE1_idle_exit",
33+
]
34+
tags: ["top"]
35+
}
36+
{
37+
name: Detect target error condition 5
38+
desc:
39+
'''
40+
Issues one of the CCC that is either read-only, or write-only.
41+
Issues target address with incorrect direction bit.
42+
Checks that target NACKed transaction.
43+
'''
44+
tests: [
45+
"TE5_read_on_write",
46+
"TE5_write_on_read",
47+
]
48+
tags: ["top"]
49+
}
50+
]
51+
}

0 commit comments

Comments
 (0)