forked from bespoke-silicon-group/bsg_fakeram
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 685 Bytes
/
Makefile
File metadata and controls
32 lines (22 loc) · 685 Bytes
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
export TOP_DIR :=$(shell git rev-parse --show-toplevel)
export CACTI_BUILD_DIR := $(TOP_DIR)/tools/cacti
CONFIG := $(TOP_DIR)/example_cfgs/freepdk45.cfg
run:
./scripts/run.py $(CONFIG)
view.%:
klayout ./results/$*/$*.lef &
clean:
rm -rf ./results
#=======================================
# 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)