From be9fea182d0c683c5f060d86dd324a2789140af4 Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Fri, 29 Nov 2013 22:35:53 +0100 Subject: [PATCH] fhdl/structure: clarify usage restrictions of LHS Cat --- migen/fhdl/structure.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/migen/fhdl/structure.py b/migen/fhdl/structure.py index 688f2468..a94c198b 100644 --- a/migen/fhdl/structure.py +++ b/migen/fhdl/structure.py @@ -151,7 +151,8 @@ class Cat(Value): The return value can be used on either side of an assignment, that is, the concatenated value can be used as an argument on the RHS or as a target on the LHS. If it is used on the LHS, it must solely - consist of `Signal` s. The bit length of the return value is the sum of + consist of `Signal` s, slices of `Signal` s, and other concatenations + meeting these properties. The bit length of the return value is the sum of the bit lengths of the arguments:: flen(Cat(*args)) == sum(flen(arg) for arg in args) -- 2.30.2