Skip to content

Commit

Permalink
Remove VeeR asserts from simulation builds
Browse files Browse the repository at this point in the history
  • Loading branch information
robertszczepanski committed Sep 4, 2023
1 parent 9cbc640 commit dcaa6a2
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions generators/veer-config
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ templ = """/*
:incdirs: {3}
:top_module: {4}
:tags: {5}
:timeout": 1000
:timeout: 1000
:results_group: cores
:compatible-runners: {6}
:type: {7}
Expand Down Expand Up @@ -86,8 +86,13 @@ for v in variants:
print("VeeR configuration failed!")
exit(ret.returncode)

# Setup common VeeR sources
sources = ""
# Insert common configuration header before common VeeR sources
common_defines = os.path.abspath(
os.path.join(build_dir, "common_defines.vh"))
sources += common_defines + " "

# Setup common VeeR sources
for (dirpath, dirnames, filenames) in os.walk(os.path.join(third_party_dir,
"cores", name,
"design")):
Expand All @@ -113,11 +118,10 @@ for v in variants:
extra_args += " -CFLAGS -I" + build_dir
extra_args += " -CFLAGS -I" + include_dir
extra_args += " -CFLAGS -I" + testbench_dir
extra_args += " --trace --Wno-fatal"
extra_args += " -Wno-WIDTH"

# Insert common configuration header before common VeeR sources
sources = os.path.abspath(
os.path.join(build_dir, "common_defines.vh")) + " " + sources
with open(common_defines, 'a') as cdf:
cdf.write("`undef RV_ASSERT_ON")

# Insert VeeR includes before other sources
for (dirpath, dirnames,
Expand Down

0 comments on commit dcaa6a2

Please sign in to comment.