passing simulation
All checks were successful
Build / Run Test `test_basic` (push) Successful in 33s

This commit is contained in:
2025-08-28 22:35:48 -06:00
parent b231133858
commit cfbc68221a

View File

@@ -16,18 +16,18 @@ jobs:
# # ./tests # # ./tests
# # extra_args: "--check_syntax=true" # # extra_args: "--check_syntax=true"
enumerate-tests: # enumerate-tests:
name: Enumerate tests # name: Enumerate tests
runs-on: ubuntu-latest # runs-on: ubuntu-latest
outputs: # outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }} # matrix: ${{ steps.set-matrix.outputs.matrix }}
steps: # steps:
- uses: actions/checkout@v2 # - uses: actions/checkout@v2
- id: set-matrix # - id: set-matrix
run: echo "::set-output name=matrix::$(ls tests | grep test_* | jq -R -s -c 'split("\n")[:-1]')" # run: echo "::set-output name=matrix::$(ls tests | grep test_* | jq -R -s -c 'split("\n")[:-1]')"
test: test:
needs: enumerate-tests # needs: enumerate-tests
name: Run Test `${{ matrix.test }}` name: Run Test `${{ matrix.test }}`
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy: strategy:
@@ -47,18 +47,21 @@ jobs:
riscv64-unknown-elf-gcc --version && \ riscv64-unknown-elf-gcc --version && \
cd tests/${{ matrix.test }} && \ cd tests/${{ matrix.test }} && \
make test.o && \ make test.o && \
riscv64-unknown-elf-ld -melf32lriscv -T tb.ld test.o -o test.elf && \ riscv64-unknown-elf-ld -melf32lriscv -T tb.ld test.o -o tb.elf && \
riscv64-unknown-elf-objcopy --target=verilog test.elf test.hex && \ riscv64-unknown-elf-objcopy --target=verilog tb.elf tb.hex && \
echo "done" \ echo "done" \
" "
- name: Run Simulation - name: Run Simulation
uses: docker://andrsmllr/iverilog:latest uses: docker://brendanhaines/iverilog:latest
with: with:
entrypoint: bash entrypoint: bash
args: | args: |
-c "\ -c "\
# iverilog -g2012 -o test.out tb.sv ../../src/*.v -Y .sv -I ../../lib && \ cd tests/${{ matrix.test }} && \
./test.out | tee test.log &&\ iverilog -g2012 -o tb.out tb.sv ../../src/*.v -Y .sv -I ../../lib && \
./tb.out | tee tb.log &&\
grep -q "ERROR" tb.log || true &&\
grep -q "SUCCESS" tb.log &&\
echo "done" echo "done"
" "