[RTL Sim] Add '--assert' to verilator compile

Previously, verilator was ignoring asserts in SystemVerilog. As a result, some
tests were passing when they should have failed.
This commit is contained in:
John Demme 2021-02-15 18:19:06 -08:00
parent 71ce0eb3b4
commit c17eff5891
1 changed files with 1 additions and 1 deletions

View File

@ -103,7 +103,7 @@ class Verilator:
self.ldPaths = ":".join([os.path.dirname(x) for x in dpiLibs])
return subprocess.run([self.verilator, "--cc", "--top-module",
self.top, "-sv", "--build", "--exe",
"--Mdir", self.ObjDir] + sources)
"--Mdir", self.ObjDir, "--assert"] + sources)
def run(self, cycles, args):
exe = os.path.join(self.ObjDir, "V" + self.top)