Skip to content

Commit 432bdaf

Browse files
authored
Verify icache moudles (#167)
* Changed by Gui-Yue * Add essential api for missunit agent * Add tests for existing api * Build initial env for missunit * Missunit line coverage reach to 96.7% * changed by Gui-Yue * complete tests for all missunit agent. * * Add missunit functional coverage and related tests. * complish missunit moudle ut_test * add doc for missunit * * Update missunit ut_test functional coverage * Update doc * Create test for waylookup * Accomplish ut_test for icache/waylookup * Complete tests for waylookup * * Try to trigger two assert error designed. * Add initial verification report for missunit. * * merge commits * add ut_test for waylookup missunit mainpipe iprefetchpipe * enable mem-direct for waylookup, missunit and mainpipe. * Add verify document * * modify for waylookup * replace print with toffee.info * fix some issues in waylookup. * * add reverse mark * fix coverage issue * * fix reverse mark issue * make line coverage to 100% * * Add test Coverage Booster to improve line coverage to 100%
1 parent 5c937d4 commit 432bdaf

30 files changed

Lines changed: 23339 additions & 139 deletions

scripts/build_ut_frontend_icache_mainpipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def build(cfg):
88
internal_signals_path = "scripts/icache_related/icache_mainpipe_internals.yaml"
99

1010
# export ICacheMainPipe.sv
11-
return picker_export(TARGET_NAME, cfg, internal_file=internal_signals_path)
11+
return picker_export(TARGET_NAME, cfg, access_mode=1, internal_file=internal_signals_path)
1212

1313

1414
def line_coverage_files(cfg):

scripts/build_ut_frontend_icache_missunit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ def build(cfg):
77
# additional internal signal files
88
internal_signals_path = "scripts/icache_related/icache_missunit_internals.yaml"
99

10-
return picker_export(TARGET_NAME, cfg, internal_file=internal_signals_path)
10+
return picker_export(TARGET_NAME, cfg, access_mode=1, internal_file=internal_signals_path)
1111

1212

1313
def line_coverage_files(cfg):

scripts/build_ut_frontend_icache_waylookup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ def build(cfg):
88
internal_signals_path = "scripts/icache_related/icache_waylookup_internals.yaml"
99

1010
# export WayLookup.sv
11-
return picker_export(TARGET_NAME, cfg, internal_file=internal_signals_path)
11+
return picker_export(TARGET_NAME, cfg, access_mode=1, internal_file=internal_signals_path)
1212

1313

1414
def line_coverage_files(cfg):
Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,76 @@
11
ICacheMissUnit:
22
- "wire _prefetchMSHRs_9_io_req_ready"
33
- "wire _prefetchMSHRs_9_io_acquire_valid"
4+
- "wire [41:0] _prefetchMSHRs_9_io_resp_bits_blkPaddr"
5+
- "wire [7:0] _prefetchMSHRs_9_io_resp_bits_vSetIdx"
46
- "wire _prefetchMSHRs_8_io_req_ready"
57
- "wire _prefetchMSHRs_8_io_acquire_valid"
8+
- "wire [41:0] _prefetchMSHRs_8_io_resp_bits_blkPaddr"
9+
- "wire [7:0] _prefetchMSHRs_8_io_resp_bits_vSetIdx"
610
- "wire _prefetchMSHRs_7_io_req_ready"
711
- "wire _prefetchMSHRs_7_io_acquire_valid"
12+
- "wire [41:0] _prefetchMSHRs_7_io_resp_bits_blkPaddr"
13+
- "wire [7:0] _prefetchMSHRs_7_io_resp_bits_vSetIdx"
814
- "wire _prefetchMSHRs_6_io_req_ready"
915
- "wire _prefetchMSHRs_6_io_acquire_valid"
16+
- "wire [41:0] _prefetchMSHRs_6_io_resp_bits_blkPaddr"
17+
- "wire [7:0] _prefetchMSHRs_6_io_resp_bits_vSetIdx"
1018
- "wire _prefetchMSHRs_5_io_req_ready"
1119
- "wire _prefetchMSHRs_5_io_acquire_valid"
20+
- "wire [41:0] _prefetchMSHRs_5_io_resp_bits_blkPaddr"
21+
- "wire [7:0] _prefetchMSHRs_5_io_resp_bits_vSetIdx"
1222
- "wire _prefetchMSHRs_4_io_req_ready"
1323
- "wire _prefetchMSHRs_4_io_acquire_valid"
24+
- "wire [41:0] _prefetchMSHRs_4_io_resp_bits_blkPaddr"
25+
- "wire [7:0] _prefetchMSHRs_4_io_resp_bits_vSetIdx"
1426
- "wire _prefetchMSHRs_3_io_req_ready"
1527
- "wire _prefetchMSHRs_3_io_acquire_valid"
28+
- "wire [41:0] _prefetchMSHRs_3_io_resp_bits_blkPaddr"
29+
- "wire [7:0] _prefetchMSHRs_3_io_resp_bits_vSetIdx"
1630
- "wire _prefetchMSHRs_2_io_req_ready"
1731
- "wire _prefetchMSHRs_2_io_acquire_valid"
32+
- "wire [41:0] _prefetchMSHRs_2_io_resp_bits_blkPaddr"
33+
- "wire [7:0] _prefetchMSHRs_2_io_resp_bits_vSetIdx"
1834
- "wire _prefetchMSHRs_1_io_req_ready"
1935
- "wire _prefetchMSHRs_1_io_acquire_valid"
36+
- "wire [41:0] _prefetchMSHRs_1_io_resp_bits_blkPaddr"
37+
- "wire [7:0] _prefetchMSHRs_1_io_resp_bits_vSetIdx"
2038
- "wire _prefetchMSHRs_0_io_req_ready"
2139
- "wire _prefetchMSHRs_0_io_acquire_valid"
40+
- "wire [41:0] _prefetchMSHRs_0_io_resp_bits_blkPaddr"
41+
- "wire [7:0] _prefetchMSHRs_0_io_resp_bits_vSetIdx"
2242

2343
- "wire _fetchMSHRs_3_io_req_ready"
2444
- "wire _fetchMSHRs_3_io_acquire_valid"
45+
- "wire [41:0] _fetchMSHRs_3_io_resp_bits_blkPaddr"
46+
- "wire [7:0] _fetchMSHRs_3_io_resp_bits_vSetIdx"
2547
- "wire _fetchMSHRs_2_io_req_ready"
2648
- "wire _fetchMSHRs_2_io_acquire_valid"
49+
- "wire [41:0] _fetchMSHRs_2_io_resp_bits_blkPaddr"
50+
- "wire [7:0] _fetchMSHRs_2_io_resp_bits_vSetIdx"
2751
- "wire _fetchMSHRs_1_io_req_ready"
2852
- "wire _fetchMSHRs_1_io_acquire_valid"
53+
- "wire [41:0] _fetchMSHRs_1_io_resp_bits_blkPaddr"
54+
- "wire [7:0] _fetchMSHRs_1_io_resp_bits_vSetIdx"
2955
- "wire _fetchMSHRs_0_io_req_ready"
30-
- "wire _fetchMSHRs_0_io_acquire_valid"
56+
- "wire _fetchMSHRs_0_io_acquire_valid"
57+
- "wire [41:0] _fetchMSHRs_0_io_resp_bits_blkPaddr"
58+
- "wire [7:0] _fetchMSHRs_0_io_resp_bits_vSetIdx"
59+
60+
- "wire _prefetchDemux_io_chosen"
61+
- "wire _prefetchDemux_io_in_ready"
62+
- "wire _prefetchDemux_io_in_valid_T_1"
63+
- "wire _fetchDemux_io_in_ready"
64+
- "wire _fetchDemux_io_in_valid_T_1"
65+
66+
- "wire prefetchHit"
67+
- "wire fetchHit"
68+
69+
- "wire last_fire"
70+
- "reg last_fire_r"
71+
72+
- "wire _priorityFIFO_io_enq_ready"
73+
- "wire _priorityFIFO_io_enq_valid_T_probe"
74+
- "wire _priorityFIFO_io_deq_valid"
75+
- "wire _priorityFIFO_io_deq_ready_T"
76+
- "wire _priorityFIFO_io_deq_bits"

ut_frontend/icache/iprefetchpipe/IPrefetchPipe模块验证报告.md

Lines changed: 462 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)