From: Dmitry Selyutin Date: Thu, 19 Aug 2021 15:46:06 +0000 (+0000) Subject: test_caller_bcd: mention reference implementation X-Git-Tag: xlen-bcd~114 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0dc9075b95910eca00316d38178b0b885b4daa7f;p=openpower-isa.git test_caller_bcd: mention reference implementation --- diff --git a/src/openpower/decoder/isa/test_caller_bcd.py b/src/openpower/decoder/isa/test_caller_bcd.py index 12b00b55..5cf3f2ef 100644 --- a/src/openpower/decoder/isa/test_caller_bcd.py +++ b/src/openpower/decoder/isa/test_caller_bcd.py @@ -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)]