broccoli-cli/README.md

61 lines
1.2 KiB
Markdown
Raw Normal View History

2022-09-24 18:35:22 -04:00
# Broccoli Development Environment
2023-05-17 13:14:27 -04:00
First time use:
Download the Skywater 130nm PDK and Configuration Files:
https://broccoli-hosting.s3.us-east-2.amazonaws.com/sky130.tar.gz
Extract to your home directory:
```
2023-05-17 13:14:27 -04:00
mkdir ~/tech; tar -xzvf sky130.tar.gz -C ~/tech
```
2023-05-17 13:14:27 -04:00
First and subsequent use:
Pull the docker image for the broccoli command line interface.
2022-09-24 18:35:22 -04:00
```
2023-05-17 13:14:27 -04:00
docker pull public.ecr.aws/l5h5o6z4/broccoli-cli:latest
2022-09-24 18:35:22 -04:00
```
2023-05-17 13:14:27 -04:00
Setup the broccoli command line interface with the following command.
2022-09-26 10:33:59 -04:00
```
2023-05-17 13:14:27 -04:00
source bcli-develop.sh
2022-09-26 10:33:59 -04:00
```
2022-09-24 18:35:22 -04:00
Download the developement environment and boot it up in docker
```
bcli up
```
Open up a shell inside the development environment. Here you will have access to all of the necessary tools.
```
bcli
```
2023-05-17 13:14:27 -04:00
If graphical tools (such as magic and gaw) fail to launch, you may need to install ```xhost``` on your local machine, and grant docker permission to access your X server.
```
xhost +local:docker
```
2022-09-24 18:35:22 -04:00
Your home directory will be mounted at
```
/host
```
Many of the installed tools may be found at
```
/opt
```
2023-05-17 13:14:27 -04:00
Finally, vim is fully set up for both golang and act.
2022-09-24 18:35:22 -04:00
```
vim file.act
```
2023-05-17 13:14:27 -04:00
When you are done, you can shut down the development environment.
2022-09-24 18:35:22 -04:00
```
bcli down
```
2023-05-17 13:14:27 -04:00