@@ -31,6 +31,10 @@ def parseArgs(args):
31
31
required=True,
32
32
help="Name of the python module.")
33
33
34
+ argparser.add_argument("--waves",
35
+ action="store_true",
36
+ help="Enable waveform dumping.")
37
+
34
38
argparser.add_argument(
35
39
"--pythonFolders",
36
40
type=str,
@@ -82,7 +86,7 @@ class Icarus(csim.Icarus):
82
86
# lives easier and create a minimum timescale through the command-line.
83
87
cmd_file = os.path.join(objDir, "cmds.f")
84
88
with open(cmd_file, "w+") as f:
85
- f.write("+timescale+1ns/1ps \n")
89
+ f.write("+timescale+1ns/100ps \n")
86
90
87
91
self.compile_args.extend([
88
92
f"-f{cmd_file}",
@@ -117,7 +121,7 @@ class Questa(csim.Questa):
117
121
# lives easier and create a minimum timescale through the command-line.
118
122
cmd_file = os.path.join(objDir, "cmds.f")
119
123
with open(cmd_file, "w+") as f:
120
- f.write("+timescale+1ns/1ps ")
124
+ f.write("+timescale+1ns/100ps ")
121
125
122
126
self.gui = gui
123
127
self.extra_compile_args = ["-f", f"{cmd_file}"]
@@ -151,6 +155,7 @@ def main():
151
155
"verilog_sources": sources,
152
156
"python_search": [f.strip() for f in args.pythonFolders.split(",")],
153
157
"work_dir": objDir,
158
+ "waves": args.waves,
154
159
}
155
160
try:
156
161
if args.simulator == "icarus":
0 commit comments