mirror of
https://github.com/anatolykopyl/term-paper-tes.git
synced 2026-03-26 04:44:39 +00:00
47 lines
1.3 KiB
TeX
47 lines
1.3 KiB
TeX
%\begin{landscape}
|
||
\begin{figure}[H]
|
||
\begin{tikzpicture}[x=1cm, y=-1cm]
|
||
\node at (-0.5,0) [left] {$s_1=00$};
|
||
\node at (-0.5,1) [left] {$s_2=10$};
|
||
\node at (-0.5,2) [left] {$s_3=01$};
|
||
\node at (-0.5,3) [left] {$s_4=11$};
|
||
|
||
% Nodes
|
||
\foreach \x in {0,...,12} {
|
||
\node at (\x,-.7) {$\x$};
|
||
\foreach \y in {0,...,3} {
|
||
\node (s\x\y) at (\x,\y) [circle,fill=black,scale=0.7] {};
|
||
}
|
||
}
|
||
|
||
% Edges
|
||
\trellisEdges{0}{0}
|
||
\trellisEdges{1}{0}
|
||
\trellisEdges{1}{1}
|
||
\foreach \x in {2,...,11} {
|
||
\foreach \y in {0,...,3} {
|
||
\trellisEdges{\x}{\y}
|
||
}
|
||
}
|
||
|
||
% Inputs and Outputs
|
||
\node at (-0.5,4) [left] {ИС};
|
||
\node at (-0.5,5) [left] {КС};
|
||
|
||
\trellisInOut{0}{0.5}{1}{11}
|
||
\trellisInOut{1}{1.5}{0}{10}
|
||
\trellisInOut{2}{1.5}{1}{00}
|
||
\trellisInOut{3}{2}{1}{01}
|
||
\trellisInOut{4}{3}{1}{10}
|
||
\trellisInOut{5}{3}{1}{10}
|
||
\trellisInOut{6}{2.5}{0}{01}
|
||
\trellisInOut{7}{1}{0}{11}
|
||
\trellisInOut{8}{0.5}{1}{11}
|
||
\trellisInOut{9}{1.5}{0}{01}
|
||
\trellisInOut{10}{1}{0}{11}
|
||
\trellisInOut{11}{0}{0}{00}
|
||
\end{tikzpicture}
|
||
|
||
\caption{Путь на решетке кодера} \label{fig:coder}
|
||
\end{figure}
|
||
%\end{landscape} |