Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm looking for a tool to draw vectorized digital logical circuits. I first wanted to use Circuitikz, but found out that their are only two input lines for AND and OR gates. Are there any options to use a LaTeX package where gates have more input lines. Or are there some usefull tools that can produce vectorized pdf files. I need these tools for a course I'm writing about digital electronics and processors.

thanks in advance.

share|improve this question
2  
Have you checked here: tex.stackexchange.com/questions/3565/… ? –  Richard Terrett Mar 16 '11 at 15:05

1 Answer 1

up vote 7 down vote accepted

An example for the TikZ logic gates with four inputs:

\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{circuits.logic.US}
\begin{document}
\begin{tikzpicture}[circuit logic US]
  \node[and gate, inputs={normal,inverted,normal,inverted}] (A) {};
  \draw (A.input 1 -| -1,0) -- (A.input 1)
        (A.input 2 -| -1,0) -- (A.input 2)
        (A.input 3 -| -1,0) -- (A.input 3)
        (A.input 4 -| -1,0) -- (A.input 4)
        ;
\end{tikzpicture}
\end{document}

logicgate

For more information, see PGF/TikZ 2.10 manual, section 29.3

share|improve this answer

Your Answer

 
discard

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.