add extra tests, find out whats going on with eq_gt_ge
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Feb 2020 20:43:46 +0000 (20:43 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Wed, 5 Feb 2020 20:43:46 +0000 (20:43 +0000)
src/ieee754/part_cmp/eq_gt_ge.py

index d010c21bdc9e1e835cb54dd533212d9505ace38f..7120ca1f0345a1f4e7c672c6da2cdb0669a09f65 100644 (file)
@@ -107,13 +107,17 @@ if __name__ == "__main__":
     sim = Simulator(m)
 
     def process():
-        yield mask.eq(0b10)
+        yield mask.eq(0b010)
         yield egg.a.eq(0xf000)
         yield egg.b.eq(0)
         yield Delay(1e-6)
         out = yield egg.output
         print ("out", bin(out))
-        yield mask.eq(0b1111)
+        yield mask.eq(0b111)
+        yield egg.a.eq(0x0000)
+        yield egg.b.eq(0)
+        yield Delay(1e-6)
+        yield mask.eq(0b010)
         yield egg.a.eq(0x0000)
         yield egg.b.eq(0)
         yield Delay(1e-6)