Skip to content

Commit

Permalink
[DOC] Update references to mpw-one-b
Browse files Browse the repository at this point in the history
  • Loading branch information
agorararmard committed Dec 14, 2020
1 parent 3cff2aa commit e4ffba6
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 23 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ Then, you can learn more about the caravel chip by watching these video:
- Caravel User Project Features -- https://youtu.be/zJhnmilXGPo
- Aboard Caravel -- How to put your design on Caravel? -- https://youtu.be/9QV8SDelURk
- Things to Clarify About Caravel -- What versions to use with Caravel? -- https://youtu.be/-LZ522mxXMw
- You could only use openlane:rc5
- You could only use openlane:rc6
- Make sure you have the commit hashes provided here inside the [Makefile](./Makefile)
## Aboard Caravel:

Expand All @@ -61,7 +61,7 @@ If you will use OpenLANE to harden your design, go through the instructions in t

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).

> Note: If you're using openlane to harden your design, you should find the synthesized gate-level-netlist here: `openlane/user_project_wrapper/runs/user_project_wrapper/results/synthesis/user_project_wrapper.synthesis.v`.
> Note: If you're using openlane to harden your design, this should happen automatically.
Then, you will need to put your design aboard the Caravel chip. Make sure you have the following:

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

Expand Down Expand Up @@ -141,4 +141,4 @@ The firmware running on the Management Area SoC, configures the I/O pads used by
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).

[0]: openlane/README.md
[1]: mpw-one-a.md
[1]: mpw-one-b.md
14 changes: 7 additions & 7 deletions mpw-one-a.md → mpw-one-b.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,18 +38,18 @@ make timing

## open_pdks:

