| 1 |
\documentclass[tikz, border=10pt]{standalone} |
| 2 |
\usetikzlibrary{shapes.geometric, arrows.meta, positioning, calc, shadows, decorations.markings} |
| 3 |
\usepackage{../../register-transfer-level} |
| 4 |
|
| 5 |
\begin{document} |
| 6 |
|
| 7 |
\begin{tikzpicture}[>=Stealth, thick, |
| 8 |
scale=0.8] |
| 9 |
\createMux[rtl_height=3cm]{muxTitle}(0,0){{\sffamily \Large 000}, {\sffamily \Large 001}, {\sffamily \Large 010}, {\sffamily \Large 011}, {\sffamily \Large 100}, {\sffamily \Large 101}, {\sffamily \Large 110}, {\sffamily\Large 111}}; |
| 10 |
\draw[<-] (muxTitle-in-1) -- ++(-1, 0) node[left] {\sffamily Input 1}; |
| 11 |
\draw[<-] (muxTitle-in-2) -- ++(-1, 0) node[left] {\sffamily Input 2}; |
| 12 |
\draw[<-] (muxTitle-in-3) -- ++(-1, 0) node[left] {\sffamily Input 3}; |
| 13 |
\draw[<-] (muxTitle-in-4) -- ++(-1, 0) node[left] {\sffamily Input 4}; |
| 14 |
\draw[<-] (muxTitle-in-5) -- ++(-1, 0) node[left] {\sffamily Input 5}; |
| 15 |
\draw[<-] (muxTitle-in-6) -- ++(-1, 0) node[left] {\sffamily Input 6}; |
| 16 |
\draw[<-] (muxTitle-in-7) -- ++(-1, 0) node[left] {\sffamily Input 7}; |
| 17 |
\draw[<-] (muxTitle-in-8) -- ++(-1, 0) node[left] {\sffamily Input 8}; |
| 18 |
\draw[->] (muxTitle-out) -- ++(1, 0) node[right] {\sffamily Output}; |
| 19 |
\draw[->, rtl_bus={3}, line width=2] ($(muxTitle-sel)$) -- +(0,-1) node[right, font=\small, yshift=0.5cm] {\sffamily Sel} -- +(-1.5, -1) (muxTitle-sel); |
| 20 |
\end{tikzpicture} |
| 21 |
|
| 22 |
\end{document} |