Skip to content

Commit

Permalink
add all testbenches and fix lambdalib paths
Browse files Browse the repository at this point in the history
  • Loading branch information
gadfort committed Feb 16, 2024
1 parent 8567be1 commit 2896edd
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 31 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
testbench: [lumi/testbench/test_lumi.py, lumi/testbench/test_lumi_rnd.py]
testbench: [lumi/testbench/test_lumi.py, lumi/testbench/test_lumi_rnd.py, umi/testbench/test_crossbar.py, umi/testbench/test_fifo_flex.py, umi/testbench/test_fifo.py, umi/testbench/test_mem_agent.py, umi/testbench/test_regif.py, utils/testbench/test_umi_address_remap.py, utils/testbench/test_umi_packet_merge_greedy.py, utils/testbench/test_umi2tl_np.py]

timeout-minutes: 30
timeout-minutes: 10
runs-on: ubuntu-latest
container:
image: ghcr.io/zeroasiccorp/sbtest:latest
Expand Down
3 changes: 1 addition & 2 deletions lumi/testbench/test_lumi_rnd.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def main(topo="2d", vldmode="2", rdymode="2", trace=False, host2dut="host2dut_0.
('hostdly', hostdly),
('devdly', devdly)
],
trace=trace,
args=['+verilator+seed+0']
trace=trace
)

# instantiate TX and RX queues. note that these can be instantiated without
Expand Down
6 changes: 3 additions & 3 deletions umi/testbench/test_crossbar.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ def build_testbench():
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'testbench' / 'config.vlt'
Expand Down
6 changes: 3 additions & 3 deletions umi/testbench/test_fifo.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def build_testbench():
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'testbench' / 'config.vlt'
Expand Down
6 changes: 3 additions & 3 deletions umi/testbench/test_fifo_flex.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def build_testbench():
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'testbench' / 'config.vlt'
Expand Down
6 changes: 3 additions & 3 deletions umi/testbench/test_mem_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def build_testbench():
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'testbench' / 'config.vlt'
Expand Down
6 changes: 3 additions & 3 deletions umi/testbench/test_regif.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ def build_testbench():
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'switchboard' / 'examples' / 'common' / 'verilog')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / '..' / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'testbench' / 'config.vlt'
Expand Down
8 changes: 4 additions & 4 deletions utils/testbench/test_umi2tl_np.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ def build_testbench(topo="2d"):
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / 'utils' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
dut.add('tool', 'verilator', 'task', 'compile', 'option', '--coverage')
Expand Down
8 changes: 4 additions & 4 deletions utils/testbench/test_umi_address_remap.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def build_testbench(topo="2d"):
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / 'utils' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'utils' / 'testbench' / 'config.vlt'
Expand Down
8 changes: 4 additions & 4 deletions utils/testbench/test_umi_packet_merge_greedy.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@ def build_testbench(topo="2d"):
for option in ['ydir', 'idir']:
dut.add('option', option, EX_DIR / 'umi' / 'rtl')
dut.add('option', option, EX_DIR / 'utils' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'vectorlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'ramlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'stdlib' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'padring' / 'rtl')
dut.add('option', option, EX_DIR / 'submodules' / 'lambdalib' / 'lambdalib' / 'vectorlib' / 'rtl')

# Verilator configuration
vlt_config = EX_DIR / 'utils' / 'testbench' / 'config.vlt'
Expand Down

0 comments on commit 2896edd

Please sign in to comment.