add nor and nand to unit test
authorLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Aug 2020 15:09:06 +0000 (16:09 +0100)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Sat, 22 Aug 2020 15:09:06 +0000 (16:09 +0100)
src/soc/fu/logical/test/test_pipe_caller.py

index 9172cb09bf9ad3e9f2b9caa1a316dfb6e4733f6a..3002a4ee13ef0f048d154eb3929688a1479148ee 100644 (file)
@@ -62,7 +62,7 @@ def set_alu_inputs(alu, dec2, sim):
 class LogicalTestCase(TestAccumulatorBase):
 
     def case_complement(self):
-        insns = ["andc", "orc"]
+        insns = ["andc", "orc", "nand", "nor"]
         for i in range(40):
             choice = random.choice(insns)
             lst = [f"{choice} 3, 1, 2"]