Skip to content

Commit 1d3a620

Browse files
committed
docs/changes: call out backwards incompatibility with Pin.
1 parent 6683c3a commit 1d3a620

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

docs/changes.rst

+1
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ Apply the following changes to code written against Amaranth 0.3 to migrate it t
3131
* Replace uses of ``Const.normalize(value, shape)`` with ``Const(value, shape).value``.
3232
* Replace uses of ``Repl(value, count)`` with ``value.replicate(count)``.
3333
* Replace uses of ``Record`` with :mod:`amaranth.lib.data` and :mod:`amaranth.lib.wiring`. The appropriate replacement depends on the use case. If ``Record`` was being used for data storage and accessing the bit-level representation, use :mod:`amaranth.lib.data`. If ``Record`` was being used for connecting design components together, use :mod:`amaranth.lib.wiring`.
34+
* Ensure the ``Pin`` instance returned by ``platform.request`` is not cast to value directly, but used for its fields. Replace code like ``leds = Cat(platform.request(led, n) for n in range(4))`` with ``leds = Cat(platform.request(led, n).o for n in range(4))`` (note the ``.o``).
3435
* Remove uses of ``amaranth.lib.scheduler.RoundRobin`` by inlining or copying the implementation of that class.
3536

3637
While code that uses the features listed as deprecated below will work in Amaranth 0.4, they will be removed in the next version.

0 commit comments

Comments
 (0)