@@ -652,7 +652,7 @@ def read(self) -> tuple[float, float]:
652652 (energy, latency): Tuple in (Joules, seconds).
653653 """
654654 self ._interpolate_and_call_cacti ()
655- return self .read_energy , self ._get_latency_per_bit ()
655+ return self .read_energy , self ._get_latency_per_bit () * self . width
656656
657657 @action (bits_per_action = "width" )
658658 def write (self ) -> tuple [float , float ]:
@@ -669,7 +669,7 @@ def write(self) -> tuple[float, float]:
669669 (energy, latency): Tuple in (Joules, seconds).
670670 """
671671 self ._interpolate_and_call_cacti ()
672- return self .write_energy , self ._get_latency_per_bit ()
672+ return self .write_energy , self ._get_latency_per_bit () * self . width
673673
674674
675675class Cache (_Memory ):
@@ -763,7 +763,7 @@ def read(self) -> tuple[float, float]:
763763 (energy, latency): Tuple in (Joules, seconds).
764764 """
765765 self ._interpolate_and_call_cacti ()
766- return self .read_energy , self ._get_latency_per_bit ()
766+ return self .read_energy , self ._get_latency_per_bit () * self . width
767767
768768 @action (bits_per_action = "width" )
769769 def write (self ) -> tuple [float , float ]:
@@ -780,4 +780,4 @@ def write(self) -> tuple[float, float]:
780780 (energy, latency): Tuple in (Joules, seconds).
781781 """
782782 self ._interpolate_and_call_cacti ()
783- return self .write_energy , self ._get_latency_per_bit ()
783+ return self .write_energy , self ._get_latency_per_bit () * self . width
0 commit comments