From a0e06809f9de06d675cc8b7a1c27361c7f76407c Mon Sep 17 00:00:00 2001 From: Hunter Nichols Date: Mon, 27 Aug 2018 16:23:23 -0700 Subject: [PATCH] Comments now display port in stim file. --- compiler/characterizer/delay.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/compiler/characterizer/delay.py b/compiler/characterizer/delay.py index fcecacb5..9b3d3925 100644 --- a/compiler/characterizer/delay.py +++ b/compiler/characterizer/delay.py @@ -651,7 +651,7 @@ class delay(): def add_noop_all_ports(self, comment, address, data): """ Add the control values for a noop to all ports. """ - self.cycle_comments.append("Cycle {0:2d}\t{1:5.2f}ns:\t{2}".format(len(self.cycle_times), + self.cycle_comments.append("Cycle {0:2d}\tPort All\t{1:5.2f}ns:\t{2}".format(len(self.cycle_times), self.t_current, comment)) self.cycle_times.append(self.t_current) @@ -663,9 +663,10 @@ class delay(): def add_read(self, comment, address, data, port): """ Add the control values for a read cycle. """ - self.cycle_comments.append("Cycle {0:2d}\t{1:5.2f}ns:\t{2}".format(len(self.cycle_comments), + self.cycle_comments.append("Cycle {0:2d}\tPort {3}\t{1:5.2f}ns:\t{2}".format(len(self.cycle_comments), self.t_current, - comment)) + comment, + port)) self.cycle_times.append(self.t_current) self.t_current += self.period @@ -682,9 +683,10 @@ class delay(): def add_write(self, comment, address, data, port): """ Add the control values for a write cycle. """ - self.cycle_comments.append("Cycle {0:2d}\t{1:5.2f}ns:\t{2}".format(len(self.cycle_comments), + self.cycle_comments.append("Cycle {0:2d}\tPort {3}\t{1:5.2f}ns:\t{2}".format(len(self.cycle_comments), self.t_current, - comment)) + comment, + port)) self.cycle_times.append(self.t_current) self.t_current += self.period