From: Jean THOMAS Date: Wed, 24 Jun 2020 08:34:39 +0000 (+0200) Subject: Ensure we have at least one master X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=33f0c9ae9bf23080051ea491ed16743fb2e526e6;p=gram.git Ensure we have at least one master --- 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 = {