Skip to content

Commit f3bcdf4

Browse files
committed
docs/changes: add RFC 42.
1 parent 64809be commit f3bcdf4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

docs/changes.rst

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ Implemented RFCs
5555
.. _RFC 27: https://amaranth-lang.org/rfcs/0027-simulator-testbenches.html
5656
.. _RFC 30: https://amaranth-lang.org/rfcs/0030-component-metadata.html
5757
.. _RFC 36: https://amaranth-lang.org/rfcs/0036-async-testbench-functions.html
58+
.. _RFC 42: https://amaranth-lang.org/rfcs/0042-const-from-shape-castable.html
5859
.. _RFC 39: https://amaranth-lang.org/rfcs/0039-empty-case.html
5960
.. _RFC 43: https://amaranth-lang.org/rfcs/0043-rename-reset-to-init.html
6061
.. _RFC 45: https://amaranth-lang.org/rfcs/0045-lib-memory.html
@@ -75,6 +76,7 @@ Implemented RFCs
7576
* `RFC 30`_: Component metadata
7677
* `RFC 36`_: Async testbench functions
7778
* `RFC 39`_: Change semantics of no-argument ``m.Case()``
79+
* `RFC 42`_: ``Const`` from shape-castable
7880
* `RFC 43`_: Rename ``reset=`` to ``init=``
7981
* `RFC 45`_: Move ``hdl.Memory`` to ``lib.Memory``
8082
* `RFC 46`_: Change ``Shape.cast(range(1))`` to ``unsigned(0)``
@@ -105,6 +107,7 @@ Language changes
105107
* Changed: :py:`Value.matches()` with no patterns is :py:`Const(0)` instead of :py:`Const(1)`. (`RFC 39`_)
106108
* Changed: :py:`Signal(range(stop), init=stop)` warning has been changed into a hard error and made to trigger on any out-of range value.
107109
* Changed: :py:`Signal(range(0))` is now valid without a warning.
110+
* Changed: :py:`Const(value, shape)` now accepts shape-castable objects as :py:`shape`. (`RFC 42`_)
108111
* Changed: :py:`Shape.cast(range(1))` is now :py:`unsigned(0)`. (`RFC 46`_)
109112
* Changed: the :py:`reset=` argument of :class:`Signal`, :meth:`Signal.like`, :class:`amaranth.lib.wiring.Member`, :class:`amaranth.lib.cdc.FFSynchronizer`, and :py:`m.FSM()` has been renamed to :py:`init=`. (`RFC 43`_)
110113
* Changed: :class:`Shape` has been made immutable and hashable.

0 commit comments

Comments
 (0)