-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
1,260 additions
and
359 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
# Build CACE | ||
|
||
If you are using nix, the package will be builded when you run `nix-shell`. | ||
|
||
--- | ||
|
||
If not, you may need to set up a Python [virtual environment](https://docs.python.org/3/library/venv.html). | ||
|
||
To install the dependencies for CACE, run: | ||
|
||
``` | ||
$ make dependencies | ||
``` | ||
|
||
To build the Python package, run: | ||
|
||
``` | ||
$ make build | ||
``` | ||
|
||
To install the package, run: | ||
|
||
``` | ||
$ make install | ||
``` | ||
|
||
To install the package in editable mode, run: | ||
|
||
``` | ||
$ make editable | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Documentation | ||
|
||
If you are using nix, you can get the environmen to build the docs by running `nix develop .#docs`. Otherwise, you will need to install the dependencies via: | ||
|
||
``` | ||
$ make dependencies | ||
``` | ||
|
||
--- | ||
|
||
To build the documentation, run: | ||
|
||
``` | ||
$ make docs | ||
``` | ||
|
||
To host the docs, run: | ||
|
||
``` | ||
$ make host-docs | ||
``` | ||
|
||
To automatically refresh the docs upon changes, run: | ||
|
||
``` | ||
$ make auto-docs | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# Examples | ||
|
||
The following repositories contain example circuit designs, each having a `cace/` subdirectory with a specification input (the datasheet), and a set of testbench schematics which are used by CACE to measure all specified electrical and physical parameters, generate results, and analyze them to determine circuit performance over corners. | ||
|
||
Example circuit repositories: | ||
|
||
| Design | Description | PDK | | ||
|----------------------------|----------------------------|-----| | ||
| [ota-5t](https://github.com/mole99/ota-5t/) | A simple 5-transistor OTA | Sky130A | | ||
| [sky130_ef_ip__opamp](https://github.com/RTimothyEdwards/sky130_ef_ip__opamp) | Operational Amplifier | Sky130A | | ||
| [sky130_ef_ip__rdac3v_8bit](https://github.com/RTimothyEdwards/sky130_ef_ip__rdac3v_8bit) | 8-bit resistor ladder DAC | Sky130A | | ||
| ... | ... | | ||
|
||
```{note} | ||
Send us a PR if you want to add your design! | ||
``` |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
61 changes: 61 additions & 0 deletions
61
docs/source/getting_started/common/nix_installation/_common.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
````{admonition} If you already have Nix set up… | ||
:class: note | ||
You will need to enable CACE's | ||
[Binary Cache](https://nixos.wiki/wiki/Binary_Cache) manually. | ||
If you don't know what that means: | ||
We use a service called Cachix, which allows the reproducible Nix builds to be | ||
stored on a cloud server so you do not have to build CACE's dependencies | ||
from scratch on every computer, which will take a long time. | ||
First, you want to install Cachix by running the following in your terminal: | ||
```console | ||
$ nix-env -f "<nixpkgs>" -iA cachix | ||
``` | ||
Then set up the binary cache as follows (the cache is shared with openlane): | ||
```console | ||
$ sudo env PATH="$PATH" cachix use openlane | ||
``` | ||
…and restart the Nix daemon. | ||
```console | ||
$ sudo pkill nix-daemon | ||
``` | ||
--- | ||
If you *do* know what this means, the values are as follows: | ||
```ini | ||
extra-substituters = https://openlane.cachix.org | ||
extra-trusted-public-keys = openlane.cachix.org-1:qqdwh+QMNGmZAuyeQJTH9ErW57OWSvdtuwfBKdS254E= | ||
``` | ||
Make sure to restart `nix-daemon` after updating `/etc/nix/nix.conf`. | ||
```console | ||
$ sudo pkill nix-daemon | ||
``` | ||
```` | ||
|
||
# Cloning CACE | ||
|
||
With git installed, just run the following: | ||
|
||
```console | ||
$ git clone https://github.com/efabless/cace | ||
``` | ||
|
||
That's it. Whenever you want to use CACE, run `nix-shell` in the repository root | ||
directory and you'll have a full CACE environment. The first time might take | ||
around 10 minutes while binaries are pulled from the cache. | ||
|
||
To quickly test your installation, simply run `cace --help` in the nix | ||
shell. |
Oops, something went wrong.