diff options
author | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-07-02 15:38:44 -0700 |
---|---|---|
committer | Scott Shawcroft <scott.shawcroft@gmail.com> | 2017-07-02 15:38:44 -0700 |
commit | b00ffb1c091b65ed6c741dde74a4e7d5f709efd1 (patch) | |
tree | 37504d253d295bb2487bb5753fb22f8a8ca09d17 /icefuzz/glbcheck.py | |
parent | a25c8679ac37df5219e1d7a8cdd932288cd596b1 (diff) | |
download | icestorm-b00ffb1c091b65ed6c741dde74a4e7d5f709efd1.tar.gz icestorm-b00ffb1c091b65ed6c741dde74a4e7d5f709efd1.tar.bz2 icestorm-b00ffb1c091b65ed6c741dde74a4e7d5f709efd1.zip |
Introduce device class into fuxx workign directories and have glbcheck handle unsupported 5k tiles ok.
Diffstat (limited to 'icefuzz/glbcheck.py')
-rw-r--r-- | icefuzz/glbcheck.py | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/icefuzz/glbcheck.py b/icefuzz/glbcheck.py index 4c86f0e..742c335 100644 --- a/icefuzz/glbcheck.py +++ b/icefuzz/glbcheck.py @@ -30,13 +30,13 @@ with open(argv[1]) as f: with open(argv[2]) as f: current_tile = None for line in f: - if line.find("Tile_") >= 0: + if line.startswith(("Tile", "IO_Tile", "RAM_Tile", "LogicTile")): f = line.replace("IO_", "").replace("RAM_", "").split("_") assert len(f) == 3 current_tile = "%02d.%02d" % (int(f[1]), int(f[2])) continue - if line.find("GlobalNetwork") >= 0: + if line.find("GlobalNetwork") >= 0 or line.startswith(("IpCon", "DSP")): current_tile = None continue @@ -54,10 +54,15 @@ only_in_asc = asc_bits - glb_bits only_in_glb = glb_bits - asc_bits assert len(only_in_asc) != 0 or len(only_in_glb) != 0 -if len(only_in_asc) != 0: - print("Only in ASC: %s" % sorted(only_in_asc)) -if len(only_in_glb) != 0: - print("Only in GLB: %s" % sorted(only_in_glb)) +print("Only in ASC:") +for bit in sorted(only_in_asc): + print(bit) + +print() + +print("Only in GLB:") +for bit in sorted(only_in_glb): + print(bit) exit(1) |