Ensure we have at least one master
authorJean THOMAS <git0@pub.jeanthomas.me>
Wed, 24 Jun 2020 08:34:39 +0000 (10:34 +0200)
committerJean THOMAS <git0@pub.jeanthomas.me>
Wed, 24 Jun 2020 08:34:39 +0000 (10:34 +0200)
gram/core/crossbar.py

index 70d2afbad36d955f80139f2e4df08acb20e14b84..66301a36d8abd32140455b8acdadb1739d90cfc7 100644 (file)
@@ -133,6 +133,7 @@ class gramCrossbar(Elaboratable):
 
         controller = self.controller
         nmasters = len(self.masters)
+        assert nmasters > 0
 
         # Address mapping --------------------------------------------------------------------------
         cba_shifts = {