Skip to content

Commit

Permalink
Merge pull request #17 from efabless/ol_fix
Browse files Browse the repository at this point in the history
Update Caravel to `mpw-5a`
  • Loading branch information
jeffdi authored Feb 3, 2022
2 parents fc85327 + 38f5a2d commit 8606a48
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 23 deletions.
9 changes: 2 additions & 7 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ CARAVEL_LITE?=1
ifeq ($(CARAVEL_LITE),1)
CARAVEL_NAME := caravel-lite
CARAVEL_REPO := https://github.com/efabless/caravel-lite
CARAVEL_TAG := 'mpw-5'
CARAVEL_TAG := 'mpw-5a'
else
CARAVEL_NAME := caravel
CARAVEL_REPO := https://github.com/efabless/caravel
CARAVEL_TAG := 'mpw-5'
CARAVEL_TAG := 'mpw-5a'
endif

# Include Caravel Makefile Targets
Expand Down Expand Up @@ -110,11 +110,6 @@ run-precheck: check-precheck check-pdk check-caravel
docker run -e INPUT_DIRECTORY=$(INPUT_DIRECTORY) -e PDK_ROOT=$(PDK_ROOT) -v $(PRECHECK_ROOT):$(PRECHECK_ROOT) -v $(INPUT_DIRECTORY):$(INPUT_DIRECTORY) -v $(PDK_ROOT):$(PDK_ROOT) \
-u $(shell id -u $(USER)):$(shell id -g $(USER)) efabless/mpw_precheck:latest bash -c "cd $(PRECHECK_ROOT) ; python3 mpw_precheck.py --pdk_root $(PDK_ROOT) --input_directory $(INPUT_DIRECTORY)"

# Install PDK using OL's Docker Image
.PHONY: pdk-nonnative
pdk-nonnative: skywater-pdk skywater-library skywater-timing open_pdks
docker run --rm -v $(PDK_ROOT):$(PDK_ROOT) -v $(CARAVEL_ROOT):$(CARAVEL_ROOT) -e CARAVEL_ROOT=$(CARAVEL_ROOT) -e PDK_ROOT=$(PDK_ROOT) -u $(shell id -u $(USER)):$(shell id -g $(USER)) efabless/openlane:current sh -c "cd $(CARAVEL_ROOT); make build-pdk; make gen-sources"

# Clean
.PHONY: clean
clean:
Expand Down
17 changes: 1 addition & 16 deletions docs/source/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,7 @@ power supply to the circuit.
Building the PDK
================

You have two options for building the pdk:

- Build the pdk natively.

Make sure you have `Magic VLSI Layout Tool <http://opencircuitdesign.com/magic/index.html>`__ `version 8.3.160 <https://github.com/RTimothyEdwards/magic/tree/8.3.160>`__ installed on your machine before building the pdk.
Make sure you have `Magic VLSI Layout Tool <http://opencircuitdesign.com/magic/index.html>`__ `version 8.3.265 <https://github.com/RTimothyEdwards/magic/tree/8.3.265>`__ installed on your machine before building the pdk.

.. code:: bash
Expand All @@ -145,18 +141,7 @@ Make sure you have `Magic VLSI Layout Tool <http://opencircuitdesign.com/magic/i
make pdk
- Build the pdk using openlane's docker image which has magic installed.

.. code:: bash
# set PDK_ROOT to the path you wish to use for the pdk
export PDK_ROOT=<pdk-installation-path>
# you can optionally specify skywater-pdk and open-pdks commit used
# by setting and exporting SKYWATER_COMMIT and OPEN_PDKS_COMMIT
# if you do not set them, they default to the last verfied commits tested for this project
make pdk-nonnative
Running Full Chip Simulation
============================
Expand Down

0 comments on commit 8606a48

Please sign in to comment.