Update submission tools for mux

1. don't generate user_project_wrapper.v, as it's now static
2. don't generate macros.cfg, as gen_macro_cfg.py does it (eventually, we'll want to integrate it into tt-support-tools)
3. don't generate PDN hooks config. Instead, we're using a wildcard to match all user macros.
4. remove the "layout" section from config.yaml, and scanchain related stuff from generate config.json
This commit is contained in:
Uri Shaked
2023-05-25 20:59:15 +03:00
parent fc3279a64d
commit 9298cac154
6 changed files with 78 additions and 331 deletions
+13 -3
View File
@@ -58,12 +58,22 @@ class Project():
os.unlink(json_file)
module_ports = ports['modules'][top]['ports']
for port in ['io_in', 'io_out']:
required_ports = [
['clk', 1],
['ena', 1],
['rst_n', 1],
['ui_in', 8],
['uio_in', 8],
['uio_oe', 8],
['uio_out', 8],
['uo_out', 8],
]
for port, bits in required_ports:
if port not in module_ports:
logging.error(f"{self} {port} not found in top")
exit(1)
if len(module_ports[port]['bits']) != 8:
logging.error(f"{self} {port} doesn't have 8 bits")
if len(module_ports[port]['bits']) != bits:
logging.error(f"{self} {port} doesn't have {bits} bits")
exit(1)
def check_num_cells(self):