diff options
author | Clifford Wolf <clifford@clifford.at> | 2015-02-09 12:02:21 +0100 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2015-02-09 12:02:21 +0100 |
commit | 85887de547fa557f00ebaa5b29091bc420794c22 (patch) | |
tree | c4b484dda266cb7816d66dd8383f144915380908 /manual/PRESENTATION_Prog.tex | |
parent | f889e3d38524bb3cb6a10ccd33f788e987c6e14e (diff) |
Various presentation fixes
Diffstat (limited to 'manual/PRESENTATION_Prog.tex')
-rw-r--r-- | manual/PRESENTATION_Prog.tex | 21 |
1 files changed, 14 insertions, 7 deletions
diff --git a/manual/PRESENTATION_Prog.tex b/manual/PRESENTATION_Prog.tex index d4002458..96189e55 100644 --- a/manual/PRESENTATION_Prog.tex +++ b/manual/PRESENTATION_Prog.tex @@ -123,8 +123,9 @@ has been executed. \subsection{The RTLIL Data Structures} \begin{frame}{\subsecname} -The RTLIL data structures are simple structs utilizing C++ {\tt std::} -containers. +The RTLIL data structures are simple structs utilizing {\tt pool<>} and +{\tt dict<>} containers (drop-in replacementments for {\tt +std::unordered\_set<>} and {\tt std::unordered\_map<>}). \bigskip \begin{itemize} @@ -176,14 +177,14 @@ data structures. Yosys always operates on one active design, but can hold many d \bigskip \begin{lstlisting}[xleftmargin=1cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=C++] struct RTLIL::Design { - std::map<RTLIL::IdString, RTLIL::Module*> modules_; + dict<RTLIL::IdString, RTLIL::Module*> modules_; ... }; struct RTLIL::Module { RTLIL::IdString name; - std::map<RTLIL::IdString, RTLIL::Wire*> wires_; - std::map<RTLIL::IdString, RTLIL::Cell*> cells_; + dict<RTLIL::IdString, RTLIL::Wire*> wires_; + dict<RTLIL::IdString, RTLIL::Cell*> cells_; std::vector<RTLIL::SigSig> connections_; ... }; @@ -293,8 +294,8 @@ instances: \begin{lstlisting}[xleftmargin=1cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=C++] struct RTLIL::Cell { RTLIL::IdString name, type; - std::map<RTLIL::IdString, RTLIL::SigSpec> connections_; - std::map<RTLIL::IdString, RTLIL::Const> parameters; + dict<RTLIL::IdString, RTLIL::SigSpec> connections_; + dict<RTLIL::IdString, RTLIL::Const> parameters; ... }; \end{lstlisting} @@ -555,6 +556,12 @@ yosys-config --exec --cxx --cxxflags --ldflags \ \end{lstlisting} \bigskip +Or shorter: +\begin{lstlisting}[xleftmargin=1cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont] +yosys-config --build my_cmd.so my_cmd.cc +\end{lstlisting} + +\bigskip Load the plugin using the yosys {\tt -m} option: \begin{lstlisting}[xleftmargin=1cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont] yosys -m ./my_cmd.so -p 'my_cmd foo bar' |