cvw/synthDC/Makefile

44 lines
914 B
Makefile
Raw Normal View History

#
# Makefile for synthesis
#
NAME := synth
# defaults
export DESIGN ?= wallypipelinedcore
export FREQ ?= 500
2022-02-09 21:18:49 +00:00
export CONFIG ?= rv32e
export TECH ?= sky130
time := $(shell date +%F-%H-%M)
hash := $(shell git rev-parse --short HEAD)
2022-02-09 22:06:27 +00:00
export OUTPUTDIR := runs/$(DESIGN)_$(CONFIG)_$(TECH)nm_$(FREQ)_MHz_$(time)_$(hash)
2022-02-10 00:42:48 +00:00
export SAIFPOWER ?= 0
default:
@echo "Basic synthesis procedure for OSU/HMC/UNLV:"
@echo " adapt Makefile to your liking..."
@echo
synth:
@echo "DC Synthesis"
2022-02-09 21:18:49 +00:00
@mkdir -p hdl/
@mkdir -p $(OUTPUTDIR)
@mkdir -p $(OUTPUTDIR)/reports
@mkdir -p $(OUTPUTDIR)/mapped
@mkdir -p $(OUTPUTDIR)/unmapped
2022-02-10 00:42:48 +00:00
ifeq ($(SAIFPOWER), 1)
cp -f ../pipelined/regression/power.saif .
endif
2022-02-09 21:18:49 +00:00
dc_shell-xg-t -64bit -f scripts/$(NAME).tcl | tee $(OUTPUTDIR)/$(NAME).out
clean:
2022-02-09 21:18:49 +00:00
rm -rf alib-52 WORK analyzed $(NAME).out
rm -f hdl/*
rm -f default.svf
rm -f command.log
rm -f filenames*.log
2022-02-10 00:42:48 +00:00
rm -f power.saif