mirror of
https://github.com/retroSoC/retroSoC.git
synced 2026-11-05 06:32:37 +00:00
feat: refactor memory map definitions and enhance fault handling in Mini SoC
- Updated core_wrapper and mgmt_core_wrapper to use new SOC reset and IRQ addresses. - Removed obsolete mmap_define.svh file and integrated memory map generation into the build process. - Enhanced ip_nmi_wrapper to handle fault signals and updated NMI interface assignments. - Added bus fault and sysctrl fault testbenches to validate fault handling mechanisms. - Improved memory map generation script and added tests for memory map validation and fault responder behavior.
This commit is contained in:
28 files changed
+1139
-482
No files matched your search
+17
-1
@@ -6,6 +6,7 @@ from __future__ import annotations
|
||||
import argparse
|
||||
import shutil
|
||||
import subprocess
|
||||
import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
@@ -37,7 +38,20 @@ def main() -> int:
|
||||
|
||||
root = args.root.resolve()
|
||||
with tempfile.TemporaryDirectory(prefix="retrosoc-c-tests-") as temporary_directory:
|
||||
executable = Path(temporary_directory) / "runtime_tests"
|
||||
temporary_root = Path(temporary_directory)
|
||||
memory_map_root = temporary_root / "memory_map"
|
||||
subprocess.run(
|
||||
[
|
||||
sys.executable,
|
||||
str(root / "rtl/mini/script/generate_memory_map.py"),
|
||||
"--map",
|
||||
str(root / "rtl/mini/memory_map.json"),
|
||||
"--output-dir",
|
||||
str(memory_map_root),
|
||||
],
|
||||
check=True,
|
||||
)
|
||||
executable = temporary_root / "runtime_tests"
|
||||
command = [
|
||||
compiler,
|
||||
"-std=c11",
|
||||
@@ -46,6 +60,8 @@ def main() -> int:
|
||||
"-Werror",
|
||||
"-fno-builtin",
|
||||
"-I",
|
||||
str(memory_map_root / "include"),
|
||||
"-I",
|
||||
str(root / "crt/include"),
|
||||
"-I",
|
||||
str(root / "app/media/include"),
|
||||
|
||||
Reference in new issue
Block a user