From 33f0c9ae9bf23080051ea491ed16743fb2e526e6 Mon Sep 17 00:00:00 2001 From: Jean THOMAS Date: Wed, 24 Jun 2020 10:34:39 +0200 Subject: [PATCH] Ensure we have at least one master --- gram/core/crossbar.py | 1 + 1 file changed, 1 insertion(+) diff --git a/gram/core/crossbar.py b/gram/core/crossbar.py index 70d2afb..66301a3 100644 --- a/gram/core/crossbar.py +++ b/gram/core/crossbar.py @@ -133,6 +133,7 @@ class gramCrossbar(Elaboratable): controller = self.controller nmasters = len(self.masters) + assert nmasters > 0 # Address mapping -------------------------------------------------------------------------- cba_shifts = { -- 2.30.2