From e53fa5c51f37937c83df3b004693552f59015c90 Mon Sep 17 00:00:00 2001 From: Harrison Liew Date: Thu, 2 Feb 2023 19:11:17 -0800 Subject: [PATCH] -top should be optional (#34) --- hammer/sim/vcs/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hammer/sim/vcs/__init__.py b/hammer/sim/vcs/__init__.py index 5da03e1..8ac8a67 100644 --- a/hammer/sim/vcs/__init__.py +++ b/hammer/sim/vcs/__init__.py @@ -207,7 +207,8 @@ def run_vcs(self) -> bool: args.extend(["+delay_mode_zero"]) - args.extend(["-top", tb_name]) + if tb_name != "": + args.extend(["-top", tb_name]) args.extend(['-o', self.simulator_executable_path])