Skip to content

Commit

Permalink
CI: update verilator version
Browse files Browse the repository at this point in the history
Signed-off-by: Kamil Rakoczy <[email protected]>
  • Loading branch information
kamilrakoczy committed Dec 23, 2024
1 parent 978bd1d commit 4ee65d4
Show file tree
Hide file tree
Showing 13 changed files with 21 additions and 20 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/report-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
coverage-report:
name: Coverage report
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
env:
DEBIAN_FRONTEND: "noninteractive"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-openocd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
tests:
name: Run OpenOCD tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-regression-exceptions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
regression-tests:
name: Regression exceptions tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
matrix:
bus: ["axi"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-regression.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
regression-tests:
name: Regression tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
matrix:
bus: ["axi", "ahb"]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-renode.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:
jobs:
tests:
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
fail-fast: false
env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-riscof.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
tests:
name: Run RISCOF tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
fail-fast: false
matrix:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-riscv-dv.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ jobs:
run-tests:
name: Run RISC-V DV tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
needs: [ generate-config, generate-code ]
strategy:
fail-fast: false
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-uarch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
lint:
name: Lint microarchitectural tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
steps:
- name: Setup repository
uses: actions/checkout@v3
Expand Down Expand Up @@ -38,7 +38,7 @@ jobs:
tests:
name: Microarchitectural tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
matrix:
test:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-uvm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
tests:
name: UVM tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
env:
CCACHE_DIR: "/opt/uvm/.cache/"
DEBIAN_FRONTEND: "noninteractive"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-verification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
tests:
name: Verification tests
runs-on: ubuntu-latest
container: ghcr.io/antmicro/cores-veer-el2:latest
container: ghcr.io/antmicro/cores-veer-el2:20241223
strategy:
matrix:
test: ["test_pyuvm"]
Expand Down
8 changes: 4 additions & 4 deletions configs/veer.config
Original file line number Diff line number Diff line change
Expand Up @@ -2607,7 +2607,7 @@ sub dump_parms {#{{{
my $pcnt=0;
my $delim=",";
my $msb;
printf(FILE2 "parameter el2_param_t pt = '{\n");
printf(FILE2 "// parameter el2_param_t pt = '{\n");
foreach my $key (sort keys %$hash) {
$upper=$key;
$upper=~ tr/a-z/A-Z/;
Expand All @@ -2618,11 +2618,11 @@ sub dump_parms {#{{{
$msb=substr($hash->{$key},0,4); # require upper 4b to be 0
if ($msb ne "0000") { die("parameter $upper upper 4b must be 0"); }
}
printf(FILE2 "\t%-22s : %d\'h%-10s $delim\n",$upper,length($hash->{$key}),b2h($hash->{$key}));
printf(FILE2 "// \t%-22s : %d\'h%-10s $delim\n",$upper,length($hash->{$key}),b2h($hash->{$key}));
}
printf(FILE2 "}\n");
printf(FILE2 "// }\n");

printf(FILE2 "// parameter el2_param_t pt = %d'h%s\n",length($bcat),b2h($bcat));
printf(FILE2 "parameter el2_param_t pt = %d'h%s\n",length($bcat),b2h($bcat));

}#}}}

Expand Down
2 changes: 1 addition & 1 deletion tools/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ ifeq ("$(.SHELLSTATUS)", "0")
endif

VERILATOR_SKIP_WARNINGS = $(VERILATOR_NOIMPLICIT) -Wno-TIMESCALEMOD -Wno-ASCRANGE \
-Wno-CASEINCOMPLETE -Wno-INITIALDLY -Wno-WIDTH -Wno-UNOPTFLAT
-Wno-CASEINCOMPLETE -Wno-INITIALDLY -Wno-WIDTH -Wno-UNOPTFLAT -Wno-SIDEEFFECT

# Define test name
TEST = hello_world
Expand Down
9 changes: 5 additions & 4 deletions tools/SiteSpawner/src/sitespawner/gen_coverage_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def obtain_stdout(filename) -> TextIOWrapper | int:
def lcov_merge(input_files: List[str], output_file: str):
"""Invokes lcov tool to add `input_file` into the tracefile.
`output_file` becomes then an aggregate of *.info files."""
lcov_command = ["lcov", "-o", output_file]
lcov_command = ["lcov", "--branch-coverage", "-o", output_file]

for input_file in input_files:
lcov_command += ["-a", input_file]
Expand All @@ -42,7 +42,7 @@ def lcov_genhtml(
log_output_path="lcov_genhtml.log",
):
"""Invokes lcov's genhtml tool to generate source file views for the coverage report."""
command = ["genhtml", "--output-dir", lcov_report_dir, *info_files]
command = ["genhtml", "--branch-coverage", "--output-dir", lcov_report_dir, *info_files]

if not path_prefix:
subprocess.run(
Expand Down Expand Up @@ -86,7 +86,7 @@ def generate_coverage_reports(

for info_file in info_files:
logger.debug(f"Preprocessing {info_file}")
lcov_extract_command = ["lcov", "--extract", info_file, src_pattern, "-o", info_file]
lcov_extract_command = ["lcov", "--branch-coverage", "--extract", info_file, src_pattern, "-o", info_file]

data = parse_infos([str(info_file)])
if len(data.keys()) == 0:
Expand All @@ -110,6 +110,7 @@ def generate_coverage_reports(
if resolved_src_path != resolved_path_prefix:
logger.debug(f"Substituting prefix: {path_prefix} -> {resolved_src_path}")
lcov_extract_command += [
"--branch-coverage",
"--substitute",
f"s|{path_prefix}|{resolved_src_path}|",
]
Expand All @@ -120,7 +121,7 @@ def generate_coverage_reports(
)
if src_remove_pattern is not None:
subprocess.run(
["lcov", "--remove", info_file, *src_remove_pattern, "-o", info_file],
["lcov", "--branch-coverage", "--remove", info_file, *src_remove_pattern, "-o", info_file],
stdout=obtain_stdout(f"{info_file}_remove.log"),
)

Expand Down

0 comments on commit 4ee65d4

Please sign in to comment.