refactor: remove HAVE_DEBUG feature and related code

- Eliminated the HAVE_DEBUG preprocessor directive and all associated code from the RTL and test files.
- Updated the Emulator class to remove JTAG-related debug signals and configurations.
- Adjusted the pin map and JSON configurations to exclude debug-related entries.
- Modified the management core wrapper to only support the HAZARD3 core, removing references to the PICORV32 core.
- Updated tests to reflect the removal of the HAVE_DEBUG feature, ensuring they no longer check for debug-related conditions.
- Cleaned up various scripts and makefiles to remove dependencies on the HAVE_DEBUG flag, streamlining the build process.
This commit is contained in:
maksyuki committed 2026-08-06 08:52:54 +08:00
1 parent 6cff6102a4
commit 1b69bffe4e
40 files changed
+450 -3513

No files matched your search

+2 -2
View File
@@ -24,7 +24,7 @@ def parse_args() -> argparse.Namespace:
parser.add_argument("--sta", required=True)
parser.add_argument("--pdk", required=True)
parser.add_argument("--formal", choices=("YES", "NO"), default="NO")
parser.add_argument("--debug", choices=("YES", "NO"), default="NO")
parser.add_argument("--require-debug-tools", action="store_true")
parser.add_argument("--lock", type=Path, default=DEFAULT_LOCK)
parser.add_argument("--format", choices=("text", "json"), default="text")
parser.add_argument("--output", type=Path)
@@ -67,7 +67,7 @@ def main() -> int:
tools.append("sta")
if args.formal == "YES":
tools.extend(("sby", "yosys", "yosys-smtbmc", "sv2v", "bitwuzla"))
if args.debug == "YES":
if args.require_debug_tools:
tools.extend(("openocd", "riscv32-unknown-elf-gdb"))
source_names = ["mpw", "hazard3", "cluster_common", "third_party_ip"]
+5 -3
View File
@@ -66,7 +66,9 @@ def make_sbom(lock: dict[str, object]) -> dict[str, object]:
components.extend(
container_component(name, spec) for name, spec in lock["container_images"].items()
)
components.extend(component(f"nix/{name}", "source", spec) for name, spec in lock["nix_inputs"].items())
components.extend(
component(f"nix/{name}", "source", spec) for name, spec in lock["nix_inputs"].items()
)
for platform, tools in lock["toolchains"].items():
components.extend(
component(f"{platform}/{name}", "toolchain", spec) for name, spec in tools.items()
@@ -108,8 +110,8 @@ def main() -> int:
config["PDK"],
"--simu",
config["SIMU"],
"--core",
config.get("CORE", "HAZARD3"),
"--jtag-idcode",
config.get("JTAG_IDCODE", "DEADBEEF"),
"--dynamic-core-filelist",
str(args.variant_root / "generated/mpw" / config["SIMU"].lower() / "core/core.fl"),
"--dynamic-ip-filelist",
-1
View File
@@ -71,7 +71,6 @@ def main() -> int:
"-Wextra",
"-Werror",
"-fno-builtin",
"-DRS_SOC_MGMT_CORE_HAZARD3",
"-I",
str(memory_map_root / "include"),
"-I",