test: bit reverse

This commit is contained in:
Sebastien Bourdeauducq 2015-09-17 14:38:55 +08:00
parent 0a92e346d3
commit 6569c516a1
1 changed files with 1 additions and 0 deletions

View File

@ -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]