increase target density from 0.55 to 0.65 #110
Workflow file for this run
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
name: CI | |
on: | |
# Runs on Pull Requests and Pushes | |
push: | |
pull_request: | |
jobs: | |
user_project_flow: | |
timeout-minutes: 720 | |
runs-on: self-hosted | |
strategy: | |
matrix: | |
pdk: ["sky130A"] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up QEMU | |
uses: docker/setup-qemu-action@v1 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v1 | |
- name: Export Environment Variables | |
run: | | |
echo "${GITHUB_WORKSPACE}" | |
echo "PDK_ROOT=/home/runner/work/pdk" >> $GITHUB_ENV | |
echo "PDK=${{ matrix.pdk }}" >> $GITHUB_ENV | |
echo "PDKPATH=/home/runner/work/pdk/${{ matrix.pdk }}" >> $GITHUB_ENV | |
echo "ROUTING_CORES=4" >> $GITHUB_ENV | |
echo "KLAYOUT_XOR_THREADS=4" >> $GITHUB_ENV | |
echo "OPENLANE_ROOT=/home/runner/work/caravel_user_project/openlane" >> $GITHUB_ENV | |
- name: Install Caravel | |
run: | | |
make install | |
- name: Setup Openlane | |
run: | | |
make openlane | |
- name: Build PDK | |
run: | | |
make pdk-with-volare | |
# - name: Build Management Core Wrapper | |
# run: | | |
# make install_mcw | |
- name: Install Simulation Environment | |
run: | | |
make simenv | |
- name: Harden Using Openlane | |
run: | | |
make soc | |
make user_project_wrapper | |
- name: Run MPW Precheck | |
run: | | |
export INPUT_DIRECTORY=$(pwd) | |
export PRECHECK_ROOT=$INPUT_DIRECTORY/mpw_precheck | |
export OUTPUT_DIRECTORY=$INPUT_DIRECTORY/mpw_precheck_result | |
export OUTPUT=$OUTPUT_DIRECTORY/logs/precheck.log | |
export PDKPATH=$PDK_ROOT/sky130A | |
git clone --depth=1 https://github.com/efabless/mpw_precheck.git | |
docker run -v "$PRECHECK_ROOT":"$PRECHECK_ROOT" -v "$INPUT_DIRECTORY":"$INPUT_DIRECTORY" -v "${{ env.PDK_ROOT }}":"${{ env.PDK_ROOT }}" -e INPUT_DIRECTORY="$INPUT_DIRECTORY" -e PDK_ROOT="${{ env.PDK_ROOT }}" -e PDKPATH="${{ env.PDKPATH }}" -u $(id -u "$USER"):$(id -g "$USER") efabless/mpw_precheck:latest bash -c "cd $PRECHECK_ROOT; python3 mpw_precheck.py --input_directory $INPUT_DIRECTORY --pdk_path ${{ env.PDKPATH }} --output_directory $OUTPUT_DIRECTORY license makefile consistency xor magic_drc klayout_beol klayout_feol klayout_met_min_ca_density klayout_offgrid klayout_pin_label_purposes_overlapping_drawing klayout_zeroarea lvs" | |
cnt=$(grep -c "All Checks Passed" "$OUTPUT") | |
if ! [[ $cnt ]]; then cnt=0; fi | |
if [[ $cnt -eq 1 ]]; then exit 0; fi | |
exit 2 | |
- name: Save Failure Logs | |
if: failure() | |
run: | | |
cp -r /home/prherrma/actions-runner/_work/tapeout-ci-2311/tapeout-ci-2311/openlane/soc/runs/23* ~/old-runs/ | |
latest_directory=$(ls -td -- ~/old-runs/* | head -n 1) | |
ln -sf "$latest_directory" ~/old-logs/latest | |
- name: Run DV RTL Tests | |
run: | | |
make verify-io_ports-rtl | |
make verify-la_test1-rtl | |
make verify-la_test2-rtl | |
make verify-mprj_stimulus-rtl | |
make verify-wb_port-rtl | |
# - name: Run DV GL tests | |
# run: | | |
# make verify-io_ports-gl | |
# make verify-la_test1-gl | |
# make verify-la_test2-gl | |
# make verify-mprj_stimulus-gl | |
# make verify-wb_port-gl |