test_caller_bcd: mention reference implementation
authorDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Thu, 19 Aug 2021 15:46:06 +0000 (15:46 +0000)
committerDmitry Selyutin <dmitry.selyutin@3mdeb.com>
Thu, 19 Aug 2021 17:34:08 +0000 (17:34 +0000)
src/openpower/decoder/isa/test_caller_bcd.py

index 12b00b55288d7b343a062408c21370a8d54539e9..5cf3f2efd6678ebf2ed3cee8c6ff12dfcc43d4db 100644 (file)
@@ -319,6 +319,8 @@ class BCDTestCase(FHDLTestCase):
         self.run_tst("cbcdtd", mapping)
 
     def test_addg6s(self):
+        # Reference implementation for addg6s, adopted to Python.
+        # https://github.com/antonblanchard/microwatt/blob/master/execute1.vhdl
         def addg6s(a, b):
             def bits(value, bits):
                 lsb = [((value >> bit) & 1) for bit in range(bits, -1, -1)]