fix(tt_tool): project tile configuration always checked against SKY130 tile sizes

This commit is contained in:
Uri Shaked
2025-09-02 17:20:02 +03:00
parent 9a59843db0
commit 9519fa87fd
4 changed files with 3 additions and 12 deletions
+1 -1
View File
@@ -34,4 +34,4 @@ jobs:
- name: Run mypy
run: |
mypy cells.py config.py configure.py documentation.py git_utils.py markdown_utils.py project.py rom.py shuttle.py --check-untyped-defs
mypy cells.py config.py configure.py documentation.py git_utils.py markdown_utils.py project.py project_info.py rom.py shuttle.py --check-untyped-defs
+1 -1
View File
@@ -105,7 +105,7 @@ class Project:
yaml_path = os.path.join(self.local_dir, "info.yaml")
try:
with open(yaml_path) as fh:
self.info = ProjectInfo(yaml.safe_load(fh))
self.info = ProjectInfo(yaml.safe_load(fh), self.get_tile_sizes())
except FileNotFoundError:
logging.error(
f"yaml file not found for {self} - do you need to --clone the project repos?"
+1 -3
View File
@@ -1,7 +1,5 @@
from typing import Any, Dict, List, Optional
from tile_sizes import tile_sizes
YAML_VERSION = 6
@@ -46,7 +44,7 @@ class ProjectInfo:
top_module: str
source_files: List[str]
def __init__(self, yaml_data: Dict[str, Any]):
def __init__(self, yaml_data: Dict[str, Any], tile_sizes: Dict[str, str]):
# Validate Version
yaml_version = yaml_data.get("yaml_version")
if yaml_version is None:
-7
View File
@@ -1,7 +0,0 @@
from os.path import dirname, join, realpath
from typing import Dict
import yaml
with open(join(dirname(realpath(__file__)), "tile_sizes.yaml")) as fh:
tile_sizes: Dict[str, str] = yaml.safe_load(fh)