Skip to content

Commit

Permalink
Removed tests that are NA atm
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio <[email protected]>
  • Loading branch information
aignacio committed May 5, 2024
1 parent 5ae88ab commit 269bd46
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/regression.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Install Verilator
run: |
sudo apt install -y --no-install-recommends make g++ perl lcov python3 autoconf flex bison libfl2 libfl-dev zlibc zlib1g zlib1g-dev
sudo apt install -y git help2man perl python3 \
make autoconf g++ flex bison ccache \
libgoogle-perftools-dev numactl perl-doc \
libfl2 libfl-dev zlibc zlib1g zlib1g-dev
git clone https://github.com/verilator/verilator.git
cd verilator
git checkout stable
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM ubuntu:20.04
FROM ubuntu:latest
LABEL author="Anderson Ignacio da Silva"
LABEL maintainer="[email protected]"
ENV TZ=Europe/Dublin
Expand All @@ -24,7 +24,7 @@ RUN apt-get install python3 make g++ perl autoconf flex bison libfl2 \
RUN git clone https://github.com/verilator/verilator
WORKDIR /verilator
RUN export VERILATOR_ROOT=/verilator
RUN git checkout v4.106 # Update latest stable
RUN git checkout stable # Update latest stable
RUN autoconf # Create ./configure script
RUN ./configure # Configure and create Makefile
RUN make -j4 # Build Verilator itself (if error, try just 'make')
Expand Down
5 changes: 3 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
# License : MIT license <Check LICENSE>
# Author : Anderson Ignacio da Silva (aignacio) <[email protected]>
# Date : 07.06.2022
# Last Modified Date: 13.10.2022
# Last Modified Date: 05.05.2024
COV_REP := $(shell find run_dir -name 'coverage.dat')
# SPEC_TEST ?= -k test_dma_error
SPEC_TEST ?=
RUN_CMD := docker run --rm --name axi_dma \
-v $(abspath .):/axi_dma -w \
-v $(abspath .):/rtldev -w \
/axi_dma aignacio/axi_dma

.PHONY: run cov clean
Expand Down
4 changes: 2 additions & 2 deletions tb/test_dma_error.py → tb/deprec_test_dma_error.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# License : MIT license <Check LICENSE>
# Author : Anderson Ignacio da Silva (aignacio) <[email protected]>
# Date : 03.06.2022
# Last Modified Date: 16.10.2022
# Last Modified Date: 05.05.2024
# Last Modified By : Anderson Ignacio da Silva (aignacio) <[email protected]>
import random
import cocotb
Expand Down Expand Up @@ -57,7 +57,7 @@ async def run_test(dut, config_clk="100MHz", idle_inserter=None, backpressure_in
await tb.prg_desc(desc)
tb.log.info("Start DMA GO")
await tb.start_dma()
error_read = randint(50,350)
error_read = randint(50,100)
await ClockCycles(tb.dut.clk, error_read)
tb.log.info("Error on DMA transfer at: %d clk cycles", error_read)
while int(tb.dut.dma_done_o == 0):
Expand Down
6 changes: 2 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ setenv =
TIMEUNIT = 1ns
TIMEPREC = 1ps
PATH_RUN = {toxinidir}

commands = pytest --verbose -rP -n auto {posargs}
#commands = pytest --verbose -rP -n auto {posargs}
deps =
pytest
pytest-xdist
Expand All @@ -22,9 +23,6 @@ deps =
cocotb-test
cocotb

commands = pytest -rP -n auto {posargs}
#pytest -rP -n auto {posargs}

[pytest]
testpaths = tb
addopts = --import-mode prepend
Binary file added xvlog.pb
Binary file not shown.

0 comments on commit 269bd46

Please sign in to comment.