mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-24 13:18:56 +00:00
Renamed opt_share to opt_merge
This commit is contained in:
parent
1d0f0d668a
commit
ec93680bd5
8 changed files with 28 additions and 28 deletions
|
@ -16,13 +16,13 @@ passes that each perform a simple optimization:
|
|||
\item Once at the beginning of {\tt opt}:
|
||||
\begin{itemize}
|
||||
\item {\tt opt\_expr}
|
||||
\item {\tt opt\_share -nomux}
|
||||
\item {\tt opt\_merge -nomux}
|
||||
\end{itemize}
|
||||
\item Repeat until result is stable:
|
||||
\begin{itemize}
|
||||
\item {\tt opt\_muxtree}
|
||||
\item {\tt opt\_reduce}
|
||||
\item {\tt opt\_share}
|
||||
\item {\tt opt\_merge}
|
||||
\item {\tt opt\_rmdff}
|
||||
\item {\tt opt\_clean}
|
||||
\item {\tt opt\_expr}
|
||||
|
@ -130,7 +130,7 @@ This pass identifies unused signals and cells and removes them from the design.
|
|||
creates an \B{unused\_bits} attribute on wires with unused bits. This attribute can be
|
||||
used for debugging or by other optimization passes.
|
||||
|
||||
\subsection{The opt\_share pass}
|
||||
\subsection{The opt\_merge pass}
|
||||
|
||||
This pass performs trivial resource sharing. This means that this pass identifies cells
|
||||
with identical inputs and replaces them with a single instance of the cell.
|
||||
|
|
|
@ -489,7 +489,7 @@ select.cc}, {\tt show.cc}, \dots) and a couple of other small utility libraries.
|
|||
This directory contains a subdirectory for each pass or group of passes. For example as
|
||||
of this writing the directory {\tt passes/opt/} contains the code for seven
|
||||
passes: {\tt opt}, {\tt opt\_expr}, {\tt opt\_muxtree}, {\tt opt\_reduce},
|
||||
{\tt opt\_rmdff}, {\tt opt\_rmunused} and {\tt opt\_share}.
|
||||
{\tt opt\_rmdff}, {\tt opt\_rmunused} and {\tt opt\_merge}.
|
||||
|
||||
\item {\tt techlibs/} \\
|
||||
This directory contains simulation models and standard implementations for the
|
||||
|
@ -513,7 +513,7 @@ Yosys. So it is not needed to add additional commands to a central list of comma
|
|||
\end{sloppypar}
|
||||
|
||||
Good starting points for reading example source code to learn how to write passes
|
||||
are {\tt passes/opt/opt\_rmdff.cc} and {\tt passes/opt/opt\_share.cc}.
|
||||
are {\tt passes/opt/opt\_rmdff.cc} and {\tt passes/opt/opt\_merge.cc}.
|
||||
|
||||
See the top-level README file for a quick {\it Getting Started} guide and build
|
||||
instructions. The Yosys build is based solely on Makefiles.
|
||||
|
|
|
@ -145,12 +145,12 @@ is a macro command that calls other commands:
|
|||
|
||||
\begin{lstlisting}[xleftmargin=0.5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||
opt_expr # const folding and simple expression rewriting
|
||||
opt_share -nomux # merging identical cells
|
||||
opt_merge -nomux # merging identical cells
|
||||
|
||||
do
|
||||
opt_muxtree # remove never-active branches from multiplexer tree
|
||||
opt_reduce # consolidate trees of boolean ops to reduce functions
|
||||
opt_share # merging identical cells
|
||||
opt_merge # merging identical cells
|
||||
opt_rmdff # remove/simplify registers with constant inputs
|
||||
opt_clean # remove unused objects (cells, wires) from design
|
||||
opt_expr # const folding and simple expression rewriting
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue