refactor: refactor RTL paths and update test descriptions

- Updated RTL paths in various files to remove the 'ribp' prefix, reflecting the new directory structure.
- Modified test descriptions to remove version indicators (e.g., V2, V3) for clarity and consistency.
- Adjusted file references in scripts and tests to align with the new peripheral and multimedia directory structure.
- Added a new test to ensure repository layout invariants, confirming the absence of deprecated paths.
This commit is contained in:
maksyuki committed 2026-08-13 13:41:52 +08:00
1 parent 0bc1b73ba1
commit 5d61b7e90a
134 files changed
+324 -291

No files matched your search

+4 -4
View File
@@ -1,4 +1,4 @@
"""Directed RTL tests for the GPIO V2 register and pad-control contract."""
"""Directed RTL tests for the GPIO register and pad-control contract."""
from __future__ import annotations
@@ -11,14 +11,14 @@ from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def test_gpio_v2_register_pad_interrupt_and_filter_contract(tmp_path: Path) -> None:
def test_gpio_register_pad_interrupt_and_filter_contract(tmp_path: Path) -> None:
iverilog = shutil.which("iverilog")
sv2v = shutil.which("sv2v")
vvp = shutil.which("vvp")
if iverilog is None or sv2v is None or vvp is None:
return
peripheral = ROOT / "rtl/ip/ribp/peripheral"
peripheral = ROOT / "rtl/ip/peripheral"
common = ROOT / "rtl/managed/clusterip/common/rtl"
source_list = tmp_path / "gpio.fl"
source_list.write_text(
@@ -62,4 +62,4 @@ def test_gpio_v2_register_pad_interrupt_and_filter_contract(tmp_path: Path) -> N
)
result = subprocess.run([vvp, str(simulation)], text=True, capture_output=True, check=True)
assert "GPIO V2 directed test passed" in result.stdout
assert "GPIO directed test passed" in result.stdout