TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

macro 16 pin

I want to draw this macro by use circuit-tikz package.

share|improve this question
Welcome to TeX.SX. Questions about how to draw specific graphics that just post an image of the desired result are really not reasonable questions to ask on the site. Please post a minimal compilable document showing that you've tried to produce the image and then people will be happy to help you with any specific problems you may have. See minimal working example (MWE) for what needs to go into such a document. – Holene May 12 '14 at 5:30
@Holene.Thank you for your guidance.You are right... – user50054 May 12 '14 at 19:14
Though Gonzalo the madman did just that! :-) Such procrastination! – Holene May 12 '14 at 20:04
up vote 7 down vote accepted

You can use an and gate from the circuits.logic.IEC library from TikZ:



\begin{circuitikz}[circuit logic IEC] 
\draw (4,0) node[european and port] (euand) {};
  and gate,
  and gate IEC symbol={},
  text height=3cm,
  text width=2cm,
] (A) {};
\foreach \Valor in {1,...,8}
  \draw ([xshift=-20pt]A.input \Valor) -- (A.input \Valor) node[right] {$I_{\number\numexpr\Valor-1\relax}$};
\foreach \Valor [count=\xi] in {12,0,-12}
  \draw ([xshift=\Valor]A.south) node[above] {$S_{\number\numexpr\xi-1\relax}$}  -- ++(0,-10pt);  
\node[left] at (A.output) {$Z$};
\draw (A.output) -| (euand.in 1);
\draw (A.output) -| (euand.in 2);


enter image description here

share|improve this answer
@ Gonzalo Medina.Thank you .good luck... – user50054 May 12 '14 at 20:10

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.