From c4fb441dc6a7f18038e09586b7fd53f3db21c03f Mon Sep 17 00:00:00 2001 From: Zapta Date: Thu, 22 Feb 2024 07:22:09 -0800 Subject: [PATCH] Fixing the apio time command. Before this change, if is invoked multiple time in a raw, the timing information were shown only on the first invocation because the nextpnr target was already satisfied. --- apio/resources/ecp5/SConstruct | 2 +- apio/resources/ice40/SConstruct | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/apio/resources/ecp5/SConstruct b/apio/resources/ecp5/SConstruct index 9a3b2584..0fbe2509 100644 --- a/apio/resources/ecp5/SConstruct +++ b/apio/resources/ecp5/SConstruct @@ -199,8 +199,8 @@ AlwaysBuild(upload) # -- Target time: calculate the time rpt = env.Time(config_out) +AlwaysBuild(rpt) t = env.Alias('time', rpt) -AlwaysBuild(t) # -- Icarus Verilog builders iverilog = Builder( diff --git a/apio/resources/ice40/SConstruct b/apio/resources/ice40/SConstruct index 4d11a521..c1cc2451 100644 --- a/apio/resources/ice40/SConstruct +++ b/apio/resources/ice40/SConstruct @@ -204,8 +204,8 @@ AlwaysBuild(upload) # -- Target time: calculate the time rpt = env.Time(asc) +AlwaysBuild(rpt) t = env.Alias('time', rpt) -AlwaysBuild(t) # -- Icarus Verilog builders iverilog = Builder(