Skip to content

Commit 8441459

Browse files
committed
Deploying to main from @ amaranth-lang/rfcs@ed2956f 🚀
1 parent fea74b5 commit 8441459

File tree

4 files changed

+2
-14
lines changed

4 files changed

+2
-14
lines changed

rfcs/0065-format-struct-enum.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -212,12 +212,6 @@ <h2 id="guide-level-explanation"><a class="header" href="#guide-level-explanatio
212212
def format(self, obj, spec):
213213
assert spec == &quot;&quot;
214214
return Format(&quot;{{a: {}, b: {}, c: {}}}&quot;, obj.a, obj.b, obj.c)
215-
return Format.Struct(Value.cast(obj), {
216-
# Assume obj.a, obj.b, obj.c are accessors that return the struct fields as ValueLike.
217-
&quot;a&quot;: Format(&quot;{}&quot;, obj.a),
218-
&quot;b&quot;: Format(&quot;{}&quot;, obj.b),
219-
&quot;c&quot;: Format(&quot;{}&quot;, obj.c),
220-
})
221215
</code></pre>
222216
<p>with the added benefit that any <code>MyStruct</code>-shaped signal will automatically have per-field traces included in VCD output and per-field wires included in RTLIL output.</p>
223217
<p>Implementations of <code>format</code> are added as appropriate to <code>lib.enum</code> and <code>lib.data</code>, making use of the above features.</p>

rfcs/print.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5926,12 +5926,6 @@ <h2 id="guide-level-explanation-36"><a class="header" href="#guide-level-explana
59265926
def format(self, obj, spec):
59275927
assert spec == &quot;&quot;
59285928
return Format(&quot;{{a: {}, b: {}, c: {}}}&quot;, obj.a, obj.b, obj.c)
5929-
return Format.Struct(Value.cast(obj), {
5930-
# Assume obj.a, obj.b, obj.c are accessors that return the struct fields as ValueLike.
5931-
&quot;a&quot;: Format(&quot;{}&quot;, obj.a),
5932-
&quot;b&quot;: Format(&quot;{}&quot;, obj.b),
5933-
&quot;c&quot;: Format(&quot;{}&quot;, obj.c),
5934-
})
59355929
</code></pre>
59365930
<p>with the added benefit that any <code>MyStruct</code>-shaped signal will automatically have per-field traces included in VCD output and per-field wires included in RTLIL output.</p>
59375931
<p>Implementations of <code>format</code> are added as appropriate to <code>lib.enum</code> and <code>lib.data</code>, making use of the above features.</p>

rfcs/searchindex.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rfcs/searchindex.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)