2022-01-30 23:34:56 +00:00
|
|
|
#
|
|
|
|
# Makefile for synthesis
|
|
|
|
#
|
|
|
|
NAME := synth
|
|
|
|
|
2022-02-09 21:06:42 +00:00
|
|
|
# defaults
|
|
|
|
export DESIGN ?= wallypipelinedcore
|
|
|
|
export FREQ ?= 500
|
2022-02-09 21:18:49 +00:00
|
|
|
export CONFIG ?= rv32e
|
2022-02-09 22:06:27 +00:00
|
|
|
export TECH ?= 130
|
2022-02-09 21:06:42 +00:00
|
|
|
|
|
|
|
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
|
2022-01-30 23:34:56 +00:00
|
|
|
|
|
|
|
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/
|
2022-02-09 21:06:42 +00:00
|
|
|
@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
|
2022-01-30 23:34:56 +00:00
|
|
|
|
|
|
|
clean:
|
2022-02-09 21:18:49 +00:00
|
|
|
rm -rf alib-52 WORK analyzed $(NAME).out
|
2022-01-30 23:34:56 +00:00
|
|
|
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
|
2022-01-30 23:34:56 +00:00
|
|
|
|
|
|
|
|
|
|
|
|