back.rtlil: fix typo.
authorwhitequark <whitequark@whitequark.org>
Mon, 31 Dec 2018 03:37:38 +0000 (03:37 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 31 Dec 2018 03:37:38 +0000 (03:37 +0000)
nmigen/back/rtlil.py

index 9ad30336777ea68dbd61b3fbefac7f0c51c09cd0..10ff80f6bdc6f75e07af5d7adc74b9fea5104658 100644 (file)
@@ -557,7 +557,7 @@ class _StatementCompiler(xfrm.StatementVisitor):
         else:
             # In RTLIL, LHS and RHS of assignment must have exactly same width.
             rhs_sigspec = self.rhs_compiler.match_shape(
-                stmt.rhs, lhs_bits, rhs_sign)
+                stmt.rhs, lhs_bits, lhs_sign)
         self._case.assign(self.lhs_compiler(stmt.lhs), rhs_sigspec)
 
     def on_Switch(self, stmt):