From f03181dca55555ced52f48967bc02efefd40eece Mon Sep 17 00:00:00 2001 From: Akibats <22522138@stu.mmu.ac.uk> Date: Thu, 8 Aug 2024 13:46:38 +0100 Subject: [PATCH] Add warning for individual decleration. --- FABulous/fabric_generator/file_parser.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/FABulous/fabric_generator/file_parser.py b/FABulous/fabric_generator/file_parser.py index 13daa89e..53343e7e 100644 --- a/FABulous/fabric_generator/file_parser.py +++ b/FABulous/fabric_generator/file_parser.py @@ -667,7 +667,7 @@ def parseFile( with open(f"{json_file}", "r") as f: data_dict = json.load(f) - # Default yosys list names added. + modules = data_dict.get("modules", {}) filtered_ports: dict[str, IO] = {} # Gatheres port name and direction, filters out configbits as they show in ports. @@ -684,6 +684,12 @@ def parseFile( bits = details.get("bits", []) filtered_ports[port_name] = (direction, bits) + if individually_declared: + logger.warning( + f"Ports in {filename} have been individually declared rather than vector." + ) + logger.warning("Ports will not be concatenated during fabric generation.") + param_defaults = module_info.get("parameter_default_values") if param_defaults and "NoConfigBits" in param_defaults: noConfigBits = param_defaults["NoConfigBits"]