From 4785ca526b26452e461ec8989d604e8a627ea301 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Thu, 21 Jun 2012 00:41:22 +0200 Subject: [PATCH] flow/perftool: fix cpt equation --- migen/flow/perftools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2