Skip to content

Commit

Permalink
Makefile cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kareefardi committed Aug 20, 2023
1 parent c668da7 commit 2ba776f
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,6 @@ check_dependencies:
export CUP_ROOT?=$(shell pwd)
export TIMING_ROOT?=$(shell pwd)/dependencies/timing-scripts
export PROJECT_ROOT?=$(CUP_ROOT)
$(info project_root $(PROJECT_ROOT))
$(info cup_root $(CUP_ROOT))
timing-scripts-repo=https://github.com/efabless/timing-scripts.git

$(TIMING_ROOT):
Expand All @@ -322,24 +320,24 @@ setup-timing-scripts: $(TIMING_ROOT)
@#( cd $(TIMING_ROOT) && git fetch && git checkout $(MPW_TAG); )

.PHONY: setup-cocotb
setup-cocotb:
@pip install caravel-cocotb==1.0.0
setup-cocotb:
@pip install caravel-cocotb==1.0.0
@(python3 $(PROJECT_ROOT)/verilog/dv/setup-cocotb.py $(CARAVEL_ROOT) $(MCW_ROOT) $(PDK_ROOT) $(PDK) $(PROJECT_ROOT))
@docker pull efabless/dv:latest
@docker pull efabless/dv:cocotb

.PHONY: cocotb-verify-rtl
cocotb-verify-rtl:
cocotb-verify-rtl:
@(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -tl counter_tests/counter_tests.yaml -v )

.PHONY: cocotb-verify-gl
cocotb-verify-gl:
cocotb-verify-gl:
@(cd $(PROJECT_ROOT)/verilog/dv/cocotb && caravel_cocotb -tl counter_tests/counter_tests_gl.yaml -v -verbosity quiet)

./verilog/gl/user_project_wrapper.v:
$(error you don't have $@)

./env/spef-mapping.tcl:
./env/spef-mapping.tcl:
@echo "run the following:"
@echo "make extract-parasitics"
@echo "make create-spef-mapping"
Expand Down Expand Up @@ -388,7 +386,7 @@ extract-parasitics: ./verilog/gl/user_project_wrapper.v
@$(MAKE) -C $(TIMING_ROOT) -f $(TIMING_ROOT)/timing.mk rcx-user_project_wrapper
@cat ./tmp-macros-list
@rm ./tmp-macros-list

.PHONY: caravel-sta
caravel-sta: ./env/spef-mapping.tcl
@$(MAKE) -C $(TIMING_ROOT) -f $(TIMING_ROOT)/timing.mk caravel-timing-typ -j3
Expand All @@ -401,7 +399,7 @@ caravel-sta: ./env/spef-mapping.tcl
| xargs -I {} bash -c "head -n7 {} | tail -n1"
@echo =================================================================================================
@echo "You can find results for all corners in $(CUP_ROOT)/signoff/caravel/openlane-signoff/timing/"
@echo "Check summary.log of a specific corner to point to reports with reg2reg violations"
@echo "Check summary.log of a specific corner to point to reports with reg2reg violations"
@echo "Cap and slew violations are inside summary.log file itself"

blocks=$(shell cd $(PROJECT_ROOT)/openlane && find * -maxdepth 0 -type d)
Expand Down

0 comments on commit 2ba776f

Please sign in to comment.