From: Irides Date: Sat, 11 Dec 2021 16:27:12 +0000 (-0600) Subject: back.rtlil: support slicing on Parts X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=9f60bb272f23f99f8d411aa59e5c3a098bb4381a;p=nmigen.git back.rtlil: support slicing on Parts Fixes #605. --- diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index 0802b36..0990e42 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -664,7 +664,7 @@ class _LHSValueCompiler(_ValueCompiler): return wire_next or wire_curr def _prepare_value_for_Slice(self, value): - assert isinstance(value, (ast.Signal, ast.Slice, ast.Cat)) + assert isinstance(value, (ast.Signal, ast.Slice, ast.Cat, ast.Part)) return self(value) def on_Part(self, value):