From 9f60bb272f23f99f8d411aa59e5c3a098bb4381a Mon Sep 17 00:00:00 2001 From: Irides Date: Sat, 11 Dec 2021 10:27:12 -0600 Subject: [PATCH] back.rtlil: support slicing on Parts Fixes #605. --- nmigen/back/rtlil.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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): -- 2.30.2