summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
inline | side by side (from parent 1:
05aaa48)
This also outputs one item of OUT_BINARY per jitter value (not one
item per ASCII character in the ASCII floating point number).
def putb(self, delta):
if delta is None:
return
def putb(self, delta):
if delta is None:
return
- # Format the delta to an ASCII float output.
- for x in str(delta):
- self.put(self.clk_start, self.sig_start, self.out_bin, (0, bytes([ord(x)])))
- self.put(self.clk_start, self.sig_start, self.out_bin, (0, bytes([ord('\n')])))
+ # Format the delta to an ASCII float value terminated by a newline.
+ x = str(delta) + '\n'
+ self.put(self.clk_start, self.sig_start, self.out_bin,
+ (0, x.encode('UTF-8')))
# Helper function for missed clock and signal annotations.
def putm(self, data):
# Helper function for missed clock and signal annotations.
def putm(self, data):