3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2026-08-14 09:55:37 +00:00

opt_clean: move unused_bits analysis to kernel/unused_bits.h

This commit is contained in:
Emil J. Tywoniak 2026-08-11 17:23:57 +02:00
parent bf86dd7faf
commit 0253911ee2
12 changed files with 86 additions and 104 deletions

View file

@ -108,9 +108,7 @@ FSM optimization
The `fsm_opt` pass performs basic optimizations on `$fsm` cells (not including
state recoding). The following optimizations are performed (in this order):
- Unused control outputs are removed from the `$fsm` cell. The attribute
``unused_bits`` (that is usually set by the `opt_clean` pass) is used to
determine which control outputs are unused.
- Unused control outputs are removed from the `$fsm` cell.
- Control inputs that are connected to the same driver are merged.

View file

@ -203,8 +203,6 @@ Removing unused cells and wires - `opt_clean` pass
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This pass identifies unused signals and cells and removes them from the design.
It also creates an ``unused_bits`` attribute on wires with unused bits. This
attribute can be used for debugging or by other optimization passes.
When to use `opt` or `clean`
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~