From: Sebastien Bourdeauducq Date: Thu, 17 Sep 2015 06:38:55 +0000 (+0800) Subject: test: bit reverse X-Git-Tag: 24jan2021_ls180~2099^2~3^2~85 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6569c516a1b15a995438a876565ad201afd73568;p=litex.git test: bit reverse --- diff --git a/migen/test/test_constant.py b/migen/test/test_constant.py index 8ad637fc..040e1900 100644 --- a/migen/test/test_constant.py +++ b/migen/test/test_constant.py @@ -14,6 +14,7 @@ class ConstantCase(SimCase, unittest.TestCase): (Signal(3), Constant(-1, 7), 7), (Signal(3), Constant(0b10101)[:3], 0b101), (Signal(3), Constant(0b10101)[1:4], 0b10), + (Signal(4), Constant(0b1100)[::-1], 0b0011), ] self.comb += [a.eq(b) for a, b, c in self.sigs]