osic-stacks/README.md

46 lines
1.5 KiB
Markdown
Raw Normal View History

2023-08-07 06:38:14 +00:00
# OSIC Stacks
2023-09-06 04:02:53 +00:00
*Open Source Integrated Circuits Docker Stacks*
2023-08-07 06:38:14 +00:00
2023-09-03 22:50:12 +00:00
## Stacks
2023-08-07 06:38:14 +00:00
2023-09-06 04:02:53 +00:00
- **analog-xk**: Analog workflow using XScheme & KLayout
- **analog-xm**: Analog workflow using XScheme & Magic
- **digital-ator**: Digital workflow using Verilator & Yosys
- **digital-icarus**: Digital workflow using Icarus & Yosys
- **heavy**: Workflow with all the previous tools
2023-09-03 22:50:12 +00:00
## Usage
There are scripts provided for running the containers for each OS, this is because containers require binding the display enviroment variables to enable graphic output.
2023-09-06 04:02:53 +00:00
### Starting a container with graphics output
#### Windows
2023-09-03 22:50:12 +00:00
2023-09-03 23:17:58 +00:00
Execute the next script in powershell.
```pwsh
2023-09-06 04:45:53 +00:00
& ([scriptblock]::Create((irm https://git.1159.cl/Mario1159/osic-stacks/raw/branch/main/scripts/wsl_start.ps1))) -remote
2023-09-03 23:17:58 +00:00
```
This script will run the container inside wsl and bind the enviroments variables for [wslg](https://github.com/microsoft/wslg/blob/main/samples/container/Containers.md).
2023-09-03 22:50:12 +00:00
2023-09-06 04:02:53 +00:00
#### Linux
Execute the next script in your terminal. Make sure you have `curl` already installed.
```sh
curl https://git.1159.cl/Mario1159/osic-stacks/raw/branch/main/scripts/linux_start.sh -o linux_start.sh
```
2023-09-03 22:50:12 +00:00
2023-09-06 04:02:53 +00:00
### Connecting to the container
After starting the container enter to it executing a shell with docker.
```sh
docker exec -it <container_name> bash
```
2023-09-03 22:50:12 +00:00
## Build
A singular stack image can be builded using docker in the following way.
> Note: Each stack image requires their correspondent base image installed.
2023-09-06 04:02:53 +00:00
```sh
docker build -t <tag> -f <arch/jammy>.Dockerfile <path>
```
2023-09-03 22:50:12 +00:00
## Custom Images