From 82e42bb5007378d6dc435f1350d8226c414ff4e5 Mon Sep 17 00:00:00 2001 From: Florent Kermarrec Date: Sun, 1 May 2016 12:27:50 +0200 Subject: [PATCH] core/perf: remove _ on CSRs --- litedram/core/perf.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/litedram/core/perf.py b/litedram/core/perf.py index b266242..b8edcfe 100644 --- a/litedram/core/perf.py +++ b/litedram/core/perf.py @@ -5,10 +5,10 @@ from litex.soc.interconnect.csr import * class Bandwidth(Module, AutoCSR): def __init__(self, cmd, data_width, period_bits=24): - self._update = CSR() - self._nreads = CSRStatus(period_bits) - self._nwrites = CSRStatus(period_bits) - self._data_width = CSRStatus(bits_for(data_width), reset=data_width) + self.update = CSR() + self.nreads = CSRStatus(period_bits) + self.nwrites = CSRStatus(period_bits) + self.data_width = CSRStatus(bits_for(data_width), reset=data_width) # # # @@ -40,8 +40,8 @@ class Bandwidth(Module, AutoCSR): If(cmd_is_read, nreads.eq(nreads + 1)), If(cmd_is_write, nwrites.eq(nwrites + 1)), ), - If(self._update.re, - self._nreads.status.eq(nreads_r), - self._nwrites.status.eq(nwrites_r) + If(self.update.re, + self.nreads.status.eq(nreads_r), + self.nwrites.status.eq(nwrites_r) ) ]