Loading files
This file is pinned to the selected release. Download the original to open it in your design tool.
Code conversion
###############
.. py:module:: amaranth.lib.coding
The :mod:`amaranth.lib.coding` module provides building blocks for conversion between different encodings of binary numbers.
One-hot coding
==============
.. autoclass:: Encoder()
.. autoclass:: Decoder()
Priority coding
===============
.. autoclass:: PriorityEncoder()
.. autoclass:: PriorityDecoder()
Gray coding
===========
.. autoclass:: GrayEncoder()
.. autoclass:: GrayDecoder()
6c4102001This file is pinned to the selected release. Download the original to open it in your design tool.