From e46118dac0df315694b0fc6b9367d285a8fc12dd Mon Sep 17 00:00:00 2001 From: whitequark Date: Sat, 15 Aug 2020 13:00:50 +0000 Subject: [PATCH] docs/lang: use less confusing placeholder variable names. Fixes #474. --- docs/lang.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/lang.rst b/docs/lang.rst index 43f0964..d2ab200 100644 --- a/docs/lang.rst +++ b/docs/lang.rst @@ -625,10 +625,10 @@ Operation Description Notes ``len(a)`` bit length; value width [#opS1]_ ``a[i:j:k]`` bit slicing by constant subscripts [#opS2]_ ``iter(a)`` bit iteration -``a.bit_select(b, i)`` overlapping part select with variable offset -``a.word_select(b, i)`` non-overlapping part select with variable offset +``a.bit_select(b, w)`` overlapping part select with variable offset +``a.word_select(b, w)`` non-overlapping part select with variable offset ``Cat(a, b)`` concatenation [#opS3]_ -``Repl(a, i)`` replication +``Repl(a, n)`` replication ======================= ================================================ ====== .. [#opS1] Words "length" and "width" have the same meaning when talking about nMigen values. Conventionally, "width" is used. @@ -641,9 +641,9 @@ For the operators introduced by nMigen, the following table explains them in ter nMigen operation Equivalent Python code ======================= ====================== ``Cat(a, b)`` ``a + b`` -``Repl(a, i)`` ``a * i`` -``a.bit_select(b, i)`` ``a[b:b+i]`` -``a.word_select(b, i)`` ``a[b*i:b*i+i]`` +``Repl(a, n)`` ``a * n`` +``a.bit_select(b, w)`` ``a[b:b+w]`` +``a.word_select(b, w)`` ``a[b*w:b*w+w]`` ======================= ====================== .. warning:: -- 2.30.2