Skip to content

Commit

Permalink
correct position of negdeglay switch for vcs
Browse files Browse the repository at this point in the history
  • Loading branch information
M0stafaRady authored Dec 6, 2023
1 parent 9ee537c commit fac62a0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cocotb/caravel_cocotb/scripts/verify_cocotb/RunTest.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,11 +190,11 @@ def write_vcs_includes_file(self):

def vcs_compile(self):
macros = " +define+" + " +define+".join(self.test.macros)
vlogan_cmd = f"cd {self.test.compilation_dir}; vlogan -full64 -negdelay -sverilog +error+30 {self.paths.CARAVEL_VERILOG_PATH}/rtl/toplevel_cocotb.v {self.vcs_dirs} {macros} -l {self.test.compilation_dir}/analysis.log -o {self.test.compilation_dir} "
vlogan_cmd = f"cd {self.test.compilation_dir}; vlogan -full64 -sverilog +error+30 {self.paths.CARAVEL_VERILOG_PATH}/rtl/toplevel_cocotb.v {self.vcs_dirs} {macros} -l {self.test.compilation_dir}/analysis.log -o {self.test.compilation_dir} "
self.run_command_write_to_file(vlogan_cmd, self.test.compilation_log, self.logger, quiet=False if self.args.verbosity == "debug" else True)
lint = "+lint=all" if self.args.lint else ""
ignored_errors = " -error=noZMMCM "
vcs_cmd = f"cd {self.test.compilation_dir}; vcs {lint} {self.vcs_coverage_command} {ignored_errors}-debug_access+all +error+50 +vcs+loopreport+1000000 -diag=sdf:verbose +sdfverbose +neg_tchk -debug_access -full64 -l {self.test.compilation_dir}/test_compilation.log caravel_top -Mdir={self.test.compilation_dir}/csrc -o {self.test.compilation_dir}/simv +vpi -P pli.tab -load $(cocotb-config --lib-name-path vpi vcs)"
vcs_cmd = f"cd {self.test.compilation_dir}; vcs {lint} -negdelay {self.vcs_coverage_command} {ignored_errors}-debug_access+all +error+50 +vcs+loopreport+1000000 -diag=sdf:verbose +sdfverbose +neg_tchk -debug_access -full64 -l {self.test.compilation_dir}/test_compilation.log caravel_top -Mdir={self.test.compilation_dir}/csrc -o {self.test.compilation_dir}/simv +vpi -P pli.tab -load $(cocotb-config --lib-name-path vpi vcs)"
self.run_command_write_to_file(
vcs_cmd,
self.test.compilation_log,
Expand Down

0 comments on commit fac62a0

Please sign in to comment.