From: Luke Kenneth Casson Leighton Date: Sun, 28 Jul 2019 12:12:55 +0000 (+0100) Subject: whitespace (autopep8) X-Git-Tag: ls180-24jan2020~708 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d87101892540950eb9b16e9754032bfaafd620d8;p=ieee754fpu.git whitespace (autopep8) --- diff --git a/src/ieee754/fpcommon/test/fpmux.py b/src/ieee754/fpcommon/test/fpmux.py index 45eb6226..64576835 100644 --- a/src/ieee754/fpcommon/test/fpmux.py +++ b/src/ieee754/fpcommon/test/fpmux.py @@ -70,14 +70,14 @@ class MuxInOut: r = res.bits else: r = res - print ("send", muxid, i, hex(op1), hex(r), - fop1, res) + print("send", muxid, i, hex(op1), hex(r), + fop1, res) else: fop1 = self.fpkls(op1) fop2 = self.fpkls(op2) res = self.fpop(fop1, fop2) - print ("send", muxid, i, hex(op1), hex(op2), hex(res.bits), - fop1, fop2, res) + print("send", muxid, i, hex(op1), hex(op2), hex(res.bits), + fop1, fop2, res) yield rs.valid_i.eq(0) # wait random period of time before queueing another value @@ -87,7 +87,7 @@ class MuxInOut: yield rs.valid_i.eq(0) yield - print ("send ended", muxid) + print("send ended", muxid) ## wait random period of time before queueing another value #for i in range(randint(0, 3)): @@ -119,8 +119,8 @@ class MuxInOut: out_i = 0 - print ("recv", out_muxid, hex(out_z), "expected", - hex(self.do[muxid][out_i] )) + print("recv", out_muxid, hex(out_z), "expected", + hex(self.do[muxid][out_i])) # see if this output has occurred already, delete it if it has assert muxid == out_muxid, "out_muxid %d not correct %d" % \ @@ -131,7 +131,7 @@ class MuxInOut: # check if there's any more outputs if len(self.do[muxid]) == 0: break - print ("recv ended", muxid) + print("recv ended", muxid) def create_random(num_rows, width, single_op=False, n_vals=10): @@ -139,7 +139,7 @@ def create_random(num_rows, width, single_op=False, n_vals=10): for muxid in range(num_rows): for i in range(n_vals): if single_op: - op1 = randint(0, (1<