-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Anderson Ignacio <[email protected]>
- Loading branch information
Showing
6 changed files
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
@@ -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') | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
@@ -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): | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters