lib.memory: strip whitespace.
This commit is contained in:
parent
7e291a26e3
commit
715a8d4934
|
@ -145,11 +145,11 @@ class WritePort:
|
||||||
@property
|
@property
|
||||||
def signature(self):
|
def signature(self):
|
||||||
return self._signature
|
return self._signature
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def memory(self):
|
def memory(self):
|
||||||
return self._memory
|
return self._memory
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def domain(self):
|
def domain(self):
|
||||||
return self._domain
|
return self._domain
|
||||||
|
@ -261,15 +261,15 @@ class ReadPort:
|
||||||
@property
|
@property
|
||||||
def signature(self):
|
def signature(self):
|
||||||
return self._signature
|
return self._signature
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def memory(self):
|
def memory(self):
|
||||||
return self._memory
|
return self._memory
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def domain(self):
|
def domain(self):
|
||||||
return self._domain
|
return self._domain
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def transparent_for(self):
|
def transparent_for(self):
|
||||||
return self._transparent_for
|
return self._transparent_for
|
||||||
|
@ -329,7 +329,7 @@ class Memory(wiring.Component):
|
||||||
except (TypeError, ValueError) as e:
|
except (TypeError, ValueError) as e:
|
||||||
raise type(e)("Memory initialization value at address {:x}: {}"
|
raise type(e)("Memory initialization value at address {:x}: {}"
|
||||||
.format(idx, e)) from None
|
.format(idx, e)) from None
|
||||||
|
|
||||||
def __getitem__(self, index):
|
def __getitem__(self, index):
|
||||||
return self._items[index]
|
return self._items[index]
|
||||||
|
|
||||||
|
@ -350,10 +350,10 @@ class Memory(wiring.Component):
|
||||||
|
|
||||||
def __delitem__(self, index):
|
def __delitem__(self, index):
|
||||||
raise TypeError("Deleting items from Memory.init is not allowed")
|
raise TypeError("Deleting items from Memory.init is not allowed")
|
||||||
|
|
||||||
def insert(self, index, value):
|
def insert(self, index, value):
|
||||||
raise TypeError("Inserting items into Memory.init is not allowed")
|
raise TypeError("Inserting items into Memory.init is not allowed")
|
||||||
|
|
||||||
def __len__(self):
|
def __len__(self):
|
||||||
return self._depth
|
return self._depth
|
||||||
|
|
||||||
|
@ -364,7 +364,7 @@ class Memory(wiring.Component):
|
||||||
@property
|
@property
|
||||||
def shape(self):
|
def shape(self):
|
||||||
return self._shape
|
return self._shape
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return f"Memory.Init({self._items!r})"
|
return f"Memory.Init({self._items!r})"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue