From: whitequark Date: Sat, 20 Apr 2019 08:12:29 +0000 (+0000) Subject: back.rtlil: allow record slices on LHS. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=38c41ad4ad349a824a2a1ddc38e6c31503efe254;p=nmigen.git back.rtlil: allow record slices on LHS. --- diff --git a/nmigen/back/rtlil.py b/nmigen/back/rtlil.py index b338491..fd3bfe8 100644 --- a/nmigen/back/rtlil.py +++ b/nmigen/back/rtlil.py @@ -4,7 +4,7 @@ from collections import defaultdict, OrderedDict from contextlib import contextmanager from ..tools import bits_for -from ..hdl import ast, ir, mem, xfrm +from ..hdl import ast, rec, ir, mem, xfrm __all__ = ["convert"] @@ -563,7 +563,7 @@ class _LHSValueCompiler(_ValueCompiler): return wire_next 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, rec.Record)) return self(value) def on_Part(self, value):