Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/main.old
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Regression Tests

on:
push:
branches:
- master
- ral_dev
pull_request:
branches:
- master
- ral_dev
workflow_dispatch:

jobs:


tests:

name: Python ${{matrix.python-version}}
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}

- name: Install Python testing dependencies
run: |
pip install tox tox-gh-actions

- name: Install Icarus Verilog
run: |
sudo apt install -y --no-install-recommends iverilog

- name: Install GHDL
run: |
sudo apt install -y --no-install-recommends ghdl-mcode ghdl

- name: Test
run: |
tox
52 changes: 34 additions & 18 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,54 @@ on:
workflow_dispatch:

jobs:


tests:

name: Python ${{matrix.python-version}}
runs-on: ubuntu-latest
name: Python ${{matrix.python-version}} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}

strategy:
fail-fast: false
matrix:
include:
- python-version: 3.8

python-version: [3.8]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v2

- name: Set up Python ${{matrix.python-version}}
uses: actions/setup-python@v2
with:
python-version: ${{matrix.python-version}}

- name: Install Python testing dependencies
run: |
pip install tox tox-gh-actions
run: pip install tox tox-gh-actions

- name: Install Icarus Verilog
run: |
sudo apt install -y --no-install-recommends iverilog
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt install -y --no-install-recommends iverilog

- name: Install Icarus Verilog on macOS
if: runner.os == 'macOS'
run: brew install icarus-verilog

- name: Install GHDL
run: |
sudo apt install -y --no-install-recommends ghdl-mcode ghdl
- name: Install Icarus Verilog on Windows
if: runner.os == 'Windows'
run: choco install iverilog

- name: Test
run: |
tox
- name: Install GHDL
if: runner.os == 'Linux' || runner.os == 'Windows'
uses: ghdl/[email protected]
with:
version: 5.0.1
backend: mcode
investigate: true

- name: Install GHDL on macOS
if: runner.os == 'macOS'
uses: ghdl/[email protected]
with:
version: 5.0.1
backend: llvm
investigate: true

- name: Run Tests
run: tox
2 changes: 1 addition & 1 deletion examples/TinyALU/hdl/vhdl/tinyalu.vhd
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ CLOCK:
clk <= '1' after 1 us when clk = '0' else
'0' after 1 us when clk = '1';

-- purpose: This block shunts the start signal to the correct block.
-- purpose: This block shunts the start signal to the correct block.
-- The multiply only sees the start signal when op(2) is '1'
-- type : combinational
-- inputs : op(2),start
Expand Down
2 changes: 2 additions & 0 deletions examples/TinyALU/tinyalu_utils.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import cocotb
from cocotb.clock import Clock
from cocotb.triggers import FallingEdge
from cocotb.queue import QueueEmpty, Queue
import enum
Expand Down Expand Up @@ -118,6 +119,7 @@ async def result_mon_bfm(self):
prev_done = done

def start_bfm(self):
cocotb.start_soon(Clock(self.dut.clk, 2000000, unit="ps").start())
cocotb.start_soon(self.driver_bfm())
cocotb.start_soon(self.cmd_mon_bfm())
cocotb.start_soon(self.result_mon_bfm())
Loading
Loading