You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/changes.rst
+1
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ Apply the following changes to code written against Amaranth 0.3 to migrate it t
31
31
* Replace uses of ``Const.normalize(value, shape)`` with ``Const(value, shape).value``.
32
32
* Replace uses of ``Repl(value, count)`` with ``value.replicate(count)``.
33
33
* 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``).
34
35
* Remove uses of ``amaranth.lib.scheduler.RoundRobin`` by inlining or copying the implementation of that class.
35
36
36
37
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