diff options
| author | Clifford Wolf <clifford@clifford.at> | 2017-07-31 15:59:14 +0200 |
|---|---|---|
| committer | Clifford Wolf <clifford@clifford.at> | 2017-07-31 15:59:14 +0200 |
| commit | 6948c4370dc3f10d05eedfc4408ecb0cbd5f373c (patch) | |
| tree | c9431ec1cb435318f0b3ded7d28ee8b18bd5e768 /icefuzz/glbcheck.py | |
| parent | 81e943e050dad652da795d21375bb700064116f4 (diff) | |
| parent | 1f9d00bb9cb2eeea0261d00324ff44e9b3f02136 (diff) | |
Merge branch 'ice5k'
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) |
