-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup on monitor.py and double SRAM size to get errors while runnin…
…g the test Signed-off-by: Anderson Ignacio da Silva <[email protected]>
- Loading branch information
Showing
6 changed files
with
13 additions
and
182 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,10 +4,10 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 15.06.2024 | ||
# Last Modified Date: 18.06.2024 | ||
|
||
import cocotb | ||
import logging | ||
import cocotb | ||
import copy | ||
import datetime | ||
|
||
|
@@ -186,7 +186,7 @@ async def _send_txn( | |
f"AHB {op} txn:\n" | ||
f"\tID = {index}\n" | ||
f"\tADDR = 0x{txn_addr:x}\n" | ||
f"\tDATA = 0x{value[index+1]:x}\n" | ||
f"\tDATA = 0x{value[index + 1]:x}\n" | ||
f"\tSIZE = {txn_size} bytes" | ||
) | ||
self.bus.hwdata.value = txn_data | ||
|
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 was deleted.
Oops, something went wrong.
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,12 +4,12 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 14.06.2024 | ||
# Last Modified Date: 18.06.2024 | ||
|
||
import nox | ||
|
||
|
||
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10"], reuse_venv=True) | ||
@nox.session(python=["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12"], reuse_venv=True) | ||
def run(session): | ||
session.env["DUT"] = "ahb_template" | ||
session.env["SIM"] = "icarus" | ||
|
@@ -23,9 +23,9 @@ def run(session): | |
"pytest-sugar", | ||
"pytest-cov", | ||
"pytest-split", | ||
"cocotb-bus == 0.2.1", | ||
"cocotb-test == 0.2.4", | ||
"cocotb >= 1.8.0", | ||
"cocotb-bus==0.2.1", | ||
"cocotb-test==0.2.4", | ||
"cocotb>=1.8.0" | ||
) | ||
session.install("-e", ".") | ||
session.run( | ||
|
@@ -41,7 +41,7 @@ def run(session): | |
) | ||
|
||
|
||
@nox.session(python=["3.9", "3.10"]) | ||
@nox.session(python=["3.9", "3.10", "3.11", "3.12"], reuse_venv=True) | ||
def lint(session): | ||
session.install("flake8") | ||
session.run("flake8") |
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,2 +1,2 @@ | ||
#!/bin/bash | ||
docker run -it --rm -v $(pwd):/cocotbext-ahb/ -w /cocotbext-ahb/ aignacio/rtldev bash | ||
docker run -it --rm -v $(pwd):/cocotbext-ahb/ -w /cocotbext-ahb/ aignacio/icarus bash |
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 |
---|---|---|
|
@@ -3,7 +3,7 @@ | |
# License : MIT license <Check LICENSE> | ||
# Author : Anderson I. da Silva (aignacio) <[email protected]> | ||
# Date : 08.10.2023 | ||
# Last Modified Date: 16.06.2024 | ||
# Last Modified Date: 18.06.2024 | ||
|
||
import cocotb | ||
import os | ||
|
@@ -94,7 +94,7 @@ async def run_test(dut, bp_fn=None, pip_mode=False): | |
|
||
# Generate a list of unique addresses with the double of memory size | ||
# to create error responses | ||
address = random.sample(range(0, 1 * mem_size_kib * 1024, 8), N) | ||
address = random.sample(range(0, 2 * mem_size_kib * 1024, 8), N) | ||
# Generate a list of random 32-bit values | ||
value = [rnd_val(data_width) for _ in range(N)] | ||
# Generate a list of random sizes | ||
|