Skip to content

Commit f48448d

Browse files
authored
Merge pull request #29 from efabless/develop
mpw-one-b
2 parents 9ed16cc + 4d78284 commit f48448d

File tree

314 files changed

+5161833
-5429204
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

314 files changed

+5161833
-5429204
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2020 Efabless Corporation
1+
# SPDX-FileCopyrightText: 2020 Efabless Corporation
22
#
33
# Licensed under the Apache License, Version 2.0 (the "License");
44
# you may not use this file except in compliance with the License.
@@ -11,6 +11,7 @@
1111
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
14+
# SPDX-License-Identifier: Apache-2.0
1415

1516
language: minimal
1617

.travisCI/runPrecheck.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2020 Efabless Corporation
2+
# SPDX-FileCopyrightText: 2020 Efabless Corporation
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -12,6 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
# SPDX-License-Identifier: Apache-2.0
1516
export TARGET_PATH=$(pwd)
1617
cd ..
1718
export PDK_ROOT=$(pwd)/pdks

.travisCI/travisBuild.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!/bin/bash
2-
# Copyright 2020 Efabless Corporation
2+
# SPDX-FileCopyrightText: 2020 Efabless Corporation
33
#
44
# Licensed under the Apache License, Version 2.0 (the "License");
55
# you may not use this file except in compliance with the License.
@@ -12,6 +12,7 @@
1212
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
# See the License for the specific language governing permissions and
1414
# limitations under the License.
15+
# SPDX-License-Identifier: Apache-2.0
1516

1617
export TARGET_PATH=$(pwd)
1718
git clone https://github.com/efabless/open_mpw_precheck.git

Makefile

Lines changed: 30 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,20 @@
1-
# cannot commit files larger than 100 MB to GitHub
1+
# SPDX-FileCopyrightText: 2020 Efabless Corporation
2+
#
3+
# Licensed under the Apache License, Version 2.0 (the "License");
4+
# you may not use this file except in compliance with the License.
5+
# You may obtain a copy of the License at
6+
#
7+
# http://www.apache.org/licenses/LICENSE-2.0
8+
#
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS,
11+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
# See the License for the specific language governing permissions and
13+
# limitations under the License.
14+
#
15+
# SPDX-License-Identifier: Apache-2.0
16+
17+
# cannot commit files larger than 100 MB to GitHub
218
FILE_SIZE_LIMIT_MB = 100
319
LARGE_FILES := $(shell find ./gds -type f -name "*.gds")
420
LARGE_FILES += $(shell find . -type f -size +$(FILE_SIZE_LIMIT_MB)M -not -path "./.git/*" -not -path "./gds/*" -not -path "./openlane/*")
@@ -8,14 +24,13 @@ LARGE_FILES_GZ := $(addsuffix .gz, $(LARGE_FILES))
824
ARCHIVES := $(shell find . -type f -name "*.gz")
925
ARCHIVE_SOURCES := $(basename $(ARCHIVES))
1026

11-
1227
# PDK setup configs
1328
THREADS ?= $(shell nproc)
1429
STD_CELL_LIBRARY ?= sky130_fd_sc_hd
1530
SPECIAL_VOLTAGE_LIBRARY ?= sky130_fd_sc_hvl
1631
IO_LIBRARY ?= sky130_fd_io
1732
SKYWATER_COMMIT ?= 3d7617a1acb92ea883539bcf22a632d6361a5de4
18-
OPEN_PDKS_COMMIT ?= b184e85de7629b8c87087a46b79eb45e7f7cd383
33+
OPEN_PDKS_COMMIT ?= 32cdb2097fd9a629c91e8ea33e1f6de08ab25946
1934

2035
.DEFAULT_GOAL := ship
2136
# We need portable GDS_FILE pointers...
@@ -101,6 +116,7 @@ $(PDK_ROOT)/skywater-pdk:
101116
.PHONY: skywater-pdk
102117
skywater-pdk: check-env $(PDK_ROOT)/skywater-pdk
103118
cd $(PDK_ROOT)/skywater-pdk && \
119+
git checkout master && git pull && \
104120
git checkout -qf $(SKYWATER_COMMIT)
105121

106122
.PHONY: skywater-library
@@ -118,6 +134,7 @@ $(PDK_ROOT)/open_pdks:
118134
.PHONY: open_pdks
119135
open_pdks: check-env $(PDK_ROOT)/open_pdks
120136
cd $(PDK_ROOT)/open_pdks && \
137+
git checkout master && git pull && \
121138
git checkout -qf $(OPEN_PDKS_COMMIT)
122139

123140
.PHONY: build-pdk
@@ -134,6 +151,16 @@ build-pdk: check-env $(PDK_ROOT)/open_pdks $(PDK_ROOT)/skywater-pdk
134151
$(MAKE) && \
135152
$(MAKE) install-local
136153

154+
.RECIPE: manifest
155+
manifest:
156+
cd verilog/rtl/ && \
157+
find * -type f ! -name "user_*.v" ! -name "manifest" ! -name "README" ! -name "defines.v" -exec shasum {} \; > manifest && \
158+
cd ../../maglef/ && \
159+
shasum *.mag > manifest && \
160+
cd ../mag/ && \
161+
shasum caravel.mag .magicrc > manifest
162+
163+
137164
check-env:
138165
ifndef PDK_ROOT
139166
$(error PDK_ROOT is undefined, please export it before running make)

README.md

Lines changed: 34 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,25 @@
1+
<!---
2+
# SPDX-FileCopyrightText: 2020 Efabless Corporation
3+
#
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
# You may obtain a copy of the License at
7+
#
8+
# http://www.apache.org/licenses/LICENSE-2.0
9+
#
10+
# Unless required by applicable law or agreed to in writing, software
11+
# distributed under the License is distributed on an "AS IS" BASIS,
12+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
# See the License for the specific language governing permissions and
14+
# limitations under the License.
15+
#
16+
# SPDX-License-Identifier: Apache-2.0
17+
-->
118
# CIIC Harness
219

320
A template SoC for Google SKY130 free shuttles. It is still WIP. The current SoC architecture is given below.
421

5-
<p align=center>
22+
<p align="center">
623
<img src="/doc/ciic_harness.png" width="75%" height="75%">
724
</p>
825

@@ -21,7 +38,7 @@ make uncompress
2138
Then you need to install the open_pdks prerequisite:
2239
- [Magic VLSI Layout Tool](http://opencircuitdesign.com/magic/index.html) is needed to run open_pdks -- version >= 8.3.60*
2340

24-
> \* Note: You can avoid the need for the magic prerequisite by using the openlane docker to do the installation step in open_pdks. This [file](https://github.com/efabless/openlane/blob/develop/travisCI/travisBuild.sh) shows how.
41+
> \* Note: You can avoid the need for the magic prerequisite by using the openlane docker to do the installation step in open_pdks. This could be done by cloning [openlane](https://github.com/efabless/openlane/tree/master) and following the instructions given there to use the Makefile.
2542
2643
Install the required version of the PDK by running the following commands:
2744

@@ -34,14 +51,18 @@ Then, you can learn more about the caravel chip by watching these video:
3451
- Caravel User Project Features -- https://youtu.be/zJhnmilXGPo
3552
- Aboard Caravel -- How to put your design on Caravel? -- https://youtu.be/9QV8SDelURk
3653
- Things to Clarify About Caravel -- What versions to use with Caravel? -- https://youtu.be/-LZ522mxXMw
37-
- You could only use openlane:rc5
54+
- You could only use openlane:rc6
3855
- Make sure you have the commit hashes provided here inside the [Makefile](./Makefile)
3956
## Aboard Caravel:
4057

4158
Your area is the full user_project_wrapper, so feel free to add your project there or create a differnt macro and harden it seperately then insert it into the user_project_wrapper. For example, if your design is analog or you're using a different tool other than OpenLANE.
4259

4360
If you will use OpenLANE to harden your design, go through the instructions in this [README.md][0].
4461

62+
You must copy your synthesized gate-level-netlist for `user_project_wrapper` to `verilog/gl/` and overwrite `user_project_wrapper.v`. Otherwise, you can point to it in [info.yaml](info.yaml).
63+
64+
> Note: If you're using openlane to harden your design, this should happen automatically.
65+
4566
Then, you will need to put your design aboard the Caravel chip. Make sure you have the following:
4667

4768
- [Magic VLSI Layout Tool](http://opencircuitdesign.com/magic/index.html) installed on your machine. We may provide a Dockerized version later.\*
@@ -56,7 +77,7 @@ export PDK_ROOT=<The place where the installed pdk resides. The same PDK_ROOT us
5677
make
5778
```
5879

59-
This should merge the GDSes using magic and you'll end up with your version of `./gds/caravel.gds`. You should expect hundred of thousands of magic DRC violations with the current "development" state of caravel.
80+
This should merge the GDSes using magic and you'll end up with your version of `./gds/caravel.gds`. You should expect ~90 magic DRC violations with the current "development" state of caravel.
6081

6182
## Running Make using OpenLANE Magic
6283

@@ -65,7 +86,7 @@ To use the magic installed inside Openlane to complete the final GDS streaming o
6586
```bash
6687
export PDK_ROOT=<The location where the pdk is installed>
6788
export OPENLANE_ROOT=<the absolute path to the openlane directory cloned or to be cloned>
68-
export IMAGE_NAME=<the openlane image name installed on your machine. Preferably openlane:rc5>
89+
export IMAGE_NAME=<the openlane image name installed on your machine. Preferably openlane:rc6>
6990
export CARAVEL_PATH=$(pwd)
7091
```
7192

@@ -82,7 +103,12 @@ make
82103
exit
83104
```
84105

85-
This should merge the GDSes using magic and you'll end up with your version of `./gds/caravel.gds`. You should expect hundred of thousands of magic DRC violations with the current "development" state of caravel.
106+
This should merge the GDSes using magic and you'll end up with your version of `./gds/caravel.gds`. You should expect ~90 magic DRC violations with the current "development" state of caravel.
107+
108+
109+
## IMPORTANT:
110+
111+
Please make sure to run `make compress` before commiting anything to your repository. Avoid having 2 versions of the gds/user_project_wrapper.gds or gds/caravel.gds one compressed and the other not compressed.
86112

87113
## Required Directory Structure
88114

@@ -110,7 +136,7 @@ The memory map of the management SoC can be found [here](verilog/rtl/README)
110136
This is the user space. It has limited silicon area (TBD, about 3.1mm x 3.8mm) as well as a fixed number of I/O pads (37) and power pads (10). See [the Caravel premliminary datasheet](doc/caravel_datasheet.pdf) for details.
111137
The repository contains a [sample user project](/verilog/rtl/user_proj_example.v) that contains a binary 32-bit up counter. </br>
112138

113-
<p align=center>
139+
<p align="center">
114140
<img src="/doc/counter_32.png" width="50%" height="50%">
115141
</p>
116142

@@ -120,4 +146,4 @@ The firmware running on the Management Area SoC, configures the I/O pads used by
120146
3. Configure the User Project I/O pads as o/p. Use the Chip LA to control the clock source and reset signals and observe the counter value for five clock cylcles: [LA_Test2](verilog/dv/caravel/user_proj_example/la_test2).
121147

122148
[0]: openlane/README.md
123-
[1]: mpw-one-a.md
149+
[1]: mpw-one-b.md

0 commit comments

Comments
 (0)