diff options
| author | hermitsoft <hermisu@mail.com> | 2017-03-10 02:09:46 +0100 |
|---|---|---|
| committer | hermitsoft <hermisu@mail.com> | 2017-03-10 02:09:46 +0100 |
| commit | e832acc445f64d1f9379eef8ef01576ccc0494b6 (patch) | |
| tree | 429c136200b76a4a3621e71f62c608365998b142 /icefuzz/tests/ioctrl_384.py | |
| parent | dacf221f3b61603b5d1998ca0afca125a5b18d50 (diff) | |
icefuzz data and test scripts for LP384-CM49
Diffstat (limited to 'icefuzz/tests/ioctrl_384.py')
| -rw-r--r-- | icefuzz/tests/ioctrl_384.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/icefuzz/tests/ioctrl_384.py b/icefuzz/tests/ioctrl_384.py new file mode 100644 index 0000000..ec8ddb8 --- /dev/null +++ b/icefuzz/tests/ioctrl_384.py @@ -0,0 +1,26 @@ +#!/usr/bin/env python3 + +import fileinput + +ren = None + +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) + +if ren is None: + print("(%2d, %2d, %2d, ? , ? , ? )," % (iob[0], iob[1], iob[2])) +else: + print("(%2d, %2d, %2d, %2d, %2d, %2d)," % (iob[0], iob[1], iob[2], ren[0], ren[1], ren[2])) + |
