From 1793efb50b85cc2ef847b31801d3d22258819e84 Mon Sep 17 00:00:00 2001 From: Vamsi Vytla Date: Wed, 3 Mar 2021 14:38:27 -0800 Subject: [PATCH] litex/soc/cores/ussysmon.py: dadr address space bump --- litex/soc/cores/ussysmon.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/litex/soc/cores/ussysmon.py b/litex/soc/cores/ussysmon.py index 9fd4da3c4..62e8140da 100644 --- a/litex/soc/cores/ussysmon.py +++ b/litex/soc/cores/ussysmon.py @@ -46,7 +46,7 @@ class USSYSMON(Module, AutoCSR): self.dwe = Signal() self.den = Signal() self.drdy = Signal() - self.dadr = Signal(7) + self.dadr = Signal(8) self.di = Signal(16) self.do = Signal(16) self.drp_en = Signal() @@ -103,7 +103,7 @@ class USSYSMON(Module, AutoCSR): self.sync += [ If(self.drdy, Case(channel, dict( - (k, v.status.eq(self.do >> 6)) + (k, v.status.eq((self.do >> 6) & 0x3ff)) for k, v in channels.items())) ) ] @@ -119,7 +119,7 @@ class USSYSMON(Module, AutoCSR): self.drp_read = CSR() self.drp_write = CSR() self.drp_drdy = CSRStatus() - self.drp_adr = CSRStorage(7, reset_less=True) + self.drp_adr = CSRStorage(8, reset_less=True) self.drp_dat_w = CSRStorage(16, reset_less=True) self.drp_dat_r = CSRStatus(16)