From: Florent Kermarrec Date: Mon, 24 Aug 2015 17:40:53 +0000 (+0200) Subject: litescope/core/port: fix EdgeDetector CSRs names X-Git-Tag: 24jan2021_ls180~2129 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=27b1dd7d9e38224dd34484e359242d3df3f62c5e;p=litex.git litescope/core/port: fix EdgeDetector CSRs names --- diff --git a/misoclib/tools/litescope/core/port.py b/misoclib/tools/litescope/core/port.py index dae91a6a..26e9802e 100644 --- a/misoclib/tools/litescope/core/port.py +++ b/misoclib/tools/litescope/core/port.py @@ -99,14 +99,14 @@ class LiteScopeEdgeDetectorUnit(Module): class LiteScopeEdgeDetector(LiteScopeEdgeDetectorUnit, AutoCSR): def __init__(self, dw): LiteScopeEdgeDetectorUnit.__init__(self, dw) - self._rising = CSRStorage(dw) - self._falling = CSRStorage(dw) - self._both = CSRStorage(dw) + self._rising_mask = CSRStorage(dw) + self._falling_mask = CSRStorage(dw) + self._both_mask = CSRStorage(dw) # # # self.comb += [ - self.rising_mask.eq(self._rising.storage), - self.falling_mask.eq(self._falling.storage), - self.both_mask.eq(self._both.storage) + self.rising_mask.eq(self._rising_mask.storage), + self.falling_mask.eq(self._falling_mask.storage), + self.both_mask.eq(self._both_mask.storage) ]