Skip to content

Update info.md

Update info.md #4

Workflow file for this run

name: wokwi_test
# either manually started, or on a schedule
on: [ push, workflow_dispatch ]
jobs:
wokwi_test:
# ubuntu
runs-on: ubuntu-latest
steps:
# need the repo checked out
- name: checkout repo
uses: actions/checkout@v4
with:
submodules: recursive
- name: Install iverilog
shell: bash
run: sudo apt-get update && sudo apt-get install -y iverilog
# Set Python up and install cocotb
- name: Setup python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install cocotb 1.8.x
shell: bash
run: |
pip install cocotb~=1.8.0
cocotb-config --libpython
cocotb-config --python-bin
- name: checkout tt tools repo
uses: actions/checkout@v4
with:
repository: tinytapeout/tt-support-tools
path: tt
ref: tt06
# need python and requirements
- name: setup python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- run: pip install -r tt/requirements.txt
# fetch the truth table
- name: fetch Verilog and build config
run: ./tt/tt_tool.py --create-user-config
# does the wokwi project have a truthtable?
- name: Check the truthtable exists
id: check_files
uses: andstor/file-existence-action@v3
with:
files: "src/truthtable.md"
- name: test
if: steps.check_files.outputs.files_exists == 'true'
run: |
cd src
make clean
make
# make will return success even if the test fails, so check for failure in the results.xml
! grep failure results.xml
- name: upload vcd
if: success() || failure()
uses: actions/upload-artifact@v4
with:
name: test-vcd
path: src/*.vcd