From d12fac2ad1f194221f47201d5a69db83f7e24008 Mon Sep 17 00:00:00 2001 From: M0stafaRady Date: Sat, 1 Oct 2022 12:28:52 -0700 Subject: [PATCH] update run script to delete vcs files before test run --- verilog/dv/cocotb/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/verilog/dv/cocotb/run.py b/verilog/dv/cocotb/run.py index 162dbf3d..ac6e28b8 100644 --- a/verilog/dv/cocotb/run.py +++ b/verilog/dv/cocotb/run.py @@ -81,7 +81,7 @@ class RunTest: os.system(f"vcs -cm line -R -diag=sdf:verbose +sdfverbose +neg_tchk -debug_access -full64 -l {self.sim_path}/test.log caravel_top -Mdir={self.sim_path}/csrc -o {self.sim_path}/simv +vpi -P pli.tab -load $(cocotb-config --lib-name-path vpi vcs)") self.passed = search_str(self.full_terminal.name,"Test passed with (0)criticals (0)errors") Path(f'{self.sim_path}/{self.passed}').touch() - + os.system("rm AN.DB/ cm.log results.xml ucli.key -r") def find(self,name, path): for root, dirs, files in os.walk(path): if name in files: