utils: yosys: cells property should not return internal cells Signed-off-by: Karol Gugala <kgugala@antmicro.com>
diff --git a/yosys/json.py b/yosys/json.py index b13ddc2..9a3587c 100755 --- a/yosys/json.py +++ b/yosys/json.py
@@ -51,6 +51,8 @@ """ clist = [] for cell, cdata in sorted(self.data["cells"].items()): + if cdata["type"].startswith('$'): + continue clist.append((cell, cdata["type"])) return clist