update verify_cocotb.py to remove vcs generate files

This commit is contained in:
M0stafaRady 2022-10-06 11:18:48 -07:00
parent 4f483adb36
commit 3eb0b11380
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ class RunTest:
os.system(f"vcs {coverage_command} -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)") os.system(f"vcs {coverage_command} -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") self.passed = search_str(self.full_terminal.name,"Test passed with (0)criticals (0)errors")
Path(f'{self.sim_path}/{self.passed}').touch() Path(f'{self.sim_path}/{self.passed}').touch()
# os.system("rm AN.DB/ cm.log results.xml ucli.key -rf") os.system("rm AN.DB/ cm.log results.xml ucli.key -rf")
def find(self,name, path): def find(self,name, path):
for root, dirs, files in os.walk(path): for root, dirs, files in os.walk(path):