diff options
| author | David Shah <davey1576@gmail.com> | 2017-10-23 11:30:23 +0100 |
|---|---|---|
| committer | David Shah <davey1576@gmail.com> | 2017-10-23 11:30:23 +0100 |
| commit | bf21b644984656fdea6ec2609b22a74f3296115b (patch) | |
| tree | 3428547c43f72eadb7f6589cde4de26ff1733a82 /icefuzz/tests/ioctrl_5k.py | |
| parent | 5afdeee0e0a70110268b8d481e3f949f74559098 (diff) | |
Fix IeRen database for up5k
Diffstat (limited to 'icefuzz/tests/ioctrl_5k.py')
| -rw-r--r-- | icefuzz/tests/ioctrl_5k.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/icefuzz/tests/ioctrl_5k.py b/icefuzz/tests/ioctrl_5k.py new file mode 100644 index 0000000..67c0c6d --- /dev/null +++ b/icefuzz/tests/ioctrl_5k.py @@ -0,0 +1,21 @@ +#!/usr/bin/env python3 + +import fileinput + +for line in fileinput.input(): + line = line.split() + if len(line) == 0: + continue + if line[0] == ".io_tile": + current_tile = (int(line[1]), int(line[2])) + if line[0] == "IoCtrl" and line[1] == "REN_0": + ren = (current_tile[0], current_tile[1], 0) + if line[0] == "IoCtrl" and line[1] == "REN_1": + ren = (current_tile[0], current_tile[1], 1) + if line[0] == "IOB_0": + iob = (current_tile[0], current_tile[1], 0) + if line[0] == "IOB_1": + iob = (current_tile[0], current_tile[1], 1) + +print("(%2d, %2d, %2d, %2d, %2d, %2d)," % (iob[0], iob[1], iob[2], ren[0], ren[1], ren[2])) + |
