forked from bespoke-silicon-group/bsg_fakeram
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
34 lines (23 loc) · 746 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
export TOP_DIR :=$(shell git rev-parse --show-toplevel)
export CACTI_BUILD_DIR := $(TOP_DIR)/tools/cacti
CONFIG := $(TOP_DIR)/example_cfgs/freepdk45.cfg
OUT_DIR := $(TOP_DIR)/results
run:
./scripts/run.py $(CONFIG) --output_dir $(OUT_DIR)
view.%:
klayout ./$(OUT_DIR)/$*/$*.lef &
clean:
rm -rf ./$(OUT_DIR)
#=======================================
# TOOLS
#=======================================
tools: $(CACTI_BUILD_DIR)
$(CACTI_BUILD_DIR):
mkdir -p $(@D)
git clone https://github.com/HewlettPackard/Cacti.git $@
cd $@; git checkout 1ffd8dfb10303d306ecd8d215320aea07651e878
cd $@; git apply $(TOP_DIR)/patches/cacti.patch
sh $(TOP_DIR)/patches/nmlimitremoval_patch.sh
cd $@; make -j4
clean_tools:
rm -rf $(CACTI_BUILD_DIR)