aboutsummaryrefslogtreecommitdiffstats
path: root/icefuzz/tests/colbuf_384.py
diff options
context:
space:
mode:
Diffstat (limited to 'icefuzz/tests/colbuf_384.py')
-rw-r--r--icefuzz/tests/colbuf_384.py29
1 files changed, 29 insertions, 0 deletions
diff --git a/icefuzz/tests/colbuf_384.py b/icefuzz/tests/colbuf_384.py
new file mode 100644
index 0000000..e9f5332
--- /dev/null
+++ b/icefuzz/tests/colbuf_384.py
@@ -0,0 +1,29 @@
+#!/usr/bin/env python3
+
+import fileinput
+
+colbuf_tile = None
+glbnet_tile = None
+
+for line in fileinput.input():
+ line = line.split()
+ if len(line) == 0:
+ continue
+ if line[0] in [".io_tile", ".logic_tile"]:
+ current_tile = (int(line[1]), int(line[2]))
+ if line[0] == "ColBufCtrl":
+ assert colbuf_tile is None
+ colbuf_tile = current_tile
+ if line[0] == "buffer" and line[1].startswith("glb_netwk_"):
+ assert glbnet_tile is None
+ glbnet_tile = current_tile
+
+if colbuf_tile is None:
+ if glbnet_tile is None: print("( ? , ? , ? , ? ),")
+ else: print("( ? , ? , %2d, %2d)," % (glbnet_tile[0], glbnet_tile[1]))
+elif glbnet_tile is None:
+ if colbuf_tile is None: print("( ? , ? , ? , ? ),")
+ else: print("(%2d, %2d, ? , ? )," % (colbuf_tile[0], colbuf_tile[1]))
+else:
+ print("(%2d, %2d, %2d, %2d)," % (colbuf_tile[0], colbuf_tile[1], glbnet_tile[0], glbnet_tile[1]))
+