We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5548d0 commit c06edb4Copy full SHA for c06edb4
spec.md
@@ -1812,7 +1812,9 @@ The bit-index `x[i]` selects the single bit `i`.
1812
1813
The type of the bit-index expression `x[hi:lo]`.{firrtl} is `UInt<hi - lo +
1814
1>`.{firrtl} (even if `x` is an `SInt`) and the type of `x[i]`.{firrtl} is
1815
-`UInt<1>`.{firrtl}.
+`UInt<1>`.{firrtl}. This means that when connecting to a bit-indexed value, the
1816
+right-hand-side of the connection must be a `UInt`.{firrtl}, even if the value
1817
+being indexed is an `SInt`.{firrtl}.
1818
1819
The bit-index can be used as a sink or source. When used as a source,
1820
`x[hi:lo]` is equivalent to `bits(x, hi, lo)` and `x[i]` is equivalent to
0 commit comments