Add tests for minor_58 and minor_62
authorMichael Nolan <mtnolan2640@gmail.com>
Wed, 4 Mar 2020 15:42:47 +0000 (10:42 -0500)
committerMichael Nolan <mtnolan2640@gmail.com>
Wed, 4 Mar 2020 15:42:47 +0000 (10:42 -0500)
src/decoder/power_decoder.py
src/decoder/test/test_power_decoder.py

index dcfe7a9723b748677bd3ac0cb54433bbc4ad3de1..a2699a9185c2f9841dfb59b2c0170c479b3ed05d 100644 (file)
@@ -171,10 +171,10 @@ pminor = [
                opint=True, bitsel=(1, 5)),
     Subdecoder(pattern=31, csv=get_csv("minor_31.csv"),
                opint=True, bitsel=(1, 11)),
-    Subdecoder(pattern=58, csv=get_csv("minor_58.csv"),
-    #            opint=True, bitsel=(0, 1)),
-    Subdecoder(pattern=62, csv=get_csv("minor_62.csv"),
-    #            opint=True, bitsel=(0, 1)),
+    Subdecoder(pattern=58, csv=get_csv("minor_58.csv"),
+               opint=True, bitsel=(0, 2)),
+    Subdecoder(pattern=62, csv=get_csv("minor_62.csv"),
+               opint=True, bitsel=(0, 2)),
 ]
 
 opcodes = get_csv("major.csv")
index 186867146ae200f1855fecc2dfebaf73bcef3648..9b054b1dc680d911d945a680b04f6fbf9c574dbb 100644 (file)
@@ -120,6 +120,15 @@ class DecoderTestCase(FHDLTestCase):
         self.run_tst((1, 11), "minor_31.csv", minor=(31, (26, 32)))
         self.generate_ilang((1, 11), "minor_31.csv", suffix=(0, 5))
 
+    def test_minor_58(self):
+        self.run_tst((0, 2), "minor_58.csv", minor=(58, (26, 32)))
+        self.generate_ilang((0, 2), "minor_58.csv")
+
+    def test_minor_62(self):
+        self.run_tst((0, 2), "minor_62.csv", minor=(62, (26, 32)))
+        self.generate_ilang((0, 2), "minor_62.csv")
+
+
     # #def test_minor_31_prefix(self):
     # #    self.run_tst(10, "minor_31.csv", suffix=(5, 10))
     # #    self.generate_ilang(10, "minor_31.csv", suffix=(5, 10))