3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-24 01:25:33 +00:00

cellhelp.py: Cells can have tags

Tags are added to the list of properties when exporting to `cells.json`.
This commit is contained in:
Krystine Sherwin 2024-09-05 16:51:26 +12:00
parent 9ce6952131
commit b1025dbaa6
No known key found for this signature in database
2 changed files with 18 additions and 6 deletions

View file

@ -14,13 +14,16 @@ class SimHelper:
code: list[str]
group: str = ""
ver: str = "1"
tags: list[str]
def __init__(self) -> None:
self.desc = []
self.tags = []
def __str__(self) -> str:
printed_fields = [
"name", "title", "ports", "source", "desc", "code", "group", "ver",
"tags",
]
# generate C++ struct
val = f"cell_help[{json.dumps(self.name)}] = "