aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2018-09-15 22:46:30 +0200
committerMichael Buesch <m@bues.ch>2018-09-15 22:46:30 +0200
commitd18246eecef53b96a16a6bd38585ee96286e86a3 (patch)
treeb791ded500976c8fb78ec51fa6b61a8f28704fe2
parent55f1183b3b3eae7226cd0cf59b8871cc54fb7064 (diff)
downloadawlsim-d18246eecef53b96a16a6bd38585ee96286e86a3.tar.xz
awlsim-d18246eecef53b96a16a6bd38585ee96286e86a3.zip
gui: Fix memory area length of counter/timerawlsim-0.67.1
Signed-off-by: Michael Buesch <m@bues.ch>
-rw-r--r--awlsim/gui/cpustate.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/awlsim/gui/cpustate.py b/awlsim/gui/cpustate.py
index 6e52c080..4f9bb9ab 100644
--- a/awlsim/gui/cpustate.py
+++ b/awlsim/gui/cpustate.py
@@ -571,11 +571,11 @@ class State_Mem(StateWindow):
addr = self.addrSpin.value()
nrBits = self.widthCombo.itemData(self.widthCombo.currentIndex())
- return MemoryArea(memType = AbstractDisplayWidget.addrspace2memarea[self.addrSpace],
- flags = 0,
- index = dbIndex,
- start = addr,
- length = nrBits // 8)
+ return MemoryArea(memType=AbstractDisplayWidget.addrspace2memarea[self.addrSpace],
+ flags=0,
+ index=dbIndex,
+ start=addr,
+ length=(nrBits // 8))
def getMemoryAreas(self):
return ( self.__makeMemoryArea(), )
@@ -670,11 +670,11 @@ class State_LCD(StateWindow):
nrBits = self.widthCombo.itemData(self.widthCombo.currentIndex())
addr = self.addrSpin.value()
- return MemoryArea(memType = MemoryArea.TYPE_A,
- flags = 0,
- index = 0,
- start = addr,
- length = nrBits // 8)
+ return MemoryArea(memType=MemoryArea.TYPE_A,
+ flags=0,
+ index=0,
+ start=addr,
+ length=(nrBits // 8))
def getMemoryAreas(self):
return ( self.__makeMemoryArea(), )
@@ -829,11 +829,11 @@ class _State_TimerCounter(StateWindow):
def __makeMemoryArea(self):
index = self.indexSpin.value()
- return MemoryArea(memType = self.memAreaType,
- flags = 0,
- index = index,
- start = 0,
- length = 32)
+ return MemoryArea(memType=self.memAreaType,
+ flags=0,
+ index=index,
+ start=0,
+ length=4)
def getMemoryAreas(self):
return ( self.__makeMemoryArea(), )
bues.ch cgit interface