Skip to content

Commit 96b70b5

Browse files
committed
Deploying to main from @ amaranth-lang/rfcs@4352e0d 🚀
1 parent c1eb0e5 commit 96b70b5

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

rfcs/0052-choice.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ <h2 id="reference-level-explanation"><a class="header" href="#reference-level-ex
244244
<p><code>Choice</code> is also added to the Amaranth prelude.</p>
245245
<p>In addition, the existing <code>Mux</code> expression is made valid on the left-hand side of an assignment, as if it was lowered as follows:</p>
246246
<pre><code class="language-py">def Mux(sel, val1, val0):
247-
return Choice(a).case(0, val0).default(val1)
247+
return Choice(sel).case(0, val0).default(val1)
248248
</code></pre>
249249
<p><code>ArrayProxy</code> (ie. the type currently returned by <code>Array</code> indexing) is changed from a native <code>Value</code> to a <code>ValueCastable</code> that lowers to <code>Choice</code> (removing the odd case where we can currently build an invaid <code>Value</code>). To avoid problems with lowering the out-of-bounds case, the value returned for out-of-bounds <code>Array</code> accesses is changed to 0.</p>
250250
<p><code>__eq__</code> is added to the <code>ShapeCastable</code> protocol and documented (we already have suitable implementations in <code>lib.data</code> and <code>lib.enum</code>).</p>

rfcs/print.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4867,7 +4867,7 @@ <h2 id="reference-level-explanation-27"><a class="header" href="#reference-level
48674867
<p><code>Choice</code> is also added to the Amaranth prelude.</p>
48684868
<p>In addition, the existing <code>Mux</code> expression is made valid on the left-hand side of an assignment, as if it was lowered as follows:</p>
48694869
<pre><code class="language-py">def Mux(sel, val1, val0):
4870-
return Choice(a).case(0, val0).default(val1)
4870+
return Choice(sel).case(0, val0).default(val1)
48714871
</code></pre>
48724872
<p><code>ArrayProxy</code> (ie. the type currently returned by <code>Array</code> indexing) is changed from a native <code>Value</code> to a <code>ValueCastable</code> that lowers to <code>Choice</code> (removing the odd case where we can currently build an invaid <code>Value</code>). To avoid problems with lowering the out-of-bounds case, the value returned for out-of-bounds <code>Array</code> accesses is changed to 0.</p>
48734873
<p><code>__eq__</code> is added to the <code>ShapeCastable</code> protocol and documented (we already have suitable implementations in <code>lib.data</code> and <code>lib.enum</code>).</p>

rfcs/searchindex.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rfcs/searchindex.json

+1-1
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)