litescope: fix read in reg.py
authorFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Apr 2015 06:16:31 +0000 (08:16 +0200)
committerFlorent Kermarrec <florent@enjoy-digital.fr>
Mon, 20 Apr 2015 06:16:31 +0000 (08:16 +0200)
misoclib/tools/litescope/host/driver/reg.py

index c101e23c761cb0398c9c5b5702c2bff4c57fe769..204a6262b37922c75971aad7e9e050a3b033a827 100644 (file)
@@ -20,7 +20,7 @@ class MappedReg:
             data = 0
             for i in range(self.length):
                 data = data << self.busword
-                data |= read_datas[i]
+                data |= datas[i]
             return data
  
     def write(self, value):