Category: Technology and Engineering

A circuit containing multiplexer drawn using tikz (pgf)

[sourcecode language=”text”] documentclass{article} usepackage{tikz,pgf} usetikzlibrary{circuits.logic.US} usetikzlibrary{arrows} begin{document} begin{figure}[h] begin{tikzpicture}[circuit logic US] %% draw[help lines, draw, very thin, step=0.5cm, color=gray!20] (0,-10) grid +(10,10); defmux { — ++(0,-1) node [above right] {$1$} — ++(0.6,0.2) — ++(0,0.6) — ++(-0.6,0.2) — cycle}; defmuxr { — node [below left] {$1$} ++(1,0) — ++(-0.2,-0.6) — ++(-0.6,0) — ++(-0.2,0.6) — cycle}; % […]