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:
parent
9ce6952131
commit
b1025dbaa6
2 changed files with 18 additions and 6 deletions
|
@ -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)}] = "
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue