From: Sebastien Bourdeauducq Date: Fri, 29 Nov 2013 21:35:53 +0000 (+0100) Subject: fhdl/structure: clarify usage restrictions of LHS Cat X-Git-Tag: 24jan2021_ls180~2099^2~426 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=be9fea182d0c683c5f060d86dd324a2789140af4;p=litex.git fhdl/structure: clarify usage restrictions of LHS Cat --- 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)