Skip to content

Commit

Permalink
Merge branch 'vlsi-tutorial' of https://github.com/ucb-bar/chipyard i…
Browse files Browse the repository at this point in the history
…nto openroad
  • Loading branch information
nayiri-k committed Mar 12, 2023
2 parents fae8a24 + b68ee34 commit 3b15304
Show file tree
Hide file tree
Showing 10 changed files with 190 additions and 263 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/chipyard-full-flow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,51 @@ jobs:
source env.sh
cd sims/verilator
make verilog
- name: VLSI test
run: |
cd ${{ env.REMOTE_WORK_DIR }}
eval "$(conda shell.bash hook)"
source env.sh
cd vlsi
export tutorial=sky130-openroad
# TODO: consider setting VLSI_TOP=RocketTile
# NOTE: most conda installs are in separate conda envs because they mess up
# each other's versions (for no apparent reason) and we need the latest versions
conda config --add channels defaults
conda config --add channels litex-hub
# installs for example-sky130.yml
conda create -y --prefix ./.conda-sky130 open_pdks.sky130a=1.0.399_0_g63dbde9
git clone https://github.com/rahulk29/sram22_sky130_macros.git
echo "" >> example-sky130.yml
echo "# tutorial configs" >> example-sky130.yml
echo "technology.sky130.sky130A: $PWD/.conda-sky130/share/pdk/sky130A" >> example-sky130.yml
echo "technology.sky130.sram22_sky130_macros: $PWD/sram22_sky130_macros" >> example-sky130.yml
# installs for example-openroad.yml
conda create -y --prefix ./.conda-yosys yosys=0.27_4_gb58664d44
conda create -y --prefix ./.conda-openroad openroad=2.0_7070_g0264023b6
conda create -y --prefix ./.conda-klayout klayout=0.28.5_98_g87e2def28
conda create -y --prefix ./.conda-signoff magic=8.3.376_0_g5e5879c netgen=1.5.250_0_g178b172
echo "" >> example-openroad.yml
echo "# tutorial configs" >> example-openroad.yml
echo "synthesis.yosys.yosys_bin: $PWD/.conda-yosys/bin/yosys" >> example-openroad.yml
echo "par.openroad.openroad_bin: $PWD/.conda-openroad/bin/openroad" >> example-openroad.yml
echo "par.openroad.klayout_bin: $PWD/.conda-klayout/bin/klayout" >> example-openroad.yml
echo "drc.magic.magic_bin: $PWD/.conda-signoff/bin/magic" >> example-openroad.yml
echo "lvs.netgen.netgen_bin: $PWD/.conda-signoff/bin/netgen" >> example-openroad.yml
conda config --remove channels litex-hub
conda config --remove channels defaults
make buildfile
make syn
make par
make drc
make lvs
cleanup:
name: cleanup
Expand Down
2 changes: 1 addition & 1 deletion conda-reqs/chipyard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ dependencies:
# hammer packages
- sty
- pip:
- hammer-vlsi[asap7]==1.0.1
- hammer-vlsi[asap7]==1.0.4

# doc requirements
- sphinx
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 3b15304

Please sign in to comment.