Skip to content

Commit 494d653

Browse files
committed
Experimental. No change in Apio.
1 parent cde671c commit 494d653

File tree

1 file changed

+14
-5
lines changed

1 file changed

+14
-5
lines changed

experimental/yosys-parse/main.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,16 @@
99
# NOTE: To render the .dot online use
1010
# https://www.tools-online.app/tools/graphviz
1111

12-
# -- The yosys generated .json file.
13-
YOSYS_JSON_FILE = "data/hardware-gowin1-256.json"
12+
13+
# YOSYS_JSON_FILE = "data/hardware-gowin1-256.json"
14+
# NETS = {6, 144, 97, 135, 137, 71, 136, 138, 139}
15+
16+
# YOSYS_JSON_FILE = "data/hardware-gowin2-external.json"
17+
# NETS = {6, 222}
18+
19+
YOSYS_JSON_FILE = "data/hardware-gowin2-internal.json"
20+
NETS = {6, 140}
21+
1422

1523
# -- Adjust for the design.
1624
TOP_MODULE_NAME = "main"
@@ -287,9 +295,10 @@ def main():
287295
# Parse into a Design object.
288296
design = parse_design(yosys_json)
289297

290-
# Report given nets.
291-
nets = {6, 144, 97, 135, 137, 71, 136, 138, 139}
292-
gen_dot_graph(design, nets)
298+
299+
300+
301+
gen_dot_graph(design, NETS)
293302

294303

295304
if __name__ == "__main__":

0 commit comments

Comments
 (0)