mirror of
https://github.com/YosysHQ/yosys
synced 2025-04-07 09:55:20 +00:00
Progress in presentation
This commit is contained in:
parent
9351e4d3ca
commit
2aff7b2a47
|
@ -561,6 +561,157 @@ $\downarrow$ & $\downarrow$ \\
|
||||||
TBD
|
TBD
|
||||||
\end{frame}
|
\end{frame}
|
||||||
|
|
||||||
|
\subsubsection{Example: DSP48\_MACC}
|
||||||
|
|
||||||
|
\begin{frame}[fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
\hfil\begin{tabular}{cc}
|
||||||
|
{\tt test1} & {\tt test2} \\
|
||||||
|
\fbox{\hbox to 5cm {\lstinputlisting[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, firstline=1, lastline=6, language=verilog]{PRESENTATION_ExAdv/macc_xilinx_test.v}}} &
|
||||||
|
\fbox{\hbox to 5cm {\lstinputlisting[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, firstline=8, lastline=13, language=verilog]{PRESENTATION_ExAdv/macc_xilinx_test.v}}} \\
|
||||||
|
$\downarrow$ & $\downarrow$ \\
|
||||||
|
\end{tabular}
|
||||||
|
\vskip-0.5cm
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
read_verilog macc_xilinx_test.v
|
||||||
|
hierarchy -check
|
||||||
|
\end{lstlisting}
|
||||||
|
\vskip-0.5cm
|
||||||
|
\hfil\begin{tabular}{cc}
|
||||||
|
$\downarrow$ & $\downarrow$ \\
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1a.pdf}} &
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2a.pdf}} \\
|
||||||
|
\end{tabular}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
\hfil\begin{tabular}{cc}
|
||||||
|
{\tt test1} & {\tt test2} \\
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1a.pdf}} &
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2a.pdf}} \\
|
||||||
|
$\downarrow$ & $\downarrow$ \\
|
||||||
|
\end{tabular}
|
||||||
|
\vskip-0.2cm
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
techmap -map macc_xilinx_swap_map.v ;;
|
||||||
|
\end{lstlisting}
|
||||||
|
\vskip-0.2cm
|
||||||
|
\hfil\begin{tabular}{cc}
|
||||||
|
$\downarrow$ & $\downarrow$ \\
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1b.pdf}} &
|
||||||
|
\fbox{\includegraphics[width=5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2b.pdf}} \\
|
||||||
|
\end{tabular}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[t, fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
Wrapping in {\tt test1}:
|
||||||
|
\begin{columns}
|
||||||
|
\column[t]{5cm}
|
||||||
|
\vbox to 0cm{\fbox{\includegraphics[width=4.5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1b.pdf}}\vss}
|
||||||
|
\column[t]{6cm}
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
techmap -map macc_xilinx_wrap_map.v
|
||||||
|
|
||||||
|
connwrappers -unsigned $__mul_wrapper \
|
||||||
|
Y Y_WIDTH \
|
||||||
|
-unsigned $__add_wrapper \
|
||||||
|
Y Y_WIDTH ;;
|
||||||
|
\end{lstlisting}
|
||||||
|
\end{columns}
|
||||||
|
|
||||||
|
\vskip1cm
|
||||||
|
\hfil\includegraphics[width=\linewidth,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1c.pdf}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[t, fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
Wrapping in {\tt test2}:
|
||||||
|
\begin{columns}
|
||||||
|
\column[t]{5cm}
|
||||||
|
\vbox to 0cm{\fbox{\includegraphics[width=4.5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2b.pdf}}\vss}
|
||||||
|
\column[t]{6cm}
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
techmap -map macc_xilinx_wrap_map.v
|
||||||
|
|
||||||
|
connwrappers -unsigned $__mul_wrapper \
|
||||||
|
Y Y_WIDTH \
|
||||||
|
-unsigned $__add_wrapper \
|
||||||
|
Y Y_WIDTH ;;
|
||||||
|
\end{lstlisting}
|
||||||
|
\end{columns}
|
||||||
|
|
||||||
|
\vskip1cm
|
||||||
|
\hfil\includegraphics[width=\linewidth,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2c.pdf}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[t, fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
Extract in {\tt test1}:
|
||||||
|
\begin{columns}
|
||||||
|
\column[t]{4.5cm}
|
||||||
|
\vbox to 0cm{
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
design -push
|
||||||
|
read_verilog macc_xilinx_xmap.v
|
||||||
|
techmap -map macc_xilinx_swap_map.v
|
||||||
|
techmap -map macc_xilinx_wrap_map.v;;
|
||||||
|
design -save __macc_xilinx_xmap
|
||||||
|
design -pop
|
||||||
|
\end{lstlisting}
|
||||||
|
\vss}
|
||||||
|
\column[t]{5.5cm}
|
||||||
|
\vskip-1cm
|
||||||
|
\begin{lstlisting}[linewidth=5.5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
extract -constports -ignore_parameters \
|
||||||
|
-map %__macc_xilinx_xmap \
|
||||||
|
-swap $__add_wrapper A,B ;;
|
||||||
|
\end{lstlisting}
|
||||||
|
\vbox to 0cm{\fbox{\includegraphics[width=4.5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1c.pdf}}\vss}
|
||||||
|
\end{columns}
|
||||||
|
|
||||||
|
\vskip2cm
|
||||||
|
\hfil\includegraphics[width=11cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test1d.pdf}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[t, fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
Extract in {\tt test2}:
|
||||||
|
\begin{columns}
|
||||||
|
\column[t]{4.5cm}
|
||||||
|
\vbox to 0cm{
|
||||||
|
\begin{lstlisting}[linewidth=5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
design -push
|
||||||
|
read_verilog macc_xilinx_xmap.v
|
||||||
|
techmap -map macc_xilinx_swap_map.v
|
||||||
|
techmap -map macc_xilinx_wrap_map.v;;
|
||||||
|
design -save __macc_xilinx_xmap
|
||||||
|
design -pop
|
||||||
|
\end{lstlisting}
|
||||||
|
\vss}
|
||||||
|
\column[t]{5.5cm}
|
||||||
|
\vskip-1cm
|
||||||
|
\begin{lstlisting}[linewidth=5.5cm, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
extract -constports -ignore_parameters \
|
||||||
|
-map %__macc_xilinx_xmap \
|
||||||
|
-swap $__add_wrapper A,B ;;
|
||||||
|
\end{lstlisting}
|
||||||
|
\vbox to 0cm{\fbox{\includegraphics[width=4.5cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2c.pdf}}\vss}
|
||||||
|
\end{columns}
|
||||||
|
|
||||||
|
\vskip2cm
|
||||||
|
\hfil\includegraphics[width=11cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2d.pdf}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
\begin{frame}[t, fragile]{\subsubsecname{} -- ?/?}
|
||||||
|
Unwrap in {\tt test2}:
|
||||||
|
|
||||||
|
\hfil\begin{tikzpicture}
|
||||||
|
\node at (1,-1.7) {\begin{lstlisting}[linewidth=5.5cm, frame=single, basicstyle=\ttfamily\fontsize{8pt}{10pt}\selectfont, language=ys]
|
||||||
|
techmap -map macc_xilinx_unwrap_map.v ;;
|
||||||
|
\end{lstlisting}};
|
||||||
|
\node at (0,0) {\includegraphics[width=11cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2d.pdf}};
|
||||||
|
\node at (0,-4) {\includegraphics[width=11cm,trim=1.5cm 1.5cm 1.5cm 1.5cm]{PRESENTATION_ExAdv/macc_xilinx_test2e.pdf}};
|
||||||
|
\draw[-latex] (4,-0.7) .. controls (5,-1.7) .. (4,-2.7);
|
||||||
|
\end{tikzpicture}
|
||||||
|
\end{frame}
|
||||||
|
|
||||||
|
|
||||||
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|
||||||
|
|
||||||
\subsection{Automatic design changes}
|
\subsection{Automatic design changes}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
all: select.pdf red_or3x1.pdf sym_mul.pdf mymul.pdf mulshift.pdf addshift.pdf \
|
all: select.pdf red_or3x1.pdf sym_mul.pdf mymul.pdf mulshift.pdf addshift.pdf \
|
||||||
macc_simple_xmap.pdf
|
macc_simple_xmap.pdf macc_xilinx_xmap.pdf
|
||||||
|
|
||||||
select.pdf: select.v select.ys
|
select.pdf: select.v select.ys
|
||||||
../../yosys select.ys
|
../../yosys select.ys
|
||||||
|
@ -23,3 +23,6 @@ addshift.pdf: addshift_*
|
||||||
macc_simple_xmap.pdf: macc_simple_*.v macc_simple_test.ys
|
macc_simple_xmap.pdf: macc_simple_*.v macc_simple_test.ys
|
||||||
../../yosys macc_simple_test.ys
|
../../yosys macc_simple_test.ys
|
||||||
|
|
||||||
|
macc_xilinx_xmap.pdf: macc_xilinx_*.v macc_xilinx_test.ys
|
||||||
|
../../yosys macc_xilinx_test.ys
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ show -prefix macc_simple_test_00b -format pdf -notitle -lib macc_simple_xmap.v
|
||||||
|
|
||||||
#################################################
|
#################################################
|
||||||
|
|
||||||
|
design -reset
|
||||||
read_verilog macc_simple_test_01.v
|
read_verilog macc_simple_test_01.v
|
||||||
hierarchy -check -top test;;
|
hierarchy -check -top test;;
|
||||||
|
|
||||||
|
|
|
@ -3,21 +3,21 @@ read_verilog -lib -icells macc_xilinx_unwrap_map.v
|
||||||
read_verilog -lib -icells macc_xilinx_xmap.v
|
read_verilog -lib -icells macc_xilinx_xmap.v
|
||||||
hierarchy -check ;;
|
hierarchy -check ;;
|
||||||
|
|
||||||
show -prefix macc_xilinx_test1_a -format pdf -notitle test1
|
show -prefix macc_xilinx_test1a -format pdf -notitle test1
|
||||||
show -prefix macc_xilinx_test2_a -format pdf -notitle test2
|
show -prefix macc_xilinx_test2a -format pdf -notitle test2
|
||||||
|
|
||||||
techmap -map macc_xilinx_swap_map.v;;
|
techmap -map macc_xilinx_swap_map.v;;
|
||||||
|
|
||||||
show -prefix macc_xilinx_test1_b -format pdf -notitle test1
|
show -prefix macc_xilinx_test1b -format pdf -notitle test1
|
||||||
show -prefix macc_xilinx_test2_b -format pdf -notitle test2
|
show -prefix macc_xilinx_test2b -format pdf -notitle test2
|
||||||
|
|
||||||
techmap -map macc_xilinx_wrap_map.v
|
techmap -map macc_xilinx_wrap_map.v
|
||||||
|
|
||||||
connwrappers -unsigned $__mul_wrapper Y Y_WIDTH \
|
connwrappers -unsigned $__mul_wrapper Y Y_WIDTH \
|
||||||
-unsigned $__add_wrapper Y Y_WIDTH;;
|
-unsigned $__add_wrapper Y Y_WIDTH;;
|
||||||
|
|
||||||
show -prefix macc_xilinx_test1_c -format pdf -notitle test1
|
show -prefix macc_xilinx_test1c -format pdf -notitle test1
|
||||||
show -prefix macc_xilinx_test2_c -format pdf -notitle test2
|
show -prefix macc_xilinx_test2c -format pdf -notitle test2
|
||||||
|
|
||||||
design -push
|
design -push
|
||||||
read_verilog macc_xilinx_xmap.v
|
read_verilog macc_xilinx_xmap.v
|
||||||
|
@ -30,11 +30,14 @@ extract -constports -ignore_parameters \
|
||||||
-map %__macc_xilinx_xmap \
|
-map %__macc_xilinx_xmap \
|
||||||
-swap $__add_wrapper A,B ;;
|
-swap $__add_wrapper A,B ;;
|
||||||
|
|
||||||
show -prefix macc_xilinx_test1_d -format pdf -notitle test1
|
show -prefix macc_xilinx_test1d -format pdf -notitle test1
|
||||||
show -prefix macc_xilinx_test2_d -format pdf -notitle test2
|
show -prefix macc_xilinx_test2d -format pdf -notitle test2
|
||||||
|
|
||||||
techmap -map macc_xilinx_unwrap_map.v;;
|
techmap -map macc_xilinx_unwrap_map.v;;
|
||||||
|
|
||||||
show -prefix macc_xilinx_test1_e -format pdf -notitle test1
|
show -prefix macc_xilinx_test1e -format pdf -notitle test1
|
||||||
show -prefix macc_xilinx_test2_e -format pdf -notitle test2
|
show -prefix macc_xilinx_test2e -format pdf -notitle test2
|
||||||
|
|
||||||
|
design -load
|
||||||
|
show -prefix macc_xilinx_xmap -format pdf -notitle
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue