blob: 96798581050f3cb5c3f6e40ecf49131240537b8b [file] [log] [blame] [view]
Mohamed Kassem49a4ff62020-10-14 04:56:27 -07001# CIIC Harness
shalan0d14e6e2020-08-31 16:50:48 +02002
3A template SoC for Google SKY130 free shuttles. It is still WIP. The current SoC architecture is given below.
4
5<p align=”center”>
Mohamed Shalan12a9a1d2020-09-01 18:03:17 +02006<img src="/doc/ciic_harness.png" width="75%" height="75%">
shalan0d14e6e2020-08-31 16:50:48 +02007</p>
8
agorararmard7d6fadb2020-11-25 20:23:20 +02009## Getting Started:
10
11Start by cloning the repo and uncompressing the files.
12```bash
13git clone https://github.com/efabless/caravel.git
14cd caravel
15make uncompress
16```
17
agorararmard212cd822020-11-26 22:40:17 +020018Install the required version of the PDK by running the following commands:
19
20```bash
21export PDK_ROOT=<The place where you want to install the pdk>
22make pdk
23```
24
agorararmard7d6fadb2020-11-25 20:23:20 +020025Then, you can learn more about the caravel chip by watching these video:
26- Caravel User Project Features -- https://youtu.be/zJhnmilXGPo
27- Aboard Caravel -- How to put your design on Caravel? -- https://youtu.be/9QV8SDelURk
28- Things to Clarify About Caravel -- What versions to use with Caravel? -- https://youtu.be/-LZ522mxXMw
29
agorararmarddc723a62020-11-26 20:00:29 +020030## Aboard Caravel:
agorararmarddc723a62020-11-26 20:00:29 +020031
agorararmarde2bdaef2020-11-27 16:43:22 +020032Your 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.
agorararmarddc723a62020-11-26 20:00:29 +020033
34If you will use OpenLANE to harden your design, go through the instructions in this [README.md][0].
35
agorararmarde2bdaef2020-11-27 16:43:22 +020036Then, you will need to put your design aboard the Caravel chip. Make sure you have the following:
agorararmarddc723a62020-11-26 20:00:29 +020037
38- Magic installed on your machine. We may provide a Dockerized version later.
agorararmarde2bdaef2020-11-27 16:43:22 +020039- You have your user_project_wrapper.gds under `./gds/` in the Caravel directory.
agorararmarddc723a62020-11-26 20:00:29 +020040
41Run the following command:
42
43```bash
agorararmard212cd822020-11-26 22:40:17 +020044export PDK_ROOT=<The place where the installed pdk resides. The same PDK_ROOT used in the pdk installation step>
agorararmarddc723a62020-11-26 20:00:29 +020045make
46```
47
agorararmarde2bdaef2020-11-27 16:43:22 +020048This 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.
agorararmarddc723a62020-11-26 20:00:29 +020049
shalan0d14e6e2020-08-31 16:50:48 +020050## Managment SoC
thesourcerer80a6a4472020-10-20 13:31:24 +020051The managment SoC runs firmware that can be used to:
agorararmarddc723a62020-11-26 20:00:29 +020052- Configure User Project I/O pads
53- Observe and control User Project signals (through on-chip logic analyzer probes)
54- Control the User Project power supply
shalan0d14e6e2020-08-31 16:50:48 +020055
Mohamed Shalan4f756162020-11-18 15:25:22 +020056The memory map of the management SoC can be found [here](verilog/rtl/README)
shalan0d14e6e2020-08-31 16:50:48 +020057
agorararmarddc723a62020-11-26 20:00:29 +020058## User Project Area
Mohamed Shalan4f756162020-11-18 15:25:22 +020059This 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.
agorararmarddc723a62020-11-26 20:00:29 +020060The repository contains a [sample user project](/verilog/rtl/user_proj_example.v) that contains a binary 32-bit up counter. </br>
shalan0d14e6e2020-08-31 16:50:48 +020061
62<p align=”center”>
Mohamed Shalan49fc4892020-08-31 16:56:48 +020063<img src="/doc/counter_32.png" width="50%" height="50%">
shalan0d14e6e2020-08-31 16:50:48 +020064</p>
65
66The firmware running on the Management Area SoC, configures the I/O pads used by the counter and uses the logic probes to observe/control the counter. Three firmware examples are provided:
agorararmarddc723a62020-11-26 20:00:29 +0200671. Configure the User Project I/O pads as o/p. Observe the counter value in the testbench: [IO_Ports Test](verilog/dv/caravel/user_proj_example/io_ports).
682. Configure the User Project I/O pads as o/p. Use the Chip LA to load the counter and observe the o/p till it reaches 500: [LA_Test1](verilog/dv/caravel/user_proj_example/la_test1).
693. 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).
70
71[0]: openlane/README.md