From: Sebastien Bourdeauducq Date: Wed, 20 Jun 2012 22:41:22 +0000 (+0200) Subject: flow/perftool: fix cpt equation X-Git-Tag: 24jan2021_ls180~2099^2~897 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4785ca526b26452e461ec8989d604e8a627ea301;p=litex.git flow/perftool: fix cpt equation --- diff --git a/migen/flow/perftools.py b/migen/flow/perftools.py index 0ead73d1..f5199bad 100644 --- a/migen/flow/perftools.py +++ b/migen/flow/perftools.py @@ -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):