From: Sebastien Bourdeauducq Date: Wed, 20 Nov 2013 16:45:09 +0000 (+0100) Subject: flow/isd: update to new APIs X-Git-Tag: 24jan2021_ls180~2099^2~445 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cdabf34bee2022d9115213f87f71c4ed257e9bea;p=litex.git flow/isd: update to new APIs --- diff --git a/migen/flow/isd.py b/migen/flow/isd.py index 8238f5e1..2cc11c5d 100644 --- a/migen/flow/isd.py +++ b/migen/flow/isd.py @@ -54,14 +54,15 @@ class DFGReporter(DFGHook, AutoCSR): ### DFGHook.__init__(self, dfg, - lambda u, ep, v: EndpointReporter(u.endpoints[ep], nbits)) + lambda u, ep, v: EndpointReporter(getattr(u, ep), nbits)) + hooks = list(self.hooks_iter()) self.comb += [ self._r_magic.status.eq(ISD_MAGIC), - self._r_neps.status.eq(len(self.hooks_iter())), + self._r_neps.status.eq(len(hooks)), self._r_nbits.status.eq(nbits) ] - for h in self.hooks_iter(): + for h in hooks: self.comb += [ h.freeze.eq(self._r_freeze.storage), h.reset.eq(self._r_reset.re)