From 260c0429bde919ce467da86794bb6eb8e003b5ef Mon Sep 17 00:00:00 2001 From: Graham Edgecombe Date: Wed, 6 Dec 2017 08:30:32 +0000 Subject: [PATCH] Store timing report in top.rpt This stops us needing to re-generate it if the design hasn't changed. --- .gitignore | 1 + Makefile | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index d509f16..12bf94d 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ *.blif *.hex *.o +*.rpt /pll.sv !.git* !.mailmap diff --git a/Makefile b/Makefile index dd0f594..561628e 100644 --- a/Makefile +++ b/Makefile @@ -7,6 +7,7 @@ BLIF = $(TOP).blif ASC_SYN = $(TOP)_syn.asc ASC = $(TOP).asc BIN = $(TOP).bin +TIME_RPT = $(TOP).rpt SPEED = hx DEVICE = 8k PACKAGE = ct256 @@ -42,14 +43,17 @@ $(BLIF): $(YS) $(SRC) progmem_syn.hex $(ASC_SYN): $(BLIF) $(PCF) arachne-pnr $(QUIET) -d $(DEVICE) -P $(PACKAGE) -o $@ -p $(PCF) $< +$(TIME_RPT): $(ASC_SYN) $(PCF) + icetime -t -m -d $(SPEED)$(DEVICE) -P $(PACKAGE) -p $(PCF) -c $(FREQ_PLL) -r $@ $< + $(ASC): $(ASC_SYN) progmem_syn.hex progmem.hex icebram progmem_syn.hex progmem.hex < $< > $@ $(BIN): $(ASC) icepack $< $@ -time: $(ASC_SYN) $(PCF) - icetime -t -m -d $(SPEED)$(DEVICE) -P $(PACKAGE) -p $(PCF) -c $(FREQ_PLL) $< +time: $(TIME_RPT) + cat $< stat: $(ASC_SYN) icebox_stat $<