Please stick to the [mpw-one-a](https://github.com/RTimothyEdwards/open_pdks/tree/mpw-one-a) tag.
Please stick to the [1.0.85](https://github.com/RTimothyEdwards/open_pdks/tree/1.0.85) tag.
```
git clone https://github.com/RTimothyEdwards/open_pdks.git -b mpw-one-a
git clone https://github.com/RTimothyEdwards/open_pdks.git -b 1.0.85
```

## OpenLane:

Please stick to the [mpw-one-a](https://github.com/efabless/openlane/tree/mpw-one-a) tag.
Please stick to the [mpw-one-b](https://github.com/efabless/openlane/tree/mpw-one-b) tag.
```
git clone https://github.com/efabless/openlane.git -b mpw-one-a
git clone https://github.com/efabless/openlane.git -b mpw-one-b
```
Note that the `mpw-one-a` tag is equivalent to the `rc5` tag. Also, note that
Note that the `mpw-one-b` tag is equivalent to the `rc6` tag. Also, note that
running `make` inside the openlane directory will automatically grab the right
versions of `open_pdks` and `skywater-pdk` as listed above and install them to
PDK_ROOT.
Expand All @@ -64,9 +64,9 @@ make

## Caravel:

Please stick to the `mpw-one-a` tag.
Please stick to the `mpw-one-b` tag.
```
git clone https://github.com/efabless/caravel.git -b mpw-one-a
git clone https://github.com/efabless/caravel.git -b mpw-one-b
```

## Open_mpw_precheck:
Expand Down
30 changes: 18 additions & 12 deletions openlane/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ export OPENLANE_ROOT=<the absolute path to the openlane directory cloned or to b

**NOTE:** rc6 and caravel are still WIP so expect to run into some issues when using it.

If you don't have openlane already, then you can get it from [here](https://github.com/efabless/openlane) and checkout out to `develop`. Alternatively, you can clone and build openlane through:
If you don't have openlane already, then you can get it from [here](https://github.com/efabless/openlane). Alternatively, you can clone and build openlane through:
```bash
make openlane
```

**NOTE:** We are developing caravel using openlane:rc6 which is the current master branch.

**NOTE:** rc6 (current openlane develop) and rc4 (previous openlane master) are using two different concepts of cell padding. rc4 is modifying the LEF, while rc6 is relying on openroad to handle the cell padding. Also, rc4 is using the standalone version of openDP while rc6 is using the one integrated in the openroad app. This affects the concept of PL_TARGET_DENSITY and while in rc4 it was preferred to have PL_TARGET_DENSITY=(FP_CORE_UTIL-(5\~10)/100). Now, in rc6 it is preferred to be PL_TARGET_DENSITY=(FP_CORE_UTIL+(1\~5)/100).
**NOTE:** rc6 (current openlane master) and rc4 (previous openlane master) are using two different concepts of cell padding. rc4 is modifying the LEF, while rc6 is relying on openroad to handle the cell padding. Also, rc4 is using the standalone version of openDP while rc6 is using the one integrated in the openroad app. This affects the concept of PL_TARGET_DENSITY and while in rc4 it was preferred to have PL_TARGET_DENSITY=(FP_CORE_UTIL-(5\~10)/100). Now, in rc6 it is preferred to be PL_TARGET_DENSITY=(FP_CORE_UTIL+(1\~5)/100).
FP_CORE_UTIL should be relaxed as well as it became more representative of the actual core utilization, which wasn't so much the case earlier. So, the perception of these two variables as well as CELL_PAD changed between rc4 and rc6 which necessitates a change in the configurations of almost every single design.
CELL_PAD should be 4~6 for the skywater libraries in rc6 unlike rc4 which was 8.

Expand Down Expand Up @@ -100,21 +100,27 @@ set ::env(EXTRA_GDS_FILES) "\
```
**NOTE:** Don't change the size or the pin order!

3. If your design has standard cells then you need to replace `verilog_elaborate` with `run_synthesis` [here](./user_project_wrapper/interactive.tcl).

4. If your design has standard cells then you need to replace `init_floorplan; place_io_ol;` with `run_floorplan` [here](./user_project_wrapper/interactive.tcl).

5. If your design has standard cells then add `run_placement` after `manual_macro_placement f` [here](./user_project_wrapper/interactive.tcl).
3. If your design has standard cells then you need to modify the configuration file [here](./user_project_wrapper/config.tcl) to remove or change these configs accordingly:
```tcl
# The following is because there are no std cells in the example wrapper project.
set ::env(SYNTH_TOP_LEVEL) 1
set ::env(PL_RANDOM_GLB_PLACEMENT) 1
set ::env(PL_OPENPHYSYN_OPTIMIZATIONS) 0
set ::env(DIODE_INSERTION_STRATEGY) 0
set ::env(FILL_INSERTION) 0
set ::env(TAP_DECAP_INSERTION) 0
set ::env(CLOCK_TREE_SYNTH) 0
```

6. Remove this line `add_macro_placement mprj 1150 1700 N` from the interactive script [here](./user_project_wrapper/interactive.tcl) and replace it with the placement for your macro instances. Or, remove it entirely if you have no macros, along with this line `manual_macro_placement f`.
4. Remove this line `set ::env(MACRO_PLACEMENT_CFG) $script_dir/macro.cfg` from the configuration file [here](./user_project_wrapper/config.tcl) entirely if you have no macros. Alternatively, if you do have macros inside your design, then control their placement by modifying [this file](./user_project_wrapper/macro.cfg)

7. Run your design through the flow: `make user_project_wrapper`
5. Run your design through the flow: `make user_project_wrapper`

8. You may want to take a look at the [Extra Pointers](#extra-pointers) to apply any necessary changes to the interactive script.
6. You may want to take a look at the [Extra Pointers](#extra-pointers) to apply any necessary changes to the interactive script.

8. Re-iterate until you have what you want.
7. Re-iterate until you have what you want.

9. Go back to the main [README.md](../README.md) and continue the process of boarding the chip.
8. Go back to the main [README.md](../README.md) and continue the process of boarding the chip.

**NOTE:** In both cases you might have other macros inside your design. In which case, you may need to have some special power configurations. This is covered [here](https://github.com/efabless/openlane/blob/master/doc/hardening_macros.md#power-grid-pdn).

Expand Down

0 comments on commit e4ffba6

Please sign in to comment.