Skip to content

Commit

Permalink
dtcm
Browse files Browse the repository at this point in the history
  • Loading branch information
Christian-B committed Mar 12, 2024
1 parent e8a06cf commit e564c67
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions spinn_machine/version/abstract_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,9 +223,9 @@ def clock_speed_hz(self) -> int:

@property
@abstractmethod
def dtch_bytes(self) -> int:
def dtcm_bytes(self) -> int:
"""
The dth available on a processor in bytes
The Data Tightly Coupled Memory available on a processor in bytes
:rtype: int
"""
Expand Down
4 changes: 2 additions & 2 deletions spinn_machine/version/version_spin1.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,6 @@ def clock_speed_hz(self) -> int:
return 200

@property
@overrides(AbstractVersion.dtch_bytes)
def dtch_bytes(self) -> int:
@overrides(AbstractVersion.dtcm_bytes)
def dtcm_bytes(self) -> int:
return 2 ** 16
2 changes: 1 addition & 1 deletion unittests/version/test_version3.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def test_create_machin(self):
def test_processor_info(self):
version = Version3()
self.assertEqual(200, version.clock_speed_hz)
self.assertEqual(65536, version.dtch_bytes)
self.assertEqual(65536, version.dtcm_bytes)


if __name__ == '__main__':
Expand Down
2 changes: 1 addition & 1 deletion unittests/version/test_version5.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ def test_create_machin(self):
def test_processor_info(self):
version = Version5()
self.assertEqual(200, version.clock_speed_hz)
self.assertEqual(65536, version.dtch_bytes)
self.assertEqual(65536, version.dtcm_bytes)


if __name__ == '__main__':
Expand Down

0 comments on commit e564c67

Please sign in to comment.