Tests: Reduce peak memory use of UVM tests (#7648)

This commit is contained in:
Geza Lore 2026-05-24 00:36:25 +01:00 committed by GitHub
parent 7935321b25
commit adddec6547
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 30 additions and 16 deletions

View File

@ -1687,8 +1687,9 @@ class VlTest:
return VlTest._cached_aslr_off
@property
def build_jobs(self) -> str:
return "--build-jobs " + str(Args.driver_build_jobs_n)
def build_jobs_groups(self) -> str:
return "--build-jobs " + str(Args.driver_build_jobs_n) + " --output-groups " + str(
max(6, Args.driver_build_jobs_n))
@property
def driver_verilator_flags(self) -> list:

View File

@ -17,7 +17,11 @@ if re.search(r'clang', test.cxx_version):
test.skip("uvm_regex.cc from upstream has clang warnings")
test.compile(verilator_flags2=[
"--binary", test.build_jobs, "--vpi", "+define+T_V2017_1_0", "+incdir+t/uvm/v2017_1_0",
"--binary",
test.build_jobs_groups,
"--vpi",
"+define+T_V2017_1_0",
"+incdir+t/uvm/v2017_1_0", #
test.pli_filename
])

View File

@ -17,7 +17,11 @@ if re.search(r'clang', test.cxx_version):
test.skip("uvm_regex.cc from upstream has clang warnings")
test.compile(verilator_flags2=[
"--binary", test.build_jobs, "--vpi", "+define+T_V2020_3_1", "+incdir+t/uvm/v2020_3_1",
"--binary",
test.build_jobs_groups,
"--vpi",
"+define+T_V2020_3_1",
"+incdir+t/uvm/v2020_3_1", #
test.pli_filename
])

View File

@ -19,7 +19,7 @@ if test.have_dev_gcov:
test.compile(v_flags2=[
"--binary",
test.build_jobs,
test.build_jobs_groups,
"--vpi",
"--CFLAGS -O0",
"-Wall",

View File

@ -18,7 +18,7 @@ if test.have_dev_gcov:
test.compile(v_flags2=[
"--binary",
test.build_jobs,
test.build_jobs_groups,
"--CFLAGS -O0",
"-Wall",
"+incdir+t/uvm", #

View File

@ -19,7 +19,7 @@ if test.have_dev_gcov:
test.compile(v_flags2=[
"--binary",
test.build_jobs,
test.build_jobs_groups,
"--vpi",
"--CFLAGS -O0",
"-Wall",

View File

@ -18,7 +18,7 @@ if test.have_dev_gcov:
test.compile(v_flags2=[
"--binary",
test.build_jobs,
test.build_jobs_groups,
"--CFLAGS -O0",
"-Wall",
"+incdir+t/uvm", #

View File

@ -11,14 +11,19 @@ import vltest_bootstrap
test.scenarios('simulator')
test.compile(make_top_shell=False,
make_main=False,
make_pli=True,
verilator_flags2=[
"+define+VERILATOR_COMMENTS --binary --vpi", test.build_jobs, "--CFLAGS -O0",
test.pli_filename
],
v_flags2=["+define+USE_VPI_NOT_DPI"])
test.compile(
make_top_shell=False,
make_main=False,
make_pli=True,
verilator_flags2=[
"+define+VERILATOR_COMMENTS", #
"--binary",
"--vpi",
test.build_jobs_groups,
"--CFLAGS -O0",
test.pli_filename
],
v_flags2=["+define+USE_VPI_NOT_DPI"])
test.execute(xrun_flags2=["+define+USE_VPI_NOT_DPI"], use_libvpi=True, check_finished=True)