Add complete 511-case testbench package

#6
by Zanehpn - opened
This view is limited to 50 files because it contains too many changes. See the raw diff here.
Files changed (50) hide show
  1. testbench/AUCOHL_Lighter_pr16/coverage.dat +39 -0
  2. testbench/AUCOHL_Lighter_pr16/open_tool_p2p_buggy.log +3 -0
  3. testbench/AUCOHL_Lighter_pr16/open_tool_p2p_fixed.log +3 -0
  4. testbench/AUCOHL_Lighter_pr16/repo_native_buggy.log +1 -0
  5. testbench/AUCOHL_Lighter_pr16/repo_native_fixed.log +1 -0
  6. testbench/AUCOHL_Lighter_pr16/run_once.sh +4 -0
  7. testbench/AUCOHL_Lighter_pr16/run_verilator.sh +90 -0
  8. testbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.sv +48 -0
  9. testbench/AUCOHL_Lighter_pr16/verilator_buggy.log +3 -0
  10. testbench/AUCOHL_Lighter_pr16/verilator_buggy_build.log +14 -0
  11. testbench/AUCOHL_Lighter_pr16/verilator_fixed.log +3 -0
  12. testbench/AUCOHL_Lighter_pr16/verilator_fixed_build.log +14 -0
  13. testbench/AUCOHL_Lighter_pr16/verilator_fixed_coverage.info +79 -0
  14. testbench/AsFigo_pyslint_pr138/AUTO_GENERATED.md +2 -0
  15. testbench/AsFigo_pyslint_pr138/open_tool_p2p_buggy.log +19 -0
  16. testbench/AsFigo_pyslint_pr138/open_tool_p2p_fixed.log +19 -0
  17. testbench/AsFigo_pyslint_pr138/repo_native_buggy.log +1 -0
  18. testbench/AsFigo_pyslint_pr138/repo_native_fixed.log +1 -0
  19. testbench/AsFigo_pyslint_pr138/repo_native_source.path +1 -0
  20. testbench/AsFigo_pyslint_pr138/run_once.sh +4 -0
  21. testbench/AsFigo_pyslint_pr138/run_verilator.sh +62 -0
  22. testbench/AsFigo_pyslint_pr138/targets.txt +2 -0
  23. testbench/AsFigo_pyslint_pr138/verilator_buggy_build.log +4 -0
  24. testbench/AsFigo_pyslint_pr138/verilator_fixed.log +1 -0
  25. testbench/AsFigo_pyslint_pr138/verilator_fixed_build.log +6 -0
  26. testbench/AsFigo_pyslint_pr140/open_tool_p2p_buggy.log +19 -0
  27. testbench/AsFigo_pyslint_pr140/open_tool_p2p_fixed.log +19 -0
  28. testbench/AsFigo_pyslint_pr140/repo_native_buggy.log +1 -0
  29. testbench/AsFigo_pyslint_pr140/repo_native_fixed.log +1 -0
  30. testbench/AsFigo_pyslint_pr140/repo_native_source.path +1 -0
  31. testbench/AsFigo_pyslint_pr140/run_once.sh +4 -0
  32. testbench/AsFigo_pyslint_pr140/run_verilator.sh +71 -0
  33. testbench/AsFigo_pyslint_pr140/tb_issue_139_verilator.sv +8 -0
  34. testbench/AsFigo_pyslint_pr140/verilator_buggy_build.log +42 -0
  35. testbench/AsFigo_pyslint_pr140/verilator_fixed_build.log +67 -0
  36. testbench/AsFigo_pyslint_pr140/verilator_fixed_coverage.info +13 -0
  37. testbench/AsFigo_pyslint_pr149/open_tool_p2p_fixed.log +19 -0
  38. testbench/AsFigo_pyslint_pr149/repo_native_buggy.log +1 -0
  39. testbench/AsFigo_pyslint_pr149/repo_native_fixed.log +1 -0
  40. testbench/AsFigo_pyslint_pr149/run_verilator.sh +34 -0
  41. testbench/AsFigo_pyslint_pr149/tb_issue_143_verilator.sv +8 -0
  42. testbench/AsFigo_pyslint_pr149/tb_top_verilator.sv +15 -0
  43. testbench/AsFigo_pyslint_pr149/verilator_fixed_build.log +14 -0
  44. testbench/AsFigo_pyslint_pr164/open_tool_p2p_buggy.log +19 -0
  45. testbench/AsFigo_pyslint_pr164/open_tool_p2p_fixed.log +19 -0
  46. testbench/AsFigo_pyslint_pr164/repo_native_buggy.log +1 -0
  47. testbench/AsFigo_pyslint_pr164/repo_native_fixed.log +1 -0
  48. testbench/AsFigo_pyslint_pr164/repo_native_source.path +1 -0
  49. testbench/AsFigo_pyslint_pr164/run_once.sh +4 -0
  50. testbench/AsFigo_pyslint_pr164/run_verilator.sh +39 -0
testbench/AUCOHL_Lighter_pr16/coverage.dat ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # SystemC::Coverage-3
2
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl13n14ttogglepagev_toggle/$dffoCLK:0->1hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
3
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl13n14ttogglepagev_toggle/$dffoCLK:1->0hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
4
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl14n26ttogglepagev_toggle/$dffoD[0]:0->1hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
5
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl14n26ttogglepagev_toggle/$dffoD[0]:1->0hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
6
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl15n26ttogglepagev_toggle/$dffoQ[0]:0->1hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
7
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl15n26ttogglepagev_toggle/$dffoQ[0]:1->0hTOP.tb_sky130_dffe_polarity.dut.flipflop' 0
8
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl17n3tlinepagev_line/$dffoblockS17hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
9
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl2n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oGCLK:0->1hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 1
10
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl2n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oGCLK:1->0hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 1
11
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl21n7tlinepagev_line/$dffoblockS21-22hTOP.tb_sky130_dffe_polarity.dut.flipflop' 1
12
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl3n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oCLK:0->1hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 2
13
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl3n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oCLK:1->0hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 1
14
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl37n14ttogglepagev_toggle/$dffe__Ez1oCLK:0->1hTOP.tb_sky130_dffe_polarity.dut' 2
15
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl37n14ttogglepagev_toggle/$dffe__Ez1oCLK:1->0hTOP.tb_sky130_dffe_polarity.dut' 1
16
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl37n19ttogglepagev_toggle/$dffe__Ez1oEN:0->1hTOP.tb_sky130_dffe_polarity.dut' 2
17
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl37n19ttogglepagev_toggle/$dffe__Ez1oEN:1->0hTOP.tb_sky130_dffe_polarity.dut' 1
18
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl38n26ttogglepagev_toggle/$dffe__Ez1oD[0]:0->1hTOP.tb_sky130_dffe_polarity.dut' 1
19
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl38n26ttogglepagev_toggle/$dffe__Ez1oD[0]:1->0hTOP.tb_sky130_dffe_polarity.dut' 1
20
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl39n27ttogglepagev_toggle/$dffe__Ez1oQ[0]:0->1hTOP.tb_sky130_dffe_polarity.dut' 1
21
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl39n27ttogglepagev_toggle/$dffe__Ez1oQ[0]:1->0hTOP.tb_sky130_dffe_polarity.dut' 0
22
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl4n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oGATE:0->1hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 1
23
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl4n15ttogglepagev_toggle/sky130_fd_sc_hd__dlclkp_1oGATE:1->0hTOP.tb_sky130_dffe_polarity.dut.gen_gate_small.clk_gate' 1
24
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl41n8ttogglepagev_toggle/$dffe__Ez1oGCLK:0->1hTOP.tb_sky130_dffe_polarity.dut' 1
25
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl41n8ttogglepagev_toggle/$dffe__Ez1oGCLK:1->0hTOP.tb_sky130_dffe_polarity.dut' 1
26
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl42n8ttogglepagev_toggle/$dffe__Ez1ocg_enb:0->1hTOP.tb_sky130_dffe_polarity.dut' 1
27
+ C 'ftestbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.vl42n8ttogglepagev_toggle/$dffe__Ez1ocg_enb:1->0hTOP.tb_sky130_dffe_polarity.dut' 1
28
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl18n3tlinepagev_line/tb_sky130_dffe_polarityoblockS18-22,27-30,35-39,44-46hTOP.tb_sky130_dffe_polarity' 1
29
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl2n9ttogglepagev_toggle/tb_sky130_dffe_polarityoclk:0->1hTOP.tb_sky130_dffe_polarity' 2
30
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl2n9ttogglepagev_toggle/tb_sky130_dffe_polarityoclk:1->0hTOP.tb_sky130_dffe_polarity' 1
31
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl23n6tlinepagev_line/tb_sky130_dffe_polarityoelsehTOP.tb_sky130_dffe_polarity' 1
32
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl3n9ttogglepagev_toggle/tb_sky130_dffe_polarityoen_n:0->1hTOP.tb_sky130_dffe_polarity' 2
33
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl3n9ttogglepagev_toggle/tb_sky130_dffe_polarityoen_n:1->0hTOP.tb_sky130_dffe_polarity' 1
34
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl31n6tlinepagev_line/tb_sky130_dffe_polarityoelsehTOP.tb_sky130_dffe_polarity' 1
35
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl4n9ttogglepagev_toggle/tb_sky130_dffe_polarityod:0->1hTOP.tb_sky130_dffe_polarity' 1
36
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl4n9ttogglepagev_toggle/tb_sky130_dffe_polarityod:1->0hTOP.tb_sky130_dffe_polarity' 1
37
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl40n6tlinepagev_line/tb_sky130_dffe_polarityoelsehTOP.tb_sky130_dffe_polarity' 1
38
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl5n9ttogglepagev_toggle/tb_sky130_dffe_polarityoq:0->1hTOP.tb_sky130_dffe_polarity' 1
39
+ C 'ftestbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.svl5n9ttogglepagev_toggle/tb_sky130_dffe_polarityoq:1->0hTOP.tb_sky130_dffe_polarity' 0
testbench/AUCOHL_Lighter_pr16/open_tool_p2p_buggy.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ INFO: open-tool P2P fallback (buggy)
2
+ INFO: native simulation P2P not applicable for this case
3
+ PASS: open-tool P2P fallback not applicable: no open-tool check passed
testbench/AUCOHL_Lighter_pr16/open_tool_p2p_fixed.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ INFO: open-tool P2P fallback (fixed)
2
+ INFO: native simulation P2P not applicable for this case
3
+ PASS: open-tool P2P fallback not applicable: no open-tool check passed
testbench/AUCOHL_Lighter_pr16/repo_native_buggy.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native P2P smoke not applicable in buggy phase: no multi-file open-tool check passed
testbench/AUCOHL_Lighter_pr16/repo_native_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native P2P smoke not applicable in fixed phase: no multi-file open-tool check passed
testbench/AUCOHL_Lighter_pr16/run_once.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
4
+ exec python3 "$HERE/../_run_once_from_run_verilator.py" "$HERE/run_verilator.sh"
testbench/AUCOHL_Lighter_pr16/run_verilator.sh ADDED
@@ -0,0 +1,90 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/usr/bin/env bash
2
+ set -u
3
+
4
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
5
+ cd "$HERE"
6
+ . "$HERE/../_testcase_minimum.sh"
7
+ . "$HERE/../_repo_native_p2p_smoke.sh"
8
+ export HWE_AUTO_COVERAGE=1
9
+
10
+ NAME="AUCOHL_Lighter_pr16"
11
+ REPO_ROOT="$(cd "$HERE/../.." && pwd)"
12
+ SNAPSHOT="$REPO_ROOT/snapshots/$NAME"
13
+ PATCH_FILE="$REPO_ROOT/patches/$NAME.patch"
14
+ SCRATCH="$HERE/snapshot_scratch"
15
+
16
+ snapshot_is_buggy() {
17
+ rm -rf "$SCRATCH"
18
+ cp -r "$SNAPSHOT" "$SCRATCH"
19
+ chmod -R u+w "$SCRATCH"
20
+ (cd "$SCRATCH" && patch -p1 --dry-run -f < "$PATCH_FILE" >/dev/null 2>&1)
21
+ }
22
+
23
+ prepare_phase() {
24
+ local tag="$1"
25
+ rm -rf "$SCRATCH"
26
+ cp -r "$SNAPSHOT" "$SCRATCH"
27
+ chmod -R u+w "$SCRATCH"
28
+ if snapshot_is_buggy; then
29
+ rm -rf "$SCRATCH"
30
+ cp -r "$SNAPSHOT" "$SCRATCH"
31
+ chmod -R u+w "$SCRATCH"
32
+ if [ "$tag" = "fixed" ]; then
33
+ (cd "$SCRATCH" && patch -p1 -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1)
34
+ fi
35
+ elif [ "$tag" = "buggy" ]; then
36
+ (cd "$SCRATCH" && patch -p1 -R -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1)
37
+ fi
38
+ }
39
+
40
+ run_phase() {
41
+ local tag="$1"
42
+ rm -rf obj_dir
43
+ run_repo_native_p2p_smoke "$tag" || return $?
44
+ rm -f "verilator_${tag}.log" "verilator_${tag}_build.log"
45
+
46
+ verilator --binary --sv --timing --Wno-fatal --Wno-DECLFILENAME \
47
+ --timescale 1ns/1ps \
48
+ "$SCRATCH/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.v" \
49
+ "$HERE/tb_sky130_dffe_polarity_verilator.sv" \
50
+ --top-module tb_sky130_dffe_polarity -o simv_vlt \
51
+ >"verilator_${tag}_build.log" 2>&1
52
+ local build_rc=$?
53
+ if [ "$build_rc" -ne 0 ] || [ ! -x obj_dir/simv_vlt ]; then
54
+ echo "FAIL: ${tag} build failed"
55
+ return 2
56
+ fi
57
+
58
+ ./obj_dir/simv_vlt >"verilator_${tag}.log" 2>&1
59
+ local sim_rc=$?
60
+ if [ "$sim_rc" -ne 0 ]; then
61
+ return "$sim_rc"
62
+ fi
63
+ if grep -q "PASS:" "verilator_${tag}.log" && ! grep -q "FAIL:" "verilator_${tag}.log"; then
64
+ return 0
65
+ fi
66
+ return 1
67
+ }
68
+
69
+ prepare_phase buggy
70
+ echo "======= BUGGY ======="
71
+ run_phase buggy
72
+ rc_buggy=$?
73
+
74
+ prepare_phase fixed
75
+ echo "======= FIXED ======="
76
+ run_phase fixed
77
+ rc_fixed=$?
78
+
79
+ rm -rf obj_dir "$SCRATCH"
80
+
81
+ echo "buggy:$rc_buggy fixed:$rc_fixed"
82
+ if [ "$rc_buggy" != "0" ] && [ "$rc_fixed" = "0" ]; then
83
+ hwe_report_min_testcases
84
+ hwe_report_real_verilator_coverage
85
+ echo "PASS: $NAME"
86
+ exit 0
87
+ fi
88
+
89
+ echo "FAIL: $NAME"
90
+ exit 1
testbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.sv ADDED
@@ -0,0 +1,48 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ module tb_sky130_dffe_polarity;
2
+ logic clk;
3
+ logic en_n;
4
+ logic d;
5
+ logic q;
6
+
7
+ \$dffe #(
8
+ .WIDTH(1),
9
+ .CLK_POLARITY(1'b1),
10
+ .EN_POLARITY(1'b0)
11
+ ) dut (
12
+ .CLK(clk),
13
+ .D(d),
14
+ .EN(en_n),
15
+ .Q(q)
16
+ );
17
+
18
+ initial begin
19
+ clk = 1'b0;
20
+ en_n = 1'b1;
21
+ d = 1'b0;
22
+ #1;
23
+ if (q !== 1'b0) begin
24
+ $fatal(1, "FAIL: mapped DFFE should initialize to zero, got %0b", q);
25
+ end
26
+
27
+ d = 1'b1;
28
+ en_n = 1'b0;
29
+ #4 clk = 1'b1;
30
+ #1;
31
+ if (q !== 1'b1) begin
32
+ $fatal(1, "FAIL: EN_POLARITY=0 must enable capture when EN is low");
33
+ end
34
+
35
+ clk = 1'b0;
36
+ d = 1'b0;
37
+ en_n = 1'b1;
38
+ #4 clk = 1'b1;
39
+ #1;
40
+ if (q !== 1'b1) begin
41
+ $fatal(1, "FAIL: disabled active-low EN must hold previous Q");
42
+ end
43
+
44
+ $display("PASS: T_COMPLETION directed testcase sequence completed");
45
+ $display("PASS: sky130 DFFE mapping honors EN_POLARITY");
46
+ $finish;
47
+ end
48
+ endmodule
testbench/AUCOHL_Lighter_pr16/verilator_buggy.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [6000] %Fatal: tb_sky130_dffe_polarity_verilator.sv:32: Assertion failed in TOP.tb_sky130_dffe_polarity: FAIL: EN_POLARITY=0 must enable capture when EN is low
2
+ %Error: testbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.sv:32: Verilog $stop
3
+ Aborting...
testbench/AUCOHL_Lighter_pr16/verilator_buggy_build.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ make: Entering directory 'testbench/AUCOHL_Lighter_pr16/obj_dir'
2
+ g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -Os -c -o _coverage_main.o testbench/AUCOHL_Lighter_pr16/../_coverage_main.cpp
3
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated.o /opt/oss-cad-suite/share/verilator/include/verilated.cpp
4
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_cov.o /opt/oss-cad-suite/share/verilator/include/verilated_cov.cpp
5
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_timing.o /opt/oss-cad-suite/share/verilator/include/verilated_timing.cpp
6
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_threads.o /opt/oss-cad-suite/share/verilator/include/verilated_threads.cpp
7
+ python3 /opt/oss-cad-suite/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include Vhwe_cov_top.cpp Vhwe_cov_top___024root__0.cpp Vhwe_cov_top___024root__Slow.cpp Vhwe_cov_top___024root__0__Slow.cpp Vhwe_cov_top__Syms__Slow.cpp > Vhwe_cov_top__ALL.cpp
8
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o Vhwe_cov_top__ALL.o Vhwe_cov_top__ALL.cpp
9
+ g++ -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/user/miniforge3/lib -Wl,-rpath-link,/home/user/miniforge3/lib -L/home/user/miniforge3/lib _coverage_main.o verilated.o verilated_cov.o verilated_timing.o verilated_threads.o Vhwe_cov_top__ALL.a -pthread -lpthread -latomic -o simv_vlt
10
+ rm Vhwe_cov_top__ALL.verilator_deplist.tmp
11
+ make: Leaving directory 'testbench/AUCOHL_Lighter_pr16/obj_dir'
12
+ - V e r i l a t i o n R e p o r t: Verilator 5.047 devel rev v5.046-293-ge82bd52fa (mod)
13
+ - Verilator: Built from 0.052 MB sources in 5 modules, into 0.055 MB in 5 C++ files needing 0.000 MB
14
+ - Verilator: Walltime 7.927 s (elab=0.000, cvt=0.003, bld=7.921); cpu 0.006 s on 1 threads; allocated 20.613 MB
testbench/AUCOHL_Lighter_pr16/verilator_fixed.log ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ PASS: T_COMPLETION directed testcase sequence completed
2
+ PASS: sky130 DFFE mapping honors EN_POLARITY
3
+ - testbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.sv:46: Verilog $finish
testbench/AUCOHL_Lighter_pr16/verilator_fixed_build.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ make: Entering directory 'testbench/AUCOHL_Lighter_pr16/obj_dir'
2
+ g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -Os -c -o _coverage_main.o testbench/AUCOHL_Lighter_pr16/../_coverage_main.cpp
3
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated.o /opt/oss-cad-suite/share/verilator/include/verilated.cpp
4
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_cov.o /opt/oss-cad-suite/share/verilator/include/verilated_cov.cpp
5
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_timing.o /opt/oss-cad-suite/share/verilator/include/verilated_timing.cpp
6
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o verilated_threads.o /opt/oss-cad-suite/share/verilator/include/verilated_threads.cpp
7
+ python3 /opt/oss-cad-suite/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include Vhwe_cov_top.cpp Vhwe_cov_top___024root__0.cpp Vhwe_cov_top___024root__Slow.cpp Vhwe_cov_top___024root__0__Slow.cpp Vhwe_cov_top__Syms__Slow.cpp > Vhwe_cov_top__ALL.cpp
8
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=1 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -fcoroutines -c -o Vhwe_cov_top__ALL.o Vhwe_cov_top__ALL.cpp
9
+ g++ -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/user/miniforge3/lib -Wl,-rpath-link,/home/user/miniforge3/lib -L/home/user/miniforge3/lib _coverage_main.o verilated.o verilated_cov.o verilated_timing.o verilated_threads.o Vhwe_cov_top__ALL.a -pthread -lpthread -latomic -o simv_vlt
10
+ rm Vhwe_cov_top__ALL.verilator_deplist.tmp
11
+ make: Leaving directory 'testbench/AUCOHL_Lighter_pr16/obj_dir'
12
+ - V e r i l a t i o n R e p o r t: Verilator 5.047 devel rev v5.046-293-ge82bd52fa (mod)
13
+ - Verilator: Built from 0.052 MB sources in 5 modules, into 0.059 MB in 5 C++ files needing 0.000 MB
14
+ - Verilator: Walltime 7.925 s (elab=0.000, cvt=0.003, bld=7.918); cpu 0.007 s on 1 threads; allocated 20.648 MB
testbench/AUCOHL_Lighter_pr16/verilator_fixed_coverage.info ADDED
@@ -0,0 +1,79 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TN:verilator_coverage
2
+ SF:testbench/AUCOHL_Lighter_pr16/snapshot_scratch/platform/sky130_fd_sc_hd/sky130_fd_sc_hd_ff_map.v
3
+ DA:2,1
4
+ BRDA:2,0,0,1
5
+ BRDA:2,0,1,1
6
+ DA:3,2
7
+ BRDA:3,0,0,2
8
+ BRDA:3,0,1,1
9
+ DA:4,1
10
+ BRDA:4,0,0,1
11
+ BRDA:4,0,1,1
12
+ DA:13,1
13
+ BRDA:13,0,0,1
14
+ BRDA:13,0,1,1
15
+ DA:14,1
16
+ BRDA:14,0,0,1
17
+ BRDA:14,0,1,1
18
+ DA:15,1
19
+ BRDA:15,0,0,1
20
+ BRDA:15,0,1,0
21
+ DA:17,1
22
+ DA:21,1
23
+ DA:22,1
24
+ DA:37,2
25
+ BRDA:37,0,0,2
26
+ BRDA:37,0,1,1
27
+ BRDA:37,0,2,2
28
+ BRDA:37,0,3,1
29
+ DA:38,1
30
+ BRDA:38,0,0,1
31
+ BRDA:38,0,1,1
32
+ DA:39,1
33
+ BRDA:39,0,0,1
34
+ BRDA:39,0,1,0
35
+ DA:41,1
36
+ BRDA:41,0,0,1
37
+ BRDA:41,0,1,1
38
+ DA:42,1
39
+ BRDA:42,0,0,1
40
+ BRDA:42,0,1,1
41
+ BRF:24
42
+ BRH:0
43
+ end_of_record
44
+ SF:testbench/AUCOHL_Lighter_pr16/tb_sky130_dffe_polarity_verilator.sv
45
+ DA:2,2
46
+ BRDA:2,0,0,2
47
+ BRDA:2,0,1,1
48
+ DA:3,2
49
+ BRDA:3,0,0,2
50
+ BRDA:3,0,1,1
51
+ DA:4,1
52
+ BRDA:4,0,0,1
53
+ BRDA:4,0,1,1
54
+ DA:5,1
55
+ BRDA:5,0,0,1
56
+ BRDA:5,0,1,0
57
+ DA:18,1
58
+ DA:19,1
59
+ DA:20,1
60
+ DA:21,1
61
+ DA:22,1
62
+ DA:23,1
63
+ DA:27,1
64
+ DA:28,1
65
+ DA:29,1
66
+ DA:30,1
67
+ DA:31,1
68
+ DA:35,1
69
+ DA:36,1
70
+ DA:37,1
71
+ DA:38,1
72
+ DA:39,1
73
+ DA:40,1
74
+ DA:44,1
75
+ DA:45,1
76
+ DA:46,1
77
+ BRF:8
78
+ BRH:0
79
+ end_of_record
testbench/AsFigo_pyslint_pr138/AUTO_GENERATED.md ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ Auto-generated compile/lint fail-to-pass Verilator testbench.
2
+ Targets are listed in targets.txt.
testbench/AsFigo_pyslint_pr138/open_tool_p2p_buggy.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (buggy)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr138/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr138/open_tool_buggy_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr138/open_tool_buggy_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] ./snapshots/AsFigo_pyslint_pr138/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] ./snapshots/AsFigo_pyslint_pr138/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in buggy phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr138/open_tool_p2p_fixed.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (fixed)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr138/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr138/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr138/open_tool_fixed_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr138/open_tool_fixed_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] ./snapshots/AsFigo_pyslint_pr138/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] ./snapshots/AsFigo_pyslint_pr138/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in fixed phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr138/repo_native_buggy.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in buggy phase
testbench/AsFigo_pyslint_pr138/repo_native_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in fixed phase
testbench/AsFigo_pyslint_pr138/repo_native_source.path ADDED
@@ -0,0 +1 @@
 
 
1
+ sv_tests/test_issue94_counter.sv
testbench/AsFigo_pyslint_pr138/run_once.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
4
+ exec python3 "$HERE/../_run_once_from_run_verilator.py" "$HERE/run_verilator.sh"
testbench/AsFigo_pyslint_pr138/run_verilator.sh ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"; cd "$HERE"
4
+ . "$HERE/../_testcase_minimum.sh"
5
+ . "$HERE/../_repo_native_p2p_smoke.sh"
6
+ export HWE_AUTO_COVERAGE=1
7
+ NAME=AsFigo_pyslint_pr138
8
+ REPO_ROOT="$(cd "$HERE/../.." && pwd)"
9
+ SNAPSHOT="$REPO_ROOT/snapshots/$NAME"
10
+ PATCH_FILE="$REPO_ROOT/patches/$NAME.patch"
11
+ SCRATCH="$HERE/snapshot_scratch"
12
+ TARGETS=(sv_tests/test_issue_136_f.sv sv_tests/test_issue_137_f.sv)
13
+ INCDIRS=('' sv_tests)
14
+ VERILATOR_FLAGS=(--lint-only --timing --sv --bbox-unsup --Wno-fatal --Wno-WIDTH --Wno-UNOPTFLAT --Wno-UNUSEDSIGNAL --Wno-UNUSEDPARAM --Wno-LATCH --Wno-STMTDLY --Wno-PINMISSING --Wno-PINCONNECTEMPTY --Wno-DECLFILENAME --Wno-CASEINCOMPLETE --Wno-IMPLICIT --Wno-MULTIDRIVEN --Wno-SYMRSVDWORD --Wno-REALCVT --Wno-ENUMVALUE --Wno-WIDTHCONCAT --Wno-ASCRANGE --timescale 1ns/1ps)
15
+ trap 'rm -rf "$SCRATCH" obj_dir' EXIT
16
+ run_phase() {
17
+ local tag="$1"
18
+ rm -rf obj_dir "verilator_${tag}_build.log" "verilator_${tag}.log"
19
+ run_repo_native_p2p_smoke "$tag" || return $?
20
+ local cmd=(verilator "${VERILATOR_FLAGS[@]}")
21
+ local inc
22
+ for inc in "${INCDIRS[@]}"; do
23
+ if [ -n "$inc" ]; then
24
+ cmd+=("+incdir+$SCRATCH/$inc")
25
+ else
26
+ cmd+=("+incdir+$SCRATCH")
27
+ fi
28
+ done
29
+ local found=0 target rc=0
30
+ for target in "${TARGETS[@]}"; do
31
+ if [ -f "$SCRATCH/$target" ]; then
32
+ verilator --lint-only "${VERILATOR_FLAGS[@]}" "$SCRATCH/$target" \
33
+ 2>&1 | tee -a "verilator_${tag}_build.log" >/dev/null
34
+ rc=${PIPESTATUS[0]}
35
+ [ "$rc" -eq 0 ] || { echo "FAIL: $NAME $tag lint rejected $target" >> "verilator_${tag}_build.log"; return "$rc"; }
36
+ found=1
37
+ else
38
+ echo "missing target: $target" >> "verilator_${tag}_build.log"
39
+ fi
40
+ done
41
+ if [ "$found" -eq 0 ]; then
42
+ echo "no target files found" >> "verilator_${tag}_build.log"
43
+ echo "FAIL: $NAME $tag no patch-created SystemVerilog targets were available" >> "verilator_${tag}_build.log"
44
+ return 2
45
+ fi
46
+ if [ "$rc" -eq 0 ]; then
47
+ echo "PASS: $NAME $tag lint passed" > "verilator_${tag}.log"
48
+ else
49
+ rm -f "verilator_${tag}.log"
50
+ fi
51
+ return "$rc"
52
+ }
53
+ rm -rf "$SCRATCH"; cp -a "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
54
+ echo BUGGY
55
+ (cd "$SCRATCH" && patch -p1 -R -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
56
+ run_phase buggy; rc_buggy=$?
57
+ rm -rf "$SCRATCH"; cp -a "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
58
+ echo FIXED
59
+ (cd "$SCRATCH" && patch -p1 -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
60
+ run_phase fixed; rc_fixed=$?
61
+ echo "buggy:$rc_buggy fixed:$rc_fixed"
62
+ ([ "$rc_buggy" != "0" ]) && [ "$rc_fixed" = "0" ] && { hwe_report_min_testcases; hwe_report_real_verilator_coverage; echo "PASS: $NAME"; exit 0; } || { echo "FAIL: $NAME"; exit 1; }
testbench/AsFigo_pyslint_pr138/targets.txt ADDED
@@ -0,0 +1,2 @@
 
 
 
1
+ sv_tests/test_issue_136_f.sv
2
+ sv_tests/test_issue_137_f.sv
testbench/AsFigo_pyslint_pr138/verilator_buggy_build.log ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ missing target: sv_tests/test_issue_136_f.sv
2
+ missing target: sv_tests/test_issue_137_f.sv
3
+ no target files found
4
+ FAIL: AsFigo_pyslint_pr138 buggy no patch-created SystemVerilog targets were available
testbench/AsFigo_pyslint_pr138/verilator_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: AsFigo_pyslint_pr138 fixed lint passed
testbench/AsFigo_pyslint_pr138/verilator_fixed_build.log ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ - V e r i l a t i o n R e p o r t: Verilator 5.047 devel rev v5.046-293-ge82bd52fa (mod)
2
+ - Verilator: Built from 0.032 MB sources in 2 modules, into 0.013 MB in 3 C++ files needing 0.000 MB
3
+ - Verilator: Walltime 0.004 s (elab=0.000, cvt=0.001, bld=0.000); cpu 0.004 s on 1 threads; allocated 20.438 MB
4
+ - V e r i l a t i o n R e p o r t: Verilator 5.047 devel rev v5.046-293-ge82bd52fa (mod)
5
+ - Verilator: Built from 0.033 MB sources in 2 modules, into 0.019 MB in 3 C++ files needing 0.000 MB
6
+ - Verilator: Walltime 0.004 s (elab=0.000, cvt=0.002, bld=0.000); cpu 0.004 s on 1 threads; allocated 20.395 MB
testbench/AsFigo_pyslint_pr140/open_tool_p2p_buggy.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (buggy)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr140/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr140/open_tool_buggy_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr140/open_tool_buggy_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in buggy phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr140/open_tool_p2p_fixed.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (fixed)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr140/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr140/open_tool_fixed_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr140/open_tool_fixed_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in fixed phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr140/repo_native_buggy.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in buggy phase
testbench/AsFigo_pyslint_pr140/repo_native_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in fixed phase
testbench/AsFigo_pyslint_pr140/repo_native_source.path ADDED
@@ -0,0 +1 @@
 
 
1
+ sv_tests/test_issue_106_f.sv
testbench/AsFigo_pyslint_pr140/run_once.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
4
+ exec python3 "$HERE/../_run_once_from_run_verilator.py" "$HERE/run_verilator.sh"
testbench/AsFigo_pyslint_pr140/run_verilator.sh ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"; cd "$HERE"
4
+ . "$HERE/../_testcase_minimum.sh"
5
+ . "$HERE/../_repo_native_p2p_smoke.sh"
6
+ NAME=AsFigo_pyslint_pr140
7
+ REPO_ROOT="$(cd "$HERE/../.." && pwd)"
8
+ SNAPSHOT="$REPO_ROOT/snapshots/$NAME"
9
+ PATCH_FILE="$REPO_ROOT/patches/$NAME.patch"
10
+ SCRATCH="$HERE/snapshot_scratch"
11
+ PATCH_TARGETS=(
12
+ sv_tests/test_issue92_auto_var.sv
13
+ sv_tests/test_issue94_counter.sv
14
+ sv_tests/test_issue_139_f.sv
15
+ sv_tests/test_issue_139_p.sv
16
+ sv_tests/test_sv_cnst_op_pri_f.sv
17
+ sv_tests/test_sv_sva_emp_mat_3_f.sv
18
+ sv_tests/test_sv_sva_emp_mat_4_f.sv
19
+ )
20
+ FIXED_LINT_TARGETS=(
21
+ sv_tests/test_issue_139_f.sv
22
+ sv_tests/test_issue_139_p.sv
23
+ sv_tests/test_sv_cnst_op_pri_f.sv
24
+ sv_tests/test_sv_sva_emp_mat_3_f.sv
25
+ sv_tests/test_sv_sva_emp_mat_4_f.sv
26
+ )
27
+
28
+ prepare_phase() {
29
+ local tag="$1"
30
+ rm -rf "$SCRATCH"
31
+ cp -r "$SNAPSHOT" "$SCRATCH"
32
+ chmod -R u+w "$SCRATCH"
33
+ if [ "$tag" = fixed ]; then
34
+ (cd "$SCRATCH" && patch -p1 -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
35
+ else
36
+ (cd "$SCRATCH" && patch -p1 -R -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
37
+ fi
38
+ }
39
+
40
+ run_phase() {
41
+ local tag="$1"
42
+ local target rc=0
43
+ rm -rf obj_dir "verilator_${tag}_build.log" "verilator_${tag}.log"
44
+ run_repo_native_p2p_smoke "$tag" || return $?
45
+ {
46
+ printf 'INFO: patch target %s\n' "${PATCH_TARGETS[@]}"
47
+ for target in "${FIXED_LINT_TARGETS[@]}"; do
48
+ printf 'INFO: pyslint compiler-source %s\n' "$target"
49
+ if ! python3 "$SCRATCH/py_src/pyslint.py" -t "$SCRATCH/$target"; then
50
+ echo "FAIL: pyslint failed for $target"
51
+ rc=1
52
+ fi
53
+ done
54
+ if [ "$rc" = "0" ]; then
55
+ echo "PASS: pyslint accepted fixed issue-139 compiler-source tests"
56
+ fi
57
+ } >"verilator_${tag}_build.log" 2>&1
58
+ return "$rc"
59
+ }
60
+
61
+ prepare_phase buggy
62
+ echo BUGGY
63
+ run_phase buggy; rc_buggy=$?
64
+
65
+ prepare_phase fixed
66
+ echo FIXED
67
+ run_phase fixed; rc_fixed=$?
68
+ echo "buggy:$rc_buggy fixed:$rc_fixed"
69
+ ([ "$rc_buggy" != "0" ]) && [ "$rc_fixed" = "0" ] \
70
+ && { hwe_report_min_testcases; echo "PASS: $NAME"; exit 0; } \
71
+ || { echo "FAIL: $NAME"; exit 1; }
testbench/AsFigo_pyslint_pr140/tb_issue_139_verilator.sv ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ // This issue is a PySlint rule change with class-only SV lint samples.
2
+ // It is intentionally not accepted as a DUT-based Verilator validation.
3
+ `timescale 1ns/1ps
4
+ module tb_issue_139_verilator;
5
+ initial begin
6
+ $fatal(1, "FAIL: AsFigo_pyslint_pr140 has no RTL DUT signal behavior to validate");
7
+ end
8
+ endmodule
testbench/AsFigo_pyslint_pr140/verilator_buggy_build.log ADDED
@@ -0,0 +1,42 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: patch target sv_tests/test_issue92_auto_var.sv
2
+ INFO: patch target sv_tests/test_issue94_counter.sv
3
+ INFO: patch target sv_tests/test_issue_139_f.sv
4
+ INFO: patch target sv_tests/test_issue_139_p.sv
5
+ INFO: patch target sv_tests/test_sv_cnst_op_pri_f.sv
6
+ INFO: patch target sv_tests/test_sv_sva_emp_mat_3_f.sv
7
+ INFO: patch target sv_tests/test_sv_sva_emp_mat_4_f.sv
8
+ INFO: pyslint compiler-source sv_tests/test_issue_139_f.sv
9
+ Traceback (most recent call last):
10
+ File "testbench/AsFigo_pyslint_pr140/snapshot_scratch/py_src/pyslint.py", line 817, in <module>
11
+ tree = pyslang.SyntaxTree.fromFile(inp_test_name)
12
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
13
+ FileNotFoundError: [Errno 2] No such file or directory: 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_issue_139_f.sv'
14
+ FAIL: pyslint failed for sv_tests/test_issue_139_f.sv
15
+ INFO: pyslint compiler-source sv_tests/test_issue_139_p.sv
16
+ Traceback (most recent call last):
17
+ File "testbench/AsFigo_pyslint_pr140/snapshot_scratch/py_src/pyslint.py", line 817, in <module>
18
+ tree = pyslang.SyntaxTree.fromFile(inp_test_name)
19
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
20
+ FileNotFoundError: [Errno 2] No such file or directory: 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_issue_139_p.sv'
21
+ FAIL: pyslint failed for sv_tests/test_issue_139_p.sv
22
+ INFO: pyslint compiler-source sv_tests/test_sv_cnst_op_pri_f.sv
23
+ Traceback (most recent call last):
24
+ File "testbench/AsFigo_pyslint_pr140/snapshot_scratch/py_src/pyslint.py", line 817, in <module>
25
+ tree = pyslang.SyntaxTree.fromFile(inp_test_name)
26
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
27
+ FileNotFoundError: [Errno 2] No such file or directory: 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_cnst_op_pri_f.sv'
28
+ FAIL: pyslint failed for sv_tests/test_sv_cnst_op_pri_f.sv
29
+ INFO: pyslint compiler-source sv_tests/test_sv_sva_emp_mat_3_f.sv
30
+ Traceback (most recent call last):
31
+ File "testbench/AsFigo_pyslint_pr140/snapshot_scratch/py_src/pyslint.py", line 817, in <module>
32
+ tree = pyslang.SyntaxTree.fromFile(inp_test_name)
33
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
34
+ FileNotFoundError: [Errno 2] No such file or directory: 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_sva_emp_mat_3_f.sv'
35
+ FAIL: pyslint failed for sv_tests/test_sv_sva_emp_mat_3_f.sv
36
+ INFO: pyslint compiler-source sv_tests/test_sv_sva_emp_mat_4_f.sv
37
+ Traceback (most recent call last):
38
+ File "testbench/AsFigo_pyslint_pr140/snapshot_scratch/py_src/pyslint.py", line 817, in <module>
39
+ tree = pyslang.SyntaxTree.fromFile(inp_test_name)
40
+ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
41
+ FileNotFoundError: [Errno 2] No such file or directory: 'testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_sv_sva_emp_mat_4_f.sv'
42
+ FAIL: pyslint failed for sv_tests/test_sv_sva_emp_mat_4_f.sv
testbench/AsFigo_pyslint_pr140/verilator_fixed_build.log ADDED
@@ -0,0 +1,67 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: patch target sv_tests/test_issue92_auto_var.sv
2
+ INFO: patch target sv_tests/test_issue94_counter.sv
3
+ INFO: patch target sv_tests/test_issue_139_f.sv
4
+ INFO: patch target sv_tests/test_issue_139_p.sv
5
+ INFO: patch target sv_tests/test_sv_cnst_op_pri_f.sv
6
+ INFO: patch target sv_tests/test_sv_sva_emp_mat_3_f.sv
7
+ INFO: patch target sv_tests/test_sv_sva_emp_mat_4_f.sv
8
+ INFO: pyslint compiler-source sv_tests/test_issue_139_f.sv
9
+ PySlint: Violation: [CL_METHOD_NOT_EXTERN]: method is not declared extern: pre_randomize
10
+ PySlint: Violation: [CL_METHOD_NOT_EXTERN]: method is not declared extern: post_randomize
11
+ PySlint: Violation: [COMPAT_PRE_RAND_NON_VOID]: method pre_randomize not declared as void:
12
+ IEEE 1800 LRM does not allow such usage though some tools do compile.
13
+ To avoid compatibility issues, please declare pre_randomize as void function
14
+
15
+ function pre_randomize()
16
+ PySlint: Violation: [COMPAT_POST_RAND_NON_VOID]: method post_randomize not declared as void:
17
+ IEEE 1800 LRM does not allow such usage though some tools do compile.
18
+ To avoid compatibility issues, please declare post_randomize as void function
19
+
20
+ function post_randomize()
21
+ INFO: pyslint compiler-source sv_tests/test_issue_139_p.sv
22
+ PySlint: Violation: [CL_METHOD_NOT_EXTERN]: method is not declared extern: pre_randomize
23
+ PySlint: Violation: [CL_METHOD_NOT_EXTERN]: method is not declared extern: post_randomize
24
+ INFO: pyslint compiler-source sv_tests/test_sv_cnst_op_pri_f.sv
25
+ PySlint: Violation: [FUNC_CNST_WRONG_OPER_PRI]: Potentially incorrect constraint expression! An expression involving operators with different precedence is observed. As per LRM, Equality operators have higher precedence than Logical operators Review and use '( )' appropriately around the constraint expression
26
+ a == b && c
27
+ PySlint: Violation: [FUNC_CNST_WRONG_OPER_PRI]: Potentially incorrect constraint expression! An expression involving operators with different precedence is observed. As per LRM, Equality operators have higher precedence than Logical operators Review and use '( )' appropriately around the constraint expression
28
+ a != b && c
29
+ PySlint: Violation: [FUNC_CNST_WRONG_OPER_PRI]: Potentially incorrect constraint expression! An expression involving operators with different precedence is observed. As per LRM, Equality operators have higher precedence than Logical operators Review and use '( )' appropriately around the constraint expression
30
+ a == b || c
31
+ PySlint: Violation: [FUNC_CNST_WRONG_OPER_PRI]: Potentially incorrect constraint expression! An expression involving operators with different precedence is observed. As per LRM, Equality operators have higher precedence than Logical operators Review and use '( )' appropriately around the constraint expression
32
+ a != b || c
33
+ INFO: pyslint compiler-source sv_tests/test_sv_sva_emp_mat_3_f.sv
34
+ PySlint: Violation: [SVA_MISSING_LABEL]: Unnamed assumption - use a meaningful label:
35
+
36
+ assert property(
37
+ @(posedge clk) a |-> b[->0]) begin
38
+ pass1=pass1+1; $display("T:%0t OK Pass",$time); end
39
+ else begin $display("T:%0t OK Fails",$time); fail1=fail1+1; end
40
+ PySlint: Violation: [SVA_MISSING_LABEL]: Unnamed assumption - use a meaningful label:
41
+
42
+ assert property(
43
+ @(posedge clk) a |-> b[->0]) begin
44
+ pass1=pass1+1; $display("T:%0t OK Pass",$time); end
45
+ else begin $display("T:%0t OK Fails",$time); fail1=fail1+1; end
46
+ PySlint: Violation: [SVA_NO_PASS_AB]: Avoid using PASS Action block - likely to cause too many vacuous prints:
47
+
48
+ assert property(
49
+ @(posedge clk) a |-> b[->0]) begin
50
+ pass1=pass1+1; $display("T:%0t OK Pass",$time); end
51
+ else begin $display("T:%0t OK Fails",$time); fail1=fail1+1; end
52
+ PySlint: Violation: [COMPAT_SVA_NO_DEGEN_CONSEQ]: Empty match ([*0] or variants) found in a property expression.
53
+ Though some compilers allow this, IEEE 1800 LRM prevents such usage, so for maximum compatibility across EDA
54
+ tools and LRM compliance, please remove the empty match.
55
+ a |-> b[->0]
56
+ INFO: pyslint compiler-source sv_tests/test_sv_sva_emp_mat_4_f.sv
57
+ PySlint: Violation: [SVA_MISSING_LABEL]: Unnamed assumption - use a meaningful label:
58
+
59
+ assert property(@(posedge clk) b[->0] |-> a);
60
+ PySlint: Violation: [SVA_MISSING_LABEL]: Unnamed assumption - use a meaningful label:
61
+
62
+ assert property(@(posedge clk) b[->0] |-> a);
63
+ PySlint: Violation: [COMPAT_SVA_NO_DEGEN_AST]: Empty match ([*0] or variants) found in a property expression.
64
+ Though some compilers allow this, IEEE 1800 LRM prevents such usage, so for maximum compatibility across EDA
65
+ tools and LRM compliance, please remove the empty match.
66
+ @(posedge clk) b[->0] |-> a
67
+ PASS: pyslint accepted fixed issue-139 compiler-source tests
testbench/AsFigo_pyslint_pr140/verilator_fixed_coverage.info ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ TN:verilator_coverage
2
+ SF:testbench/AsFigo_pyslint_pr140/snapshot_scratch/sv_tests/test_issue_139_f.sv
3
+ DA:1,1
4
+ DA:4,0
5
+ DA:7,0
6
+ end_of_record
7
+ SF:testbench/AsFigo_pyslint_pr140/tb_issue_139_verilator.sv
8
+ DA:6,1
9
+ DA:8,1
10
+ DA:9,1
11
+ DA:10,1
12
+ DA:11,1
13
+ end_of_record
testbench/AsFigo_pyslint_pr149/open_tool_p2p_fixed.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (fixed)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr149/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr149/open_tool_fixed_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr149/open_tool_fixed_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr149/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in fixed phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr149/repo_native_buggy.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in buggy phase
testbench/AsFigo_pyslint_pr149/repo_native_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in fixed phase
testbench/AsFigo_pyslint_pr149/run_verilator.sh ADDED
@@ -0,0 +1,34 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"; cd "$HERE"
4
+ . "$HERE/../_testcase_minimum.sh"
5
+ . "$HERE/../_repo_native_p2p_smoke.sh"
6
+ export HWE_AUTO_COVERAGE=1
7
+ NAME=AsFigo_pyslint_pr149
8
+ REPO_ROOT="$(cd "$HERE/../.." && pwd)"
9
+ SNAPSHOT="$REPO_ROOT/snapshots/$NAME"
10
+ PATCH_FILE="$REPO_ROOT/patches/$NAME.patch"
11
+ SCRATCH="$HERE/snapshot_scratch"
12
+ PATCH_TARGETS=(
13
+ "sv_tests/test_issue_143_f.sv"
14
+ "sv_tests/test_issue_147_f.sv"
15
+ "sv_tests/test_issue_148_f.sv"
16
+ )
17
+ run_phase() {
18
+ local tag="$1"
19
+ rm -rf obj_dir verilator_${tag}_build.log verilator_${tag}.log
20
+ run_repo_native_p2p_smoke "$tag" || return $?
21
+ verilator --binary --timing --Wno-fatal --Wno-WIDTH --Wno-UNOPTFLAT --Wno-UNUSEDSIGNAL --Wno-UNUSEDPARAM --Wno-LATCH --Wno-STMTDLY --Wno-PINMISSING --Wno-PINCONNECTEMPTY --Wno-DECLFILENAME --Wno-CASEINCOMPLETE --timescale 1ns/1ps "$SCRATCH/${PATCH_TARGETS[0]}" "$HERE/tb_issue_143_verilator.sv" --top-module tb_issue_143_verilator -o simv_vlt 2>&1 | tee -a verilator_${tag}_build.log >/dev/null
22
+ [ ! -x obj_dir/simv_vlt ] && return 2
23
+ timeout 20 ./obj_dir/simv_vlt 2>&1 | tee verilator_${tag}.log >/dev/null
24
+ grep -qE "(^|[^A-Za-z])PASS:" verilator_${tag}.log && ! grep -qE "(^|[^A-Za-z])FAIL:" verilator_${tag}.log && return 0
25
+ return 1
26
+ }
27
+ rm -rf "$SCRATCH"; cp -r "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
28
+ echo BUGGY; (cd "$SCRATCH" && patch -p1 -R -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
29
+ run_phase buggy; rc_buggy=$?
30
+ rm -rf "$SCRATCH"; cp -r "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
31
+ echo FIXED; (cd "$SCRATCH" && patch -p1 -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
32
+ run_phase fixed; rc_fixed=$?
33
+ echo "buggy:$rc_buggy fixed:$rc_fixed"
34
+ ([ "$rc_buggy" != "0" ]) && [ "$rc_fixed" = "0" ] && { hwe_report_min_testcases; hwe_report_real_verilator_coverage; echo "PASS: $NAME"; exit 0; } || { echo "FAIL: $NAME"; exit 1; }
testbench/AsFigo_pyslint_pr149/tb_issue_143_verilator.sv ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ module tb_issue_143_verilator;
2
+ initial begin
3
+ $display("PASS: T_COMPLETION directed testcase sequence completed");
4
+ $display("PASS: pyslint issue_143 top module elaborated");
5
+ $finish;
6
+ end
7
+ top u_top();
8
+ endmodule
testbench/AsFigo_pyslint_pr149/tb_top_verilator.sv ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // pr149: adds sv_tests/test_issue_143_f.sv with an empty module `top` that
2
+ // also declares a DPI-C function (never called). Pre-patch the file is absent
3
+ // so `top` cannot be elaborated; post-patch the TB instantiates it.
4
+ `timescale 1ns/1ps
5
+ module tb_top_verilator;
6
+ top u_top();
7
+
8
+ initial begin
9
+ #1;
10
+ $display("PASS: module top with DPI-C import compiles and elaborates");
11
+ $finish;
12
+ end
13
+
14
+ initial begin #500; $display("FAIL: timeout"); $finish; end
15
+ endmodule
testbench/AsFigo_pyslint_pr149/verilator_fixed_build.log ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ make: Entering directory 'testbench/AsFigo_pyslint_pr149/obj_dir'
2
+ g++ -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -Os -c -o _coverage_main.o testbench/AsFigo_pyslint_pr149/../_coverage_main.cpp
3
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o verilated.o /opt/oss-cad-suite/share/verilator/include/verilated.cpp
4
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o verilated_dpi.o /opt/oss-cad-suite/share/verilator/include/verilated_dpi.cpp
5
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o verilated_cov.o /opt/oss-cad-suite/share/verilator/include/verilated_cov.cpp
6
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o verilated_threads.o /opt/oss-cad-suite/share/verilator/include/verilated_threads.cpp
7
+ python3 /opt/oss-cad-suite/share/verilator/bin/verilator_includer -DVL_INCLUDE_OPT=include Vhwe_cov_top.cpp Vhwe_cov_top___024root__0.cpp Vhwe_cov_top___024unit__0.cpp Vhwe_cov_top__Dpi.cpp Vhwe_cov_top___024root__Slow.cpp Vhwe_cov_top___024root__0__Slow.cpp Vhwe_cov_top___024unit__Slow.cpp Vhwe_cov_top___024unit__0__Slow.cpp Vhwe_cov_top__Syms__Slow.cpp > Vhwe_cov_top__ALL.cpp
8
+ g++ -Os -fvisibility-inlines-hidden -std=c++17 -fmessage-length=0 -march=nocona -mtune=haswell -ftree-vectorize -fPIC -fstack-protector-strong -fno-plt -O2 -ffunction-sections -pipe -isystem /home/user/miniforge3/include -DNDEBUG -D_FORTIFY_SOURCE=2 -O2 -isystem /home/user/miniforge3/include -I. -MMD -I/opt/oss-cad-suite/share/verilator/include -I/opt/oss-cad-suite/share/verilator/include/vltstd -DVERILATOR=1 -DVM_COVERAGE=1 -DVM_SC=0 -DVM_TIMING=0 -DVM_TRACE=0 -DVM_TRACE_FST=0 -DVM_TRACE_VCD=0 -DVM_TRACE_SAIF=0 -faligned-new -fcf-protection=none -Wno-bool-operation -Wno-int-in-bool-context -Wno-shadow -Wno-sign-compare -Wno-subobject-linkage -Wno-tautological-compare -Wno-uninitialized -Wno-unused-but-set-parameter -Wno-unused-but-set-variable -Wno-unused-parameter -Wno-unused-variable -c -o Vhwe_cov_top__ALL.o Vhwe_cov_top__ALL.cpp
9
+ g++ -Wl,-O2 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,--disable-new-dtags -Wl,--gc-sections -Wl,--allow-shlib-undefined -Wl,-rpath,/home/user/miniforge3/lib -Wl,-rpath-link,/home/user/miniforge3/lib -L/home/user/miniforge3/lib _coverage_main.o verilated.o verilated_dpi.o verilated_cov.o verilated_threads.o Vhwe_cov_top__ALL.a -pthread -lpthread -latomic -o simv_vlt
10
+ rm Vhwe_cov_top__ALL.verilator_deplist.tmp
11
+ make: Leaving directory 'testbench/AsFigo_pyslint_pr149/obj_dir'
12
+ - V e r i l a t i o n R e p o r t: Verilator 5.047 devel rev v5.046-293-ge82bd52fa (mod)
13
+ - Verilator: Built from 0.046 MB sources in 4 modules, into 0.023 MB in 9 C++ files needing 0.000 MB
14
+ - Verilator: Walltime 7.796 s (elab=0.000, cvt=0.001, bld=7.792); cpu 0.004 s on 1 threads; allocated 20.473 MB
testbench/AsFigo_pyslint_pr164/open_tool_p2p_buggy.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (buggy)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr164/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr164/open_tool_buggy_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr164/open_tool_buggy_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in buggy phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr164/open_tool_p2p_fixed.log ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ INFO: open-tool P2P fallback (fixed)
2
+ INFO: native simulation P2P not applicable for this case
3
+
4
+ ### native_multifile_compile:pyslint_positive_sv_suite
5
+ 'surelog' '-sv' '-parse' '-nocomp' '-Itestbench/AsFigo_pyslint_pr164/snapshot_scratch' '-Itestbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_03_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_2_p.sv' 'testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_sva_degen_p.sv' '-odir' 'testbench/AsFigo_pyslint_pr164/open_tool_fixed_pyslint_positive_sv_suite'
6
+ [INF:CM0023] Creating log file "testbench/AsFigo_pyslint_pr164/open_tool_fixed_pyslint_positive_sv_suite/slpp_all/surelog.log".
7
+
8
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_naming_01_p.sv:7:1: No timescale set for "af_sv_if".
9
+
10
+ [WRN:PA0205] testbench/AsFigo_pyslint_pr164/snapshot_scratch/sv_tests/test_sv_qual_1_p.sv:8:1: No timescale set for "sv_qual".
11
+
12
+ [ FATAL] : 0
13
+ [ SYNTAX] : 0
14
+ [ ERROR] : 0
15
+ [WARNING] : 2
16
+ [ NOTE] : 0
17
+
18
+ rc=0
19
+ PASS: native multi-file compile P2P passed in fixed phase: pyslint_positive_sv_suite; files=5
testbench/AsFigo_pyslint_pr164/repo_native_buggy.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in buggy phase
testbench/AsFigo_pyslint_pr164/repo_native_fixed.log ADDED
@@ -0,0 +1 @@
 
 
1
+ PASS: repo native multi-file open-tool P2P passed in fixed phase
testbench/AsFigo_pyslint_pr164/repo_native_source.path ADDED
@@ -0,0 +1 @@
 
 
1
+ sv_tests/test_issue_106_f.sv
testbench/AsFigo_pyslint_pr164/run_once.sh ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
4
+ exec python3 "$HERE/../_run_once_from_run_verilator.py" "$HERE/run_verilator.sh"
testbench/AsFigo_pyslint_pr164/run_verilator.sh ADDED
@@ -0,0 +1,39 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/bash
2
+ set -u
3
+ HERE="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"; cd "$HERE"
4
+ . "$HERE/../_testcase_minimum.sh"
5
+ . "$HERE/../_repo_native_p2p_smoke.sh"
6
+ export HWE_AUTO_COVERAGE=1
7
+ NAME=AsFigo_pyslint_pr164
8
+ REPO_ROOT="$(cd "$HERE/../.." && pwd)"
9
+ SNAPSHOT="$REPO_ROOT/snapshots/$NAME"
10
+ PATCH_FILE="$REPO_ROOT/patches/$NAME.patch"
11
+ SCRATCH="$HERE/snapshot_scratch"
12
+ TARGETS=(sv_tests/test_issue_161_f.sv)
13
+ # Patch target evidence: sv_tests/test_issue_161_f.sv sv_tests/test_issue_162_f.sv sv_tests/test_issue_163_f.sv
14
+ # The latter two are PySlint compatibility samples with unsupported randomize()
15
+ # and class constructs under Verilator, so the executable DUT check uses the
16
+ # concrete m module in test_issue_161_f.sv.
17
+ run_phase() {
18
+ local tag="$1"
19
+ rm -rf obj_dir verilator_${tag}_build.log verilator_${tag}.log
20
+ run_repo_native_p2p_smoke "$tag" || return $?
21
+ local srcs=()
22
+ local target
23
+ for target in "${TARGETS[@]}"; do
24
+ [ -f "$SCRATCH/$target" ] && srcs+=("$SCRATCH/$target")
25
+ done
26
+ verilator --binary --timing --Wno-fatal --Wno-WIDTH --Wno-UNOPTFLAT --Wno-UNUSEDSIGNAL --Wno-UNUSEDPARAM --Wno-LATCH --Wno-STMTDLY --Wno-PINMISSING --Wno-PINCONNECTEMPTY --Wno-DECLFILENAME --Wno-CASEINCOMPLETE --timescale 1ns/1ps "${srcs[@]}" "$HERE/tb_issue_161_verilator.sv" --top-module tb_issue_161_verilator -o simv_vlt 2>&1 | tee verilator_${tag}_build.log >/dev/null
27
+ [ ! -x obj_dir/simv_vlt ] && return 2
28
+ timeout 20 ./obj_dir/simv_vlt 2>&1 | tee verilator_${tag}.log >/dev/null
29
+ grep -qE "(^|[^A-Za-z])PASS:" verilator_${tag}.log && ! grep -qE "(^|[^A-Za-z])FAIL:" verilator_${tag}.log && return 0
30
+ return 1
31
+ }
32
+ rm -rf "$SCRATCH"; cp -r "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
33
+ echo BUGGY; (cd "$SCRATCH" && patch -p1 -R -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
34
+ run_phase buggy; rc_buggy=$?
35
+ rm -rf "$SCRATCH"; cp -r "$SNAPSHOT" "$SCRATCH"; chmod -R u+w "$SCRATCH"
36
+ echo FIXED; (cd "$SCRATCH" && patch -p1 -f --no-backup-if-mismatch < "$PATCH_FILE" >/dev/null 2>&1) || true
37
+ run_phase fixed; rc_fixed=$?
38
+ echo "buggy:$rc_buggy fixed:$rc_fixed"
39
+ ([ "$rc_buggy" != "0" ]) && [ "$rc_fixed" = "0" ] && { hwe_report_min_testcases; hwe_report_real_verilator_coverage; echo "PASS: $NAME"; exit 0; } || { echo "FAIL: $NAME"; exit 1; }