From 1665f293a619b6b989031fb5b293df9509f57600 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Wed, 14 Mar 2012 16:19:29 +0100 Subject: [PATCH] bus/asmibus/hub: require finalization before get_slots --- migen/bus/asmibus.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/migen/bus/asmibus.py b/migen/bus/asmibus.py index 77723b67..3d4ed415 100644 --- a/migen/bus/asmibus.py +++ b/migen/bus/asmibus.py @@ -146,6 +146,8 @@ class Hub: self.tag_call = Signal(BV(tagbits)) def get_slots(self): + if not self.finalized: + raise FinalizeError return sum([port.slots for port in self.ports], []) def get_fragment(self): -- 2.30.2