From 0c877a45fb2aa4758256f4abb5bd883fc9209df5 Mon Sep 17 00:00:00 2001 From: Alex Forencich Date: Thu, 4 Aug 2022 13:40:34 -0700 Subject: [PATCH] fpga/build_images.py: update quartus message parsing Signed-off-by: Alex Forencich --- fpga/build_images.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/fpga/build_images.py b/fpga/build_images.py index 6a71e3fa9..9edebfd64 100755 --- a/fpga/build_images.py +++ b/fpga/build_images.py @@ -253,7 +253,9 @@ class QuartusBuild(Build): self.output_file = os.path.join(self.build_dir, "fpga"+self.output_ext) def scan_log_line(self, line): - if line.startswith('quartus_map'): + if line.startswith('quartus_ipgenerate'): + self.phase = "Generating IP" + elif line.startswith('quartus_map') or line.startswith('quartus_syn'): self.phase = "Running synthesis and mapping" elif line.startswith('quartus_fit'): self.synth_done() @@ -263,6 +265,10 @@ class QuartusBuild(Build): elif line.startswith('quartus_asm'): self.phase = "Running assembler" + m = re.search(r"Worst-case setup slack is (\S+)", line) + if m: + self.wns = m.group(1) + class QuartusProBuild(QuartusBuild): def __init__(self, design, build_dir, prefix, output):