lib.memory: remove Memory.Init.depth.
This attribute is fully redundant with `.__len__()`, and is out of place on a `list`-like container like `Memory.Init`. The `.shape` attribute, however, provides a unique function.
This commit is contained in:
parent
2640033316
commit
fc84b8decf
2 changed files with 1 additions and 6 deletions
|
|
@ -285,7 +285,7 @@ class MemoryTestCase(FHDLTestCase):
|
|||
self.assertEqual(m.shape, 8)
|
||||
self.assertEqual(m.depth, 4)
|
||||
self.assertEqual(m.init.shape, 8)
|
||||
self.assertEqual(m.init.depth, 4)
|
||||
self.assertEqual(len(m.init), 4)
|
||||
self.assertEqual(m.attrs, {})
|
||||
self.assertIsInstance(m.init, memory.Memory.Init)
|
||||
self.assertEqual(list(m.init), [1, 2, 3, 0])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue