AveryWong03 commited on
Commit
dd6e397
·
verified ·
1 Parent(s): 3251686

Add files using upload-large-folder tool

Browse files
This view is limited to 50 files because it contains too many changes.   See raw diff
Files changed (50) hide show
  1. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/buggy_waveform.fst +0 -0
  2. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/diff.patch +11 -0
  3. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/metadata.json +17 -0
  4. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/sim_log.txt +123 -0
  5. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/buggy_waveform.fst +0 -0
  6. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/diff.patch +11 -0
  7. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/metadata.json +18 -0
  8. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/sim_log.txt +123 -0
  9. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/buggy_waveform.fst +0 -0
  10. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/diff.patch +16 -0
  11. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/metadata.json +16 -0
  12. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/sim_log.txt +123 -0
  13. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/buggy_waveform.fst +0 -0
  14. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/diff.patch +11 -0
  15. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/metadata.json +18 -0
  16. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/sim_log.txt +123 -0
  17. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/buggy_waveform.fst +0 -0
  18. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/diff.patch +11 -0
  19. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/metadata.json +16 -0
  20. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/sim_log.txt +122 -0
  21. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/buggy_waveform.fst +0 -0
  22. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/diff.patch +11 -0
  23. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/metadata.json +5 -0
  24. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/sim_log.txt +123 -0
  25. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/golden_waveform.fst +0 -0
  26. Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/sim.sh +5 -0
  27. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/buggy_waveform.fst +0 -0
  28. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/diff.patch +11 -0
  29. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/metadata.json +16 -0
  30. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/sim_log.txt +51 -0
  31. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/buggy_waveform.fst +0 -0
  32. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/diff.patch +11 -0
  33. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/metadata.json +17 -0
  34. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/sim_log.txt +55 -0
  35. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/buggy_waveform.fst +0 -0
  36. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/diff.patch +21 -0
  37. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/metadata.json +16 -0
  38. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/sim_log.txt +68 -0
  39. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/buggy_waveform.fst +0 -0
  40. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/diff.patch +11 -0
  41. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/metadata.json +16 -0
  42. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/sim_log.txt +68 -0
  43. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/golden_waveform.fst +0 -0
  44. Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/sim.sh +5 -0
  45. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/buggy_waveform.fst +0 -0
  46. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/diff.patch +11 -0
  47. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/metadata.json +16 -0
  48. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/sim_log.txt +77 -0
  49. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/inverted_condition/buggy_waveform.fst +0 -0
  50. Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/inverted_condition/diff.patch +11 -0
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -294,7 +294,7 @@
4
+ end
5
+ end
6
+ FIND_VALUE: begin
7
+ - if(data_rd_buf == data_in) begin
8
+ + if(data_rd_buf != data_in) begin
9
+ // update curr pos to invalid
10
+ wr_req <= 1'b1;
11
+ target_idx <= cur_ptr;
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "inverted_condition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Doubly_Linked_List/src/doubly_linked_list.sv"
6
+ ],
7
+ "bug_description": "Inverted 'data_rd_buf == data_in' condition in FIND_VALUE state \u2014 delete-by-value now deletes the first node that does NOT match the target value instead of the matching one",
8
+ "signals_affected": [
9
+ "data_rd_buf",
10
+ "data_in"
11
+ ],
12
+ "simulation_status": "sim_ok",
13
+ "problem_statement": "The delete-by-value operation is not functioning correctly. When attempting to remove a specific node from the list by matching its data field, the operation fails to complete (op_done remains low at t=132000). Additionally, the list state becomes corrupted immediately after a delete-by-value attempt: the empty flag incorrectly asserts to 1, while head and tail both point to address 1000, and length shows 0000, indicating the list thinks it's empty when it shouldn't be. On subsequent operations, the wrong node is deleted from the list\u2014inspection of the waveform shows data_out reads the wrong value (00000000 at t=828000) and pre_node_addr/next_node_addr point to incorrect addresses (1000 at t=828000 and t=876000 respectively). This suggests the comparison logic for matching the target data value is inverted, causing nodes that do NOT match to be selected for deletion instead of the correct matching node. The list structure remains corrupted throughout, with the full flag never asserting as expected and the fault flag remaining inactive even as the list becomes logically invalid.",
14
+ "diff_summary": "4 changed lines",
15
+ "buggy_waveform": "buggy_waveform.fst",
16
+ "golden_waveform": "golden_waveform.fst"
17
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/inverted_condition/sim_log.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2413000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2413000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2413000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2413000 OP_Delete_At_Index 0 index
117
+ 2485000 Data 3 at Front is Deleted
118
+ 2485000 linked_list_exp = 4 6 0 3 5 3
119
+ 2485000 linked_list_addr = 6
120
+ --- STDERR ---
121
+ /tmp/sim4_simsh_fkh0egxi/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
122
+ /tmp/sim4_simsh_fkh0egxi/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
123
+ /tmp/sim4_simsh_fkh0egxi/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -371,7 +371,7 @@
4
+ data_out <= {DATA_WIDTH{1'b0}};
5
+ next_node_addr <= ADDR_NULL;
6
+ pre_node_addr <= ADDR_NULL;
7
+ - end else if (op_is_read & (next_state == EXECUTE)) begin
8
+ + end else begin
9
+ data_out <= node_data[target_idx];
10
+ next_node_addr <= (addr_in == tail) ? ADDR_NULL : node_next_node_addr[target_idx];
11
+ pre_node_addr <= (addr_in == head) ? ADDR_NULL : node_pre_node_addr[target_idx];
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/metadata.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "missing_enable",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Doubly_Linked_List/src/doubly_linked_list.sv"
6
+ ],
7
+ "bug_description": "Removed 'op_is_read & (next_state == EXECUTE)' enable condition from the data_out sequential block \u2014 data_out, next_node_addr, and pre_node_addr now update on every clock edge instead of only during a read operation reaching the EXECUTE state",
8
+ "signals_affected": [
9
+ "data_out",
10
+ "next_node_addr",
11
+ "pre_node_addr"
12
+ ],
13
+ "simulation_status": "sim_ok",
14
+ "problem_statement": "During verification of the read operation, we observed that output registers are becoming corrupted with unexpected values at t=108000. The signals `data_out`, `next_node_addr`, and `pre_node_addr` all display unknown/garbage values when they should be maintaining the previously transferred data. This corruption occurs during normal operation when no read transaction should be occurring, suggesting these registers are being unintentionally modified outside their intended update windows. The issue prevents correct data retrieval and appears to affect all three related output signals simultaneously, indicating a shared control issue rather than isolated signal corruption.",
15
+ "diff_summary": "4 changed lines",
16
+ "buggy_waveform": "buggy_waveform.fst",
17
+ "golden_waveform": "golden_waveform.fst"
18
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_enable/sim_log.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2389000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2389000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2389000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2389000 OP_Delete_At_Index 0 index
117
+ 2461000 Data 3 at Front is Deleted
118
+ 2461000 linked_list_exp = 4 6 0 3 5 3
119
+ 2461000 linked_list_addr = 6
120
+ --- STDERR ---
121
+ /tmp/sim4_simsh_kilm2m7j/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
122
+ /tmp/sim4_simsh_kilm2m7j/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
123
+ /tmp/sim4_simsh_kilm2m7j/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/diff.patch ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -365,10 +365,11 @@
4
+ pre_addr_rd_buf <= node_pre_node_addr[target_idx];
5
+ end
6
+ end
7
+ -
8
+ +
9
+ + initial data_out = {DATA_WIDTH{1'bx}};
10
+ +
11
+ always @ (posedge clk, posedge rst) begin
12
+ if (rst) begin
13
+ - data_out <= {DATA_WIDTH{1'b0}};
14
+ next_node_addr <= ADDR_NULL;
15
+ pre_node_addr <= ADDR_NULL;
16
+ end else if (op_is_read & (next_state == EXECUTE)) begin
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "missing_reset",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Doubly_Linked_List/src/doubly_linked_list.sv"
6
+ ],
7
+ "bug_description": "Removed synchronous reset for 'data_out' register; kept resets for next_node_addr and pre_node_addr intact. Added initial block setting data_out to unknown (x) so the missing reset is observable in simulation.",
8
+ "signals_affected": [
9
+ "data_out"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "Signal `data_out` fails to initialize to a known state at t=0, remaining undefined (xxxxxxxx) throughout the initial reset phase. While other module registers reset as expected, `data_out` appears to lack proper reset handling. This inconsistency could cause unpredictable behavior when the module transitions from reset, as downstream logic may encounter an unknown initial value instead of the expected cleared state.",
13
+ "diff_summary": "7 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/missing_reset/sim_log.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2389000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2389000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2389000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2389000 OP_Delete_At_Index 0 index
117
+ 2461000 Data 3 at Front is Deleted
118
+ 2461000 linked_list_exp = 4 6 0 3 5 3
119
+ 2461000 linked_list_addr = 6
120
+ --- STDERR ---
121
+ /tmp/sim4_simsh_8rbaetq3/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
122
+ /tmp/sim4_simsh_8rbaetq3/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
123
+ /tmp/sim4_simsh_8rbaetq3/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -240,7 +240,7 @@
4
+ // update pre_node_addr of next post to pre pos
5
+ pre_node_addr_idx <= next_addr_rd_buf;
6
+ pre_node_addr_in <= pre_addr_rd_buf;
7
+ - next_state <= EXECUTE;
8
+ + next_state <= FAULT;
9
+ end else if (op_is_insert_at_addr) begin
10
+ // insert new pos
11
+ wr_req <= 1'b1;
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/metadata.json ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "state_transition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Doubly_Linked_List/src/doubly_linked_list.sv"
6
+ ],
7
+ "bug_description": "Changed FIND_ADDR\u2192EXECUTE transition to FIND_ADDR\u2192FAULT for op_is_delete_by_addr \u2014 when a valid node is found by address, the FSM incorrectly transitions to FAULT instead of EXECUTE, causing delete_by_addr to always report fault and leaving length/head/tail unmodified",
8
+ "signals_affected": [
9
+ "state",
10
+ "fault",
11
+ "op_done"
12
+ ],
13
+ "simulation_status": "sim_ok",
14
+ "problem_statement": "When executing a delete_by_addr operation to remove a linked-list node at a specific address, the operation fails to complete successfully even when the target node is found. The op_done signal remains low throughout the operation, and the list metadata (length, head, tail) remain unchanged at t=132000, indicating the deletion was never applied. The operation eventually enters a fault state (fault asserts at t=780000), incorrectly flagging this as a fault condition despite the node being successfully located and traversed (as evidenced by pre_node_addr and next_node_addr updates). This prevents delete_by_addr from functioning when a valid address is provided, completely breaking the address-based deletion feature of the linked-list controller.",
15
+ "diff_summary": "4 changed lines",
16
+ "buggy_waveform": "buggy_waveform.fst",
17
+ "golden_waveform": "golden_waveform.fst"
18
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/state_transition/sim_log.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2389000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2389000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2389000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2389000 OP_Delete_At_Index 0 index
117
+ 2461000 Data 3 at Front is Deleted
118
+ 2461000 linked_list_exp = 4 6 0 3 5 3
119
+ 2461000 linked_list_addr = 6
120
+ --- STDERR ---
121
+ /tmp/sim4_simsh_fwygiove/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
122
+ /tmp/sim4_simsh_fwygiove/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
123
+ /tmp/sim4_simsh_fwygiove/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -102,7 +102,7 @@
4
+ assign op_is_insert_at_index = op[2:0] == 3'd5 & op_start;
5
+ assign op_is_insert_at_addr = op[2:0] == 3'd1 & op_start;
6
+ assign op_is_delete_by_value = op[2:0] == 3'd2 & op_start;
7
+ - assign op_is_delete_by_index = op[2:0] == 3'd7 & op_start;
8
+ + assign op_is_delete_by_index = op[2:0] == 2'd7 & op_start;
9
+ assign op_is_delete_by_addr = op[2:0] == 3'd3 & op_start;
10
+
11
+ always @ (posedge clk or posedge rst) begin
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "width_bit_cutoff",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Doubly_Linked_List/src/doubly_linked_list.sv"
6
+ ],
7
+ "bug_description": "Changed '3'd7' to '2'd7' in the op_is_delete_by_index assignment \u2014 2'd7 truncates to decimal 3 (7 mod 4 = 3), so Delete_Index (op=7) is never recognized; instead op=3 (which matches op_is_delete_by_addr) is incorrectly double-matched",
8
+ "signals_affected": [
9
+ "op_is_delete_by_index"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "During verification of delete operations on index values, the design fails to properly handle Delete_Index commands. When executing a delete-by-index operation (op=7), the op_done signal fails to assert at t=132000, and multiple state signals (head, tail, length, empty) retain incorrect values instead of updating. Simultaneously, the fault signal incorrectly asserts at t=780000 and remains stuck, while data_out at t=828000 shows all zeros rather than the expected node data. The traversal signals pre_node_addr and next_node_addr also diverge at t=828000 and t=876000 respectively, both stuck at 1000 instead of progressing through the linked list. Additionally, the full flag incorrectly reads 0 at t=732000 when the structure should be full. These symptoms suggest that delete-by-index operations are not being recognized or executed at all, causing the entire operation pipeline to stall and state management to fail.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/width_bit_cutoff/sim_log.txt ADDED
@@ -0,0 +1,122 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2389000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2389000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2389000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2389000 OP_Delete_At_Index 0 index
117
+ ERROR: /tmp/sim4_simsh_hleiqk8b/source/Doubly_Linked_List/tb/sv/tb.sv:353: 2437000 fault flag is asser
118
+ --- STDERR ---
119
+ /tmp/sim4_simsh_hleiqk8b/source/Doubly_Linked_List/src/doubly_linked_list.sv:105: warning: Numeric constant truncated to 2 bits.
120
+ /tmp/sim4_simsh_hleiqk8b/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
121
+ /tmp/sim4_simsh_hleiqk8b/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
122
+ /tmp/sim4_simsh_hleiqk8b/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Doubly_Linked_List/src/doubly_linked_list.sv
2
+ +++ b/Doubly_Linked_List/src/doubly_linked_list.sv
3
+ @@ -81,7 +81,7 @@
4
+ reg valid_wr;
5
+ reg [ADDR_WIDTH-1:0] next_addr_rd_buf;
6
+ reg [ADDR_WIDTH-1:0] pre_addr_rd_buf;
7
+ - reg [DATA_WIDTH-1:0] data_rd_buf;
8
+ + reg [DATA_WIDTH-2:0] data_rd_buf;
9
+ reg [ADDR_WIDTH-1:0] target_idx;
10
+ reg [ADDR_WIDTH-1:0] next_node_addr_idx;
11
+ reg [ADDR_WIDTH-1:0] next_node_addr_in;
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/metadata.json ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "wrong_bitwidth",
3
+ "simulation_status": "waveform_identical",
4
+ "signals_compared": 10
5
+ }
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/bugs/wrong_bitwidth/sim_log.txt ADDED
@@ -0,0 +1,123 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Doubly_Linked_List/tb/sv/dump.fst opened for output.
2
+
3
+ ======================================
4
+ Direct Index Op Test
5
+ ======================================
6
+ 100000 OP_Insert_At_Index 0 index, 3 value
7
+ 133000 Next Addr = 0
8
+ 133000 Data Written to Front : 3
9
+ 133000 linked_list_exp = 3
10
+ 133000 linked_list_addr = 0
11
+ 133000 OP_Insert_At_Index 0 index, 0 value
12
+ 181000 Addr 0 found at Index 0
13
+ 181000 Next Addr = 1
14
+ 181000 Data Written to Front : 0
15
+ 181000 linked_list_exp = 0 3
16
+ 181000 linked_list_addr = 1 0
17
+ 281000 OP_Insert_At_Index 4 index, 5 value
18
+ 325000 Addr 0 found at Index 1
19
+ 325000 Addr 1 found at Index 0
20
+ 325000 Next Addr = 2
21
+ 325000 Data Written to Back : 5
22
+ 325000 linked_list_exp = 0 3 5
23
+ 325000 linked_list_addr = 1 0 2
24
+ 325000 OP_Insert_At_Index 0 index, 6 value
25
+ 373000 Addr 0 found at Index 1
26
+ 373000 Addr 1 found at Index 0
27
+ 373000 Addr 2 found at Index 2
28
+ 373000 Next Addr = 3
29
+ 373000 Data Written to Front : 6
30
+ 373000 linked_list_exp = 6 0 3 5
31
+ 373000 linked_list_addr = 3 1 0 2
32
+ 373000 OP_Insert_At_Index 0 index, 7 value
33
+ 421000 Addr 0 found at Index 2
34
+ 421000 Addr 1 found at Index 1
35
+ 421000 Addr 2 found at Index 3
36
+ 421000 Addr 3 found at Index 0
37
+ 421000 Next Addr = 4
38
+ 421000 Data Written to Front : 7
39
+ 421000 linked_list_exp = 7 6 0 3 5
40
+ 421000 linked_list_addr = 4 3 1 0 2
41
+ 421000 OP_Insert_At_Index 1 index, 3 value
42
+ 541000 Addr 0 found at Index 3
43
+ 541000 Addr 1 found at Index 2
44
+ 541000 Addr 2 found at Index 4
45
+ 541000 Addr 3 found at Index 1
46
+ 541000 Addr 4 found at Index 0
47
+ 541000 Next Addr = 5
48
+ 541000 Data Written to Index 1 : 3
49
+ 541000 linked_list_exp = 7 3 6 0 3 5
50
+ 541000 linked_list_addr = 4 5 3 1 0 2
51
+ 541000 OP_Insert_At_Index 2 index, 4 value
52
+ 685000 Addr 0 found at Index 4
53
+ 685000 Addr 1 found at Index 3
54
+ 685000 Addr 2 found at Index 5
55
+ 685000 Addr 3 found at Index 2
56
+ 685000 Addr 4 found at Index 0
57
+ 685000 Addr 5 found at Index 1
58
+ 685000 Next Addr = 6
59
+ 685000 Data Written to Index 2 : 4
60
+ 685000 linked_list_exp = 7 3 4 6 0 3 5
61
+ 685000 linked_list_addr = 4 5 6 3 1 0 2
62
+ 685000 OP_Insert_At_Index 8 index, 3 value
63
+ 733000 Addr 0 found at Index 5
64
+ 733000 Addr 1 found at Index 4
65
+ 733000 Addr 2 found at Index 6
66
+ 733000 Addr 3 found at Index 3
67
+ 733000 Addr 4 found at Index 0
68
+ 733000 Addr 5 found at Index 1
69
+ 733000 Addr 6 found at Index 2
70
+ 733000 Next Addr = 7
71
+ 733000 Data Written to Back : 3
72
+ 733000 Queue is full and full flag is asserted correctly
73
+ 733000 linked_list_exp = 7 3 4 6 0 3 5 3
74
+ 733000 linked_list_addr = 4 5 6 3 1 0 2 7
75
+ 733000 OP_Insert_At_Index 8 index, 4 value
76
+ 781000 Fault flag is asserted correctly
77
+ 781000 Queue is full and full flag is asserted correctly
78
+ 781000 linked_list_exp = 7 3 4 6 0 3 5 3
79
+ 781000 linked_list_addr = 4 5 6 3 1 0 2 7
80
+ 781000 OP_Read from back 8 times
81
+ 829000 Data read: 3
82
+ 877000 Data read: 5
83
+ 925000 Data read: 3
84
+ 973000 Data read: 0
85
+ 1021000 Data read: 6
86
+ 1069000 Data read: 4
87
+ 1117000 Data read: 3
88
+ 1165000 Data read: 7
89
+ 1165000 linked_list_exp = 7 3 4 6 0 3 5 3
90
+ 1165000 linked_list_addr = 4 5 6 3 1 0 2 7
91
+ 1165000 OP_Insert_At_Index 8 index, 1 value
92
+ 1213000 Fault flag is asserted correctly
93
+ 1213000 Queue is full and full flag is asserted correctly
94
+ 1213000 linked_list_exp = 7 3 4 6 0 3 5 3
95
+ 1213000 linked_list_addr = 4 5 6 3 1 0 2 7
96
+ 1213000 OP_Insert_At_Index 0 index, 3 value
97
+ 1261000 Fault flag is asserted correctly
98
+ 1261000 Queue is full and full flag is asserted correctly
99
+ 1261000 linked_list_exp = 7 3 4 6 0 3 5 3
100
+ 1261000 linked_list_addr = 4 5 6 3 1 0 2 7
101
+ 1461000 OP_Read from front 8 times
102
+ 1501000 Data read: 7
103
+ 1549000 Data read: 3
104
+ 1597000 Data read: 4
105
+ 1645000 Data read: 6
106
+ 1693000 Data read: 0
107
+ 1741000 Data read: 3
108
+ 1789000 Data read: 5
109
+ 1837000 Data read: 3
110
+ 1837000 linked_list_exp = 7 3 4 6 0 3 5 3
111
+ 1837000 linked_list_addr = 4 5 6 3 1 0 2 7
112
+ 2337000 OP_Delete_Value 7 value
113
+ 2389000 Data 7 at Index 0 is Deleted_by_Value
114
+ 2389000 linked_list_exp = 3 4 6 0 3 5 3
115
+ 2389000 linked_list_addr = 5 6 3 1 0 2 7
116
+ 2389000 OP_Delete_At_Index 0 index
117
+ 2461000 Data 3 at Front is Deleted
118
+ 2461000 linked_list_exp = 4 6 0 3 5 3
119
+ 2461000 linked_list_addr = 6
120
+ --- STDERR ---
121
+ /tmp/sim4_simsh_aa7k8vo0/source/Doubly_Linked_List/tb/sv/tb.sv:98: warning: task definition for "list_print_contents" has an empty port declaration list!
122
+ /tmp/sim4_simsh_aa7k8vo0/source/Doubly_Linked_List/tb/sv/tb.sv:615: warning: task definition for "direct_index_op_test" has an empty port declaration list!
123
+ /tmp/sim4_simsh_aa7k8vo0/source/Doubly_Linked_List/tb/sv/tb.sv:660: warning: task definition for "direct_addr_op_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/golden_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/doubly_linked_list__doubly_linked_list/sim.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_doubly_linked_list "$SRCDIR/Doubly_Linked_List/src/doubly_linked_list.sv" "$SRCDIR/Doubly_Linked_List/tb/sv/tb.sv"
5
+ vvp /tmp/sim_doubly_linked_list -fst +VCDFILE=Doubly_Linked_List/tb/sv/dump.fst +VCDLEVEL=0
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Dual_Edge_FF/src/dual_edge_ff.sv
2
+ +++ b/Dual_Edge_FF/src/dual_edge_ff.sv
3
+ @@ -40,7 +40,7 @@
4
+ always @ (posedge clk or negedge rst_n) begin
5
+ if(!rst_n)
6
+ q_out_pos[i] <= RESET_VALUE[i];
7
+ - else if(pos_edge_latch_en[i])
8
+ + else if(!pos_edge_latch_en[i])
9
+ q_out_pos[i] <= d_in_pos[i];
10
+ end
11
+
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "inverted_condition",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Dual_Edge_FF/src/dual_edge_ff.sv"
6
+ ],
7
+ "bug_description": "Inverted 'pos_edge_latch_en' condition in positive-edge flip-flop \u2014 q_out_pos now latches when pos_edge_latch_en is deasserted instead of asserted",
8
+ "signals_affected": [
9
+ "pos_edge_latch_en"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "Data output signal data_out fails to update despite pos_edge_latch_en being asserted to enable latching. At t=120000, when the latch enable signal is asserted and new data is available on the input, data_out remains stuck at 00000000 instead of capturing the expected value. The signal continues to hold this value through subsequent clock cycles, indicating that the latch is not responding correctly to the enable control signal. Simulation waveforms show pos_edge_latch_en transitioning as expected, but the data capture mechanism is not functioning properly.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/inverted_condition/sim_log.txt ADDED
@@ -0,0 +1,51 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Dual_Edge_FF/tb/sv/dump.fst opened for output.
2
+ Starting direct operation test
3
+ 121000 Data out is correctly latched at negedge with value 129
4
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 133000 Data out is incorrect, should not be updated at posedge, EXP: 129, ACT: 130
5
+ Time: 133000 Scope: tb.direct_test
6
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:77: 157000 Data out is incorrect at posedge, EXP: 99, ACT: 130
7
+ Time: 157000 Scope: tb.direct_test
8
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:87: 169000 Data out is incorrect, should not be updated at posedge, EXP: 99, ACT: 130
9
+ Time: 169000 Scope: tb.direct_test
10
+ 193000 Data out is correctly latched at negedge with value 141
11
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 205000 Data out is incorrect, should not be updated at posedge, EXP: 141, ACT: 142
12
+ Time: 205000 Scope: tb.direct_test
13
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:77: 229000 Data out is incorrect at posedge, EXP: 18, ACT: 142
14
+ Time: 229000 Scope: tb.direct_test
15
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:87: 241000 Data out is incorrect, should not be updated at posedge, EXP: 18, ACT: 142
16
+ Time: 241000 Scope: tb.direct_test
17
+ 265000 Data out is correctly latched at negedge with value 13
18
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 277000 Data out is incorrect, should not be updated at posedge, EXP: 13, ACT: 14
19
+ Time: 277000 Scope: tb.direct_test
20
+ 313000 Data out is correctly latched at negedge with value 61
21
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:139: 325000 Data out is incorrect at posedge, EXP: 237, ACT: 61
22
+ Time: 325000 Scope: tb.direct_test
23
+ 361000 Data out is correctly latched at negedge with value 249
24
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:139: 373000 Data out is incorrect at posedge, EXP: 198, ACT: 249
25
+ Time: 373000 Scope: tb.direct_test
26
+ 409000 Data out is correctly latched at negedge with value 170
27
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 421000 Data out is incorrect, should not be updated at posedge, EXP: 170, ACT: 171
28
+ Time: 421000 Scope: tb.direct_test
29
+ 457000 Data out is correctly latched at negedge with value 119
30
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:139: 469000 Data out is incorrect at posedge, EXP: 18, ACT: 119
31
+ Time: 469000 Scope: tb.direct_test
32
+ 505000 Data out is correctly latched at negedge with value 242
33
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:139: 517000 Data out is incorrect at posedge, EXP: 206, ACT: 242
34
+ Time: 517000 Scope: tb.direct_test
35
+ 553000 Data out is correctly latched at negedge with value 197
36
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 565000 Data out is incorrect, should not be updated at posedge, EXP: 197, ACT: 198
37
+ Time: 565000 Scope: tb.direct_test
38
+ 601000 Data out is correctly latched at negedge with value 189
39
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:139: 613000 Data out is incorrect at posedge, EXP: 45, ACT: 189
40
+ Time: 613000 Scope: tb.direct_test
41
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:77: 637000 Data out is incorrect at posedge, EXP: 99, ACT: 189
42
+ Time: 637000 Scope: tb.direct_test
43
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:87: 649000 Data out is incorrect, should not be updated at posedge, EXP: 99, ACT: 189
44
+ Time: 649000 Scope: tb.direct_test
45
+ 673000 Data out is correctly latched at negedge with value 128
46
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:112: 685000 Data out is incorrect, should not be updated at posedge, EXP: 128, ACT: 129
47
+ Time: 685000 Scope: tb.direct_test
48
+ 721000 Data out is correctly latched at negedge with value 170
49
+ ERROR: /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/
50
+ --- STDERR ---
51
+ /tmp/sim4_simsh_4cdpjsak/source/Dual_Edge_FF/tb/sv/tb.sv:62: warning: task definition for "direct_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Dual_Edge_FF/src/dual_edge_ff.sv
2
+ +++ b/Dual_Edge_FF/src/dual_edge_ff.sv
3
+ @@ -40,7 +40,7 @@
4
+ always @ (posedge clk or negedge rst_n) begin
5
+ if(!rst_n)
6
+ q_out_pos[i] <= RESET_VALUE[i];
7
+ - else if(pos_edge_latch_en[i])
8
+ + else
9
+ q_out_pos[i] <= d_in_pos[i];
10
+ end
11
+
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/metadata.json ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "missing_enable",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Dual_Edge_FF/src/dual_edge_ff.sv"
6
+ ],
7
+ "bug_description": "Removed 'pos_edge_latch_en[i]' enable condition from the posedge clk sequential block \u2014 q_out_pos[i] now updates on every positive clock edge instead of only when pos_edge_latch_en[i] is high",
8
+ "signals_affected": [
9
+ "q_out_pos",
10
+ "data_out"
11
+ ],
12
+ "simulation_status": "sim_ok",
13
+ "problem_statement": "During verification of the data latch module, we observed that `data_out` is not maintaining stable values across clock cycles as expected. Specifically, at t=120000, `data_out` shows 00000000 when it should have retained the previously latched value based on the pos_edge_latch_en signal control. The `q_out_pos` register appears to be updating on every positive clock edge regardless of the enable signal state, causing `data_out` to be overwritten continuously instead of only updating when pos_edge_latch_en is asserted. This violates the expected behavior where the output should remain constant except when an explicit latch enable pulse is received. The issue prevents proper data capture and holding, breaking the intended control flow of the module.",
14
+ "diff_summary": "4 changed lines",
15
+ "buggy_waveform": "buggy_waveform.fst",
16
+ "golden_waveform": "golden_waveform.fst"
17
+ }
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_enable/sim_log.txt ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Dual_Edge_FF/tb/sv/dump.fst opened for output.
2
+ Starting direct operation test
3
+ 121000 Data out is correctly latched at negedge with value 129
4
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 133000 Data out is incorrect, should not be updated at posedge, EXP: 129, ACT: 130
5
+ Time: 133000 Scope: tb.direct_test
6
+ 157000 Data out is correctly latched at posedge with value 99
7
+ 193000 Data out is correctly latched at negedge with value 141
8
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 205000 Data out is incorrect, should not be updated at posedge, EXP: 141, ACT: 142
9
+ Time: 205000 Scope: tb.direct_test
10
+ 229000 Data out is correctly latched at posedge with value 18
11
+ 265000 Data out is correctly latched at negedge with value 13
12
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 277000 Data out is incorrect, should not be updated at posedge, EXP: 13, ACT: 14
13
+ Time: 277000 Scope: tb.direct_test
14
+ 313000 Data out is correctly latched at negedge with value 61
15
+ 325000 Data out is correctly latched at posedge with value 237
16
+ 361000 Data out is correctly latched at negedge with value 249
17
+ 373000 Data out is correctly latched at posedge with value 198
18
+ 409000 Data out is correctly latched at negedge with value 170
19
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 421000 Data out is incorrect, should not be updated at posedge, EXP: 170, ACT: 171
20
+ Time: 421000 Scope: tb.direct_test
21
+ 457000 Data out is correctly latched at negedge with value 119
22
+ 469000 Data out is correctly latched at posedge with value 18
23
+ 505000 Data out is correctly latched at negedge with value 242
24
+ 517000 Data out is correctly latched at posedge with value 206
25
+ 553000 Data out is correctly latched at negedge with value 197
26
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 565000 Data out is incorrect, should not be updated at posedge, EXP: 197, ACT: 198
27
+ Time: 565000 Scope: tb.direct_test
28
+ 601000 Data out is correctly latched at negedge with value 189
29
+ 613000 Data out is correctly latched at posedge with value 45
30
+ 637000 Data out is correctly latched at posedge with value 99
31
+ 673000 Data out is correctly latched at negedge with value 128
32
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 685000 Data out is incorrect, should not be updated at posedge, EXP: 128, ACT: 129
33
+ Time: 685000 Scope: tb.direct_test
34
+ 721000 Data out is correctly latched at negedge with value 170
35
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 733000 Data out is incorrect, should not be updated at posedge, EXP: 170, ACT: 171
36
+ Time: 733000 Scope: tb.direct_test
37
+ 757000 Data out is correctly latched at posedge with value 150
38
+ 805000 Data out is correctly latched at posedge with value 13
39
+ 853000 Data out is correctly latched at posedge with value 107
40
+ 889000 Data out is correctly latched at negedge with value 2
41
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 901000 Data out is incorrect, should not be updated at posedge, EXP: 2, ACT: 3
42
+ Time: 901000 Scope: tb.direct_test
43
+ 937000 Data out is correctly latched at negedge with value 29
44
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 949000 Data out is incorrect, should not be updated at posedge, EXP: 29, ACT: 30
45
+ Time: 949000 Scope: tb.direct_test
46
+ 985000 Data out is correctly latched at negedge with value 35
47
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 997000 Data out is incorrect, should not be updated at posedge, EXP: 35, ACT: 36
48
+ Time: 997000 Scope: tb.direct_test
49
+ 1033000 Data out is correctly latched at negedge with value 202
50
+ ERROR: /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:112: 1045000 Data out is incorrect, should not be updated at posedge, EXP: 202, ACT: 203
51
+ Time: 1045000 Scope: tb.direct_test
52
+ 1069000 Data out is correctly latched at posedge with value 242
53
+ 1105000 Data out is cor
54
+ --- STDERR ---
55
+ /tmp/sim4_simsh_lh7kvlqo/source/Dual_Edge_FF/tb/sv/tb.sv:62: warning: task definition for "direct_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/diff.patch ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Dual_Edge_FF/src/dual_edge_ff.sv
2
+ +++ b/Dual_Edge_FF/src/dual_edge_ff.sv
3
+ @@ -28,6 +28,7 @@
4
+ reg [DATA_WIDTH-1:0] d_in_neg;
5
+ reg [DATA_WIDTH-1:0] q_out_neg;
6
+
7
+ + initial q_out_pos = {DATA_WIDTH{1'bx}};
8
+
9
+ assign clk_n = ~clk; // Invert clock for negative edge latching
10
+
11
+ @@ -38,9 +39,7 @@
12
+
13
+ assign d_in_pos[i] = data_in[i] ^ q_out_neg[i];
14
+ always @ (posedge clk or negedge rst_n) begin
15
+ - if(!rst_n)
16
+ - q_out_pos[i] <= RESET_VALUE[i];
17
+ - else if(pos_edge_latch_en[i])
18
+ + if(pos_edge_latch_en[i])
19
+ q_out_pos[i] <= d_in_pos[i];
20
+ end
21
+
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "missing_reset",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Dual_Edge_FF/src/dual_edge_ff.sv"
6
+ ],
7
+ "bug_description": "Removed asynchronous reset for 'q_out_pos' register; added initial block setting q_out_pos to unknown (x) to make the missing reset observable in simulation",
8
+ "signals_affected": [
9
+ "q_out_pos"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "Upon simulation startup, the `data_out` signal exhibits undefined values (xxxxxxxx) at t=0, when it should be initialized to a known state following the reset sequence. The output register does not properly initialize to its expected reset value, instead holding unknown bits throughout the initial cycles. This causes the data output bus to drive X-states onto downstream logic immediately at the start of simulation, preventing proper initialization-dependent checks and breaking any verification assertions that depend on known output values after reset de-assertion.",
13
+ "diff_summary": "7 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/missing_reset/sim_log.txt ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Dual_Edge_FF/tb/sv/dump.fst opened for output.
2
+ Starting direct operation test
3
+ 121000 Data out is correctly latched at negedge with value x
4
+ 157000 Data out is correctly latched at posedge with value x
5
+ 193000 Data out is correctly latched at negedge with value x
6
+ 229000 Data out is correctly latched at posedge with value x
7
+ 265000 Data out is correctly latched at negedge with value x
8
+ 313000 Data out is correctly latched at negedge with value x
9
+ 325000 Data out is correctly latched at posedge with value x
10
+ 361000 Data out is correctly latched at negedge with value x
11
+ 373000 Data out is correctly latched at posedge with value x
12
+ 409000 Data out is correctly latched at negedge with value x
13
+ 457000 Data out is correctly latched at negedge with value x
14
+ 469000 Data out is correctly latched at posedge with value x
15
+ 505000 Data out is correctly latched at negedge with value x
16
+ 517000 Data out is correctly latched at posedge with value x
17
+ 553000 Data out is correctly latched at negedge with value x
18
+ 601000 Data out is correctly latched at negedge with value x
19
+ 613000 Data out is correctly latched at posedge with value x
20
+ 637000 Data out is correctly latched at posedge with value x
21
+ 673000 Data out is correctly latched at negedge with value x
22
+ 721000 Data out is correctly latched at negedge with value x
23
+ 757000 Data out is correctly latched at posedge with value x
24
+ 805000 Data out is correctly latched at posedge with value x
25
+ 853000 Data out is correctly latched at posedge with value x
26
+ 889000 Data out is correctly latched at negedge with value x
27
+ 937000 Data out is correctly latched at negedge with value x
28
+ 985000 Data out is correctly latched at negedge with value x
29
+ 1033000 Data out is correctly latched at negedge with value x
30
+ 1069000 Data out is correctly latched at posedge with value x
31
+ 1105000 Data out is correctly latched at negedge with value x
32
+ 1117000 Data out is correctly latched at posedge with value x
33
+ 1153000 Data out is correctly latched at negedge with value x
34
+ 1165000 Data out is correctly latched at posedge with value x
35
+ 1201000 Data out is correctly latched at negedge with value x
36
+ 1213000 Data out is correctly latched at posedge with value x
37
+ 1249000 Data out is correctly latched at negedge with value x
38
+ 1285000 Data out is correctly latched at posedge with value x
39
+ 1321000 Data out is correctly latched at negedge with value x
40
+ 1333000 Data out is correctly latched at posedge with value x
41
+ 1369000 Data out is correctly latched at negedge with value x
42
+ 1417000 Data out is correctly latched at negedge with value x
43
+ 1465000 Data out is correctly latched at negedge with value x
44
+ 1477000 Data out is correctly latched at posedge with value x
45
+ 1513000 Data out is correctly latched at negedge with value x
46
+ 1525000 Data out is correctly latched at posedge with value x
47
+ 1561000 Data out is correctly latched at negedge with value x
48
+ 1597000 Data out is correctly latched at posedge with value x
49
+ 1633000 Data out is correctly latched at negedge with value x
50
+ 1645000 Data out is correctly latched at posedge with value x
51
+ 1681000 Data out is correctly latched at negedge with value x
52
+ 1729000 Data out is correctly latched at negedge with value x
53
+ 1741000 Data out is correctly latched at posedge with value x
54
+ 1777000 Data out is correctly latched at negedge with value x
55
+ 1789000 Data out is correctly latched at posedge with value x
56
+ 1825000 Data out is correctly latched at negedge with value x
57
+ 1873000 Data out is correctly latched at negedge with value x
58
+ 1885000 Data out is correctly latched at posedge with value x
59
+ 1921000 Data out is correctly latched at negedge with value x
60
+ 1957000 Data out is correctly latched at posedge with value x
61
+ 1993000 Data out is correctly latched at negedge with value x
62
+ 2041000 Data out is correctly latched at negedge with value x
63
+ 2077000 Data out is correctly latched at posedge with value x
64
+ 2125000 Data out is correctly latched at posedge with value x
65
+ 2173000 Data out is correctly latched at posedge with value x
66
+ 2221000 Data out is cor
67
+ --- STDERR ---
68
+ /tmp/sim4_simsh_1_i_5s5y/source/Dual_Edge_FF/tb/sv/tb.sv:62: warning: task definition for "direct_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/Dual_Edge_FF/src/dual_edge_ff.sv
2
+ +++ b/Dual_Edge_FF/src/dual_edge_ff.sv
3
+ @@ -24,7 +24,7 @@
4
+ );
5
+
6
+ reg [DATA_WIDTH-1:0] d_in_pos;
7
+ - reg [DATA_WIDTH-1:0] q_out_pos;
8
+ + reg [DATA_WIDTH-3:0] q_out_pos;
9
+ reg [DATA_WIDTH-1:0] d_in_neg;
10
+ reg [DATA_WIDTH-1:0] q_out_neg;
11
+
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "wrong_bitwidth",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "Dual_Edge_FF/src/dual_edge_ff.sv"
6
+ ],
7
+ "bug_description": "Truncated 'q_out_pos' register from DATA_WIDTH bits to DATA_WIDTH-2 bits, causing upper 2 bits to be stuck at 0 when driving data_out",
8
+ "signals_affected": [
9
+ "q_out_pos"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "The `data_out` signal is not transferring data correctly. At t=0 and throughout simulation, the upper 2 bits remain stuck at 0, while the lower bits show expected transitions. When verifying data transfer operations, the `data_out` output fails to reflect the full value that should be driven from the internal register\u2014specifically, bits that should be set to 1 in the upper positions of the word are consistently observed as 0. This causes mismatches in data integrity checks and prevents correct operation of the data path. The issue appears to affect all data transfers, suggesting a systematic problem with how the output register is connected to the `data_out` port.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/bugs/wrong_bitwidth/sim_log.txt ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile Dual_Edge_FF/tb/sv/dump.fst opened for output.
2
+ Starting direct operation test
3
+ 121000 Data out is correctly latched at negedge with value X
4
+ 157000 Data out is correctly latched at posedge with value X
5
+ 193000 Data out is correctly latched at negedge with value X
6
+ 229000 Data out is correctly latched at posedge with value X
7
+ 265000 Data out is correctly latched at negedge with value X
8
+ 313000 Data out is correctly latched at negedge with value X
9
+ 325000 Data out is correctly latched at posedge with value X
10
+ 361000 Data out is correctly latched at negedge with value X
11
+ 373000 Data out is correctly latched at posedge with value X
12
+ 409000 Data out is correctly latched at negedge with value X
13
+ 457000 Data out is correctly latched at negedge with value X
14
+ 469000 Data out is correctly latched at posedge with value X
15
+ 505000 Data out is correctly latched at negedge with value X
16
+ 517000 Data out is correctly latched at posedge with value X
17
+ 553000 Data out is correctly latched at negedge with value X
18
+ 601000 Data out is correctly latched at negedge with value X
19
+ 613000 Data out is correctly latched at posedge with value X
20
+ 637000 Data out is correctly latched at posedge with value X
21
+ 673000 Data out is correctly latched at negedge with value X
22
+ 721000 Data out is correctly latched at negedge with value X
23
+ 757000 Data out is correctly latched at posedge with value X
24
+ 805000 Data out is correctly latched at posedge with value X
25
+ 853000 Data out is correctly latched at posedge with value X
26
+ 889000 Data out is correctly latched at negedge with value X
27
+ 937000 Data out is correctly latched at negedge with value X
28
+ 985000 Data out is correctly latched at negedge with value X
29
+ 1033000 Data out is correctly latched at negedge with value X
30
+ 1069000 Data out is correctly latched at posedge with value X
31
+ 1105000 Data out is correctly latched at negedge with value X
32
+ 1117000 Data out is correctly latched at posedge with value X
33
+ 1153000 Data out is correctly latched at negedge with value X
34
+ 1165000 Data out is correctly latched at posedge with value X
35
+ 1201000 Data out is correctly latched at negedge with value X
36
+ 1213000 Data out is correctly latched at posedge with value X
37
+ 1249000 Data out is correctly latched at negedge with value X
38
+ 1285000 Data out is correctly latched at posedge with value X
39
+ 1321000 Data out is correctly latched at negedge with value X
40
+ 1333000 Data out is correctly latched at posedge with value X
41
+ 1369000 Data out is correctly latched at negedge with value X
42
+ 1417000 Data out is correctly latched at negedge with value X
43
+ 1465000 Data out is correctly latched at negedge with value X
44
+ 1477000 Data out is correctly latched at posedge with value X
45
+ 1513000 Data out is correctly latched at negedge with value X
46
+ 1525000 Data out is correctly latched at posedge with value X
47
+ 1561000 Data out is correctly latched at negedge with value X
48
+ 1597000 Data out is correctly latched at posedge with value X
49
+ 1633000 Data out is correctly latched at negedge with value X
50
+ 1645000 Data out is correctly latched at posedge with value X
51
+ 1681000 Data out is correctly latched at negedge with value X
52
+ 1729000 Data out is correctly latched at negedge with value X
53
+ 1741000 Data out is correctly latched at posedge with value X
54
+ 1777000 Data out is correctly latched at negedge with value X
55
+ 1789000 Data out is correctly latched at posedge with value X
56
+ 1825000 Data out is correctly latched at negedge with value X
57
+ 1873000 Data out is correctly latched at negedge with value X
58
+ 1885000 Data out is correctly latched at posedge with value X
59
+ 1921000 Data out is correctly latched at negedge with value X
60
+ 1957000 Data out is correctly latched at posedge with value X
61
+ 1993000 Data out is correctly latched at negedge with value X
62
+ 2041000 Data out is correctly latched at negedge with value X
63
+ 2077000 Data out is correctly latched at posedge with value X
64
+ 2125000 Data out is correctly latched at posedge with value X
65
+ 2173000 Data out is correctly latched at posedge with value X
66
+ 2221000 Data out is cor
67
+ --- STDERR ---
68
+ /tmp/sim4_simsh_hhfr_x00/source/Dual_Edge_FF/tb/sv/tb.sv:62: warning: task definition for "direct_test" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/golden_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/dual_edge_ff__dual_edge_ff/sim.sh ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ SRCDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
4
+ iverilog -g2012 -o /tmp/sim_dual_edge_ff "$SRCDIR/Dual_Edge_FF/src/dual_edge_ff.sv" "$SRCDIR/Dual_Edge_FF/tb/sv/tb.sv"
5
+ vvp /tmp/sim_dual_edge_ff -fst +VCDFILE=Dual_Edge_FF/tb/sv/dump.fst +VCDLEVEL=0
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/FIFO/src/fifo.sv
2
+ +++ b/FIFO/src/fifo.sv
3
+ @@ -31,7 +31,7 @@
4
+ if(rst) begin
5
+ {wr_gray_pointer_sync[1], wr_gray_pointer_sync[0]} <= {(2*CNTR_WIDTH){1'b0}};
6
+ end else begin
7
+ - {wr_gray_pointer_sync[1], wr_gray_pointer_sync[0]} <= {wr_gray_pointer_sync[0], wr_gray_pointer};
8
+ + {wr_gray_pointer_sync[1], wr_gray_pointer_sync[0]} <= {wr_gray_pointer, wr_gray_pointer_sync[0]};
9
+ end
10
+ end
11
+
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/metadata.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "bug_type": "concat_swap",
3
+ "task_type": "behavioral_bug",
4
+ "files_modified": [
5
+ "FIFO/src/fifo.sv"
6
+ ],
7
+ "bug_description": "Reordered concatenation {wr_gray_pointer_sync[0], wr_gray_pointer} to {wr_gray_pointer, wr_gray_pointer_sync[0]} in the wr_gray_pointer synchronizer shift register \u2014 the new write-pointer value is loaded into sync[1] instead of sync[0], breaking the two-stage synchronizer so wr_gray_pointer_sync[1] immediately reflects the unsynchronized write pointer rather than the properly delayed version",
8
+ "signals_affected": [
9
+ "wr_gray_pointer_sync"
10
+ ],
11
+ "simulation_status": "sim_ok",
12
+ "problem_statement": "During FIFO cross-clock-domain verification, the `fifo_empty` signal exhibits incorrect behavior at t=16000, transitioning to 'x' when it should reflect a valid logic state. The write-side gray pointer synchronizer (`wr_gray_pointer_sync`) appears to be responding too quickly to write-pointer changes, suggesting the multi-stage synchronization pipeline is not functioning as designed. This causes the FIFO empty flag calculation to become unstable and unreliable across clock domain crossings. The issue manifests consistently when write pointer updates occur, indicating a systematic failure in the synchronization mechanism rather than a transient metastability event. Further investigation of the pointer synchronizer path is needed to restore proper FIFO operation.",
13
+ "diff_summary": "4 changed lines",
14
+ "buggy_waveform": "buggy_waveform.fst",
15
+ "golden_waveform": "golden_waveform.fst"
16
+ }
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/concat_swap/sim_log.txt ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FST info: dumpfile FIFO/tb/sv/dump.fst opened for output.
2
+
3
+ 100000 FIFO WRITE BURST SEQ
4
+ 110000 Data written = 146, FIFO entry = 1
5
+ 130000 Data written = 64, FIFO entry = 2
6
+ 150000 Data written = 4, FIFO entry = 3
7
+ 170000 Data written = 49, FIFO entry = 4
8
+ 190000 Data written = 134, FIFO entry = 5
9
+ 210000 Data written = 198, FIFO entry = 6
10
+ 230000 Data written = 50, FIFO entry = 7
11
+ 250000 Data written = 9, FIFO entry = 8
12
+ 270000 Data written = 128, FIFO entry = 9
13
+ 290000 Data written = 134, FIFO entry = 10
14
+ 310000 Data written = 187, FIFO entry = 11
15
+ 330000 Data written = 158, FIFO entry = 12
16
+ 351000 FIFO is full, fifo_full flag is asserted correctly
17
+ 371000 FIFO is full, fifo_full flag is asserted correctly
18
+ 391000 FIFO is full, fifo_full flag is asserted correctly
19
+
20
+ 1410000 FIFO READ BURST SEQ
21
+ 1458000 Data read = 146, FIFO entry = 11
22
+ 1490000 Data read = 64, FIFO entry = 10
23
+ 1522000 Data read = 4, FIFO entry = 9
24
+ 1554000 Data read = 49, FIFO entry = 8
25
+ 1586000 Data read = 134, FIFO entry = 7
26
+ 1618000 Data read = 198, FIFO entry = 6
27
+ 1650000 Data read = 50, FIFO entry = 5
28
+ 1682000 Data read = 9, FIFO entry = 4
29
+ 1714000 Data read = 128, FIFO entry = 3
30
+ 1746000 Data read = 134, FIFO entry = 2
31
+ 1778000 Data read = 187, FIFO entry = 1
32
+ 1810000 Data read = 158, FIFO entry = 0
33
+ 1841000 FIFO is empty, fifo_empty flag is asserted correctly
34
+ 1873000 FIFO is empty, fifo_empty flag is asserted correctly
35
+ 1905000 FIFO is empty, fifo_empty flag is asserted correctly
36
+
37
+ 2905000 FIFO RANDOM READ WRITE SEQ
38
+ 2910000 Data written = 85, FIFO entry = 1
39
+ 2930000 Data written = 242, FIFO entry = 2
40
+ 2950000 Data written = 59, FIFO entry = 3
41
+ 2970000 Data written = 9, FIFO entry = 4
42
+ 2990000 Data written = 199, FIFO entry = 5
43
+ 3130000 Data written = 116, FIFO entry = 6
44
+ 3150000 Data written = 98, FIFO entry = 7
45
+ 3170000 Data written = 174, FIFO entry = 8
46
+ 3346000 Data read = 85, FIFO entry = 7
47
+ 3474000 Data read = 242, FIFO entry = 6
48
+ 3570000 Data written = 144, FIFO entry = 7
49
+ 3710000 Data written = 78, FIFO entry = 8
50
+ 4466000 Data read = 59, FIFO entry = 7
51
+
52
+ 5558000 FIFO SIMULTANEOUS RANDOM READ WRITE SEQ
53
+ 5618000 Data read = 9, FIFO entry = 6
54
+ 5650000 Data read = 199, FIFO entry = 5
55
+ 5682000 Data read = 116, FIFO entry = 4
56
+ 5714000 Data read = 98, FIFO entry = 3
57
+ 5746000 Data read = 174, FIFO entry = 2
58
+ 5778000 Data read = 144, FIFO entry = 1
59
+ 5810000 Data read = 78, FIFO entry = 0
60
+ 5830000 Data written = 101, FIFO entry = 1
61
+ 5850000 Data written = 30, FIFO entry = 2
62
+ 5870000 Data written = 250, FIFO entry = 3
63
+ 5890000 Data written = 197, FIFO entry = 4
64
+ 5910000 Data written = 161, FIFO entry = 5
65
+ 5930000 Data written = 108, FIFO entry = 6
66
+ 5950000 Data written = 188, FIFO entry = 7
67
+ 5970000 Data written = 68, FIFO entry = 8
68
+ 5990000 Data written = 246, FIFO entry = 9
69
+ 6010000 Data written = 219, FIFO entry = 10
70
+ 6030000 Data written = 228, FIFO entry = 11
71
+ 6050000 Data written = 215, FIFO entry = 12
72
+
73
+ 7070000 TEST PASSED
74
+
75
+
76
+ --- STDERR ---
77
+ /tmp/sim4_simsh_al8_3h79/source/FIFO/tb/sv/tb.sv:165: warning: task definition for "fifo_read_write_rand_simul" has an empty port declaration list!
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/inverted_condition/buggy_waveform.fst ADDED
Weiyet_RTLStructLib/candidates/fifo__fifo/bugs/inverted_condition/diff.patch ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ --- a/FIFO/src/fifo.sv
2
+ +++ b/FIFO/src/fifo.sv
3
+ @@ -64,7 +64,7 @@
4
+ if(rst) begin
5
+ for (i = 0; i < DEPTH; i = i + 1)
6
+ fifo_stored[i] <= {DATA_WIDTH{1'b0}};
7
+ - end else if (wr_en & !fifo_full) begin
8
+ + end else if (wr_en & fifo_full) begin
9
+ fifo_stored[wr_binary_pointer] <= data_wr;
10
+ end
11
+ end