flow/perftool: fix cpt equation
authorSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 22:41:22 +0000 (00:41 +0200)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 20 Jun 2012 22:41:22 +0000 (00:41 +0200)
migen/flow/perftools.py

index 0ead73d16697be2026f56b1b34820c3d0547ce42..f5199bad493f35b12eacd2aa5b438a7c1c76b569 100644 (file)
@@ -14,7 +14,7 @@ class EndpointReporter(PureSimulable):
        
        # Total number of cycles per token (inverse token rate)
        def cpt(self):
-               return (self.inactive + self.nack + 1)/self.ack
+               return (self.inactive + self.nack + self.ack)/self.ack
        
        # Inactivity cycles per token (slack)
        def ipt(self):