From 348e82a5318d8426b2523027390bb86944b9b626 Mon Sep 17 00:00:00 2001 From: John Demme Date: Thu, 19 Dec 2024 01:28:59 +0000 Subject: [PATCH] [PyCDE] Fix cocotb runner Icarus 3.12 doesn't like unterminated lines in command files. --- frontends/PyCDE/src/pycde/testing.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontends/PyCDE/src/pycde/testing.py b/frontends/PyCDE/src/pycde/testing.py index 2dd27935fcfd..19cfe773afc9 100644 --- a/frontends/PyCDE/src/pycde/testing.py +++ b/frontends/PyCDE/src/pycde/testing.py @@ -123,7 +123,7 @@ def extra_compile_args(self, pycde_system: System): # lives easier and create a minimum timescale through the command-line. cmd_file = os.path.join(pycde_system.output_directory, "cmds.f") with open(cmd_file, "w+") as f: - f.write("+timescale+1ns/1ps") + f.write("+timescale+1ns/1ps\n") return [f"-f{cmd_file}"]