[icestorm] 30/75: Improved icebox_colbuf

Ruben Undheim rubund-guest at moszumanska.debian.org
Wed Oct 7 15:52:06 UTC 2015


This is an automated email from the git hooks/post-receive script.

rubund-guest pushed a commit to branch master
in repository icestorm.

commit aeb8d6b64585a91f41bf0aa0090486c624f364cc
Author: Clifford Wolf <clifford at clifford.at>
Date:   Sun Aug 2 23:29:50 2015 +0200

    Improved icebox_colbuf
---
 icebox/icebox_colbuf.py | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/icebox/icebox_colbuf.py b/icebox/icebox_colbuf.py
index ac4e6c4..2e3e4b0 100755
--- a/icebox/icebox_colbuf.py
+++ b/icebox/icebox_colbuf.py
@@ -131,18 +131,23 @@ def set_colbuf(ic, tile, bit, value):
     assert False
 
 error_count = 0
-for tile, bits in used_glbs_map.items():
+correct_count = 0
+for tile, bits in sorted(used_glbs_map.items()):
     for bit in bits:
         if tile not in driven_glbs_map or bit not in driven_glbs_map[tile]:
             print("Missing driver for glb_netwk_%d in tile %s" % (bit, tile))
             set_colbuf(ic, tile, bit, "1")
             error_count += 1
-for tile, bits in driven_glbs_map.items():
+for tile, bits in sorted(driven_glbs_map.items()):
     for bit in bits:
         if tile not in used_glbs_map or bit not in used_glbs_map[tile]:
             print("Unused driver for glb_netwk_%d in tile %s" % (bit, tile))
             set_colbuf(ic, tile, bit, "0")
             error_count += 1
+        else:
+            # print("Correct driver for glb_netwk_%d in tile %s" % (bit, tile))
+            correct_count += 1
+print("Found %d correct driver bits." % correct_count)
 if error_count != 0:
     if not fixup_mode:
         print("Found %d errors!" % error_count)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/icestorm.git



More information about the debian-science-commits mailing list