51 lines
1.3 KiB
TeX
51 lines
1.3 KiB
TeX
|
\subsubsection{Name}
|
||
|
|
||
|
Param -- How to use parameters
|
||
|
|
||
|
\subsubsection{Synopsys}
|
||
|
|
||
|
\begin{verbatim}
|
||
|
nbit, nword = Param ( "n", "w" )
|
||
|
\end{verbatim}
|
||
|
|
||
|
\subsubsection{Description}
|
||
|
|
||
|
This function allows the user to give parameters when creating a cell.
|
||
|
|
||
|
\subsubsection{Parameters}
|
||
|
|
||
|
\begin{itemize}
|
||
|
\item \verb-args- : letters which correspond to letter typed on the shell
|
||
|
\end{itemize}
|
||
|
|
||
|
\subsubsection{Example}
|
||
|
|
||
|
When one wants to give values to two parameters, one can type on the shell :
|
||
|
\begin{verbatim}
|
||
|
python test.py -n 4 -w 8
|
||
|
\end{verbatim}
|
||
|
|
||
|
The file \verb-test.py- has then to contain :
|
||
|
\begin{verbatim}
|
||
|
nbit, nword = Param ( "n", "w" )
|
||
|
\end{verbatim}
|
||
|
|
||
|
You can see a concrete example at : \hyperref[ref]{\emph{A concrete example}}{}{Example}{secexample}
|
||
|
|
||
|
\subsubsection{Errors}
|
||
|
|
||
|
Some errors may occur :
|
||
|
\begin{itemize}
|
||
|
\item \verb-Error in Param : there is no parameter.-\\The parameters seem to have been forgotten.
|
||
|
\end{itemize}
|
||
|
|
||
|
\subsubsection{See Also}
|
||
|
|
||
|
\hyperref[ref]{\emph{Stratus}}{}{Stratus}{secstratus}
|
||
|
\hyperref[ref]{\emph{Model}}{}{Model}{secmodel}
|
||
|
\hyperref[ref]{\emph{Example}}{}{Example}{secexample}
|
||
|
\hyperref[ref]{\emph{Netlist}}{}{Netlist}{secnetlist}
|
||
|
\hyperref[ref]{\emph{Layout}}{}{Layout}{seclayout}
|
||
|
\hyperref[ref]{\emph{Place and Route}}{}{Place and Route}{secroute}
|
||
|
\hyperref[ref]{\emph{Facilities}}{}{Facilities}{secfacilities}
|