4

I want to draw a logical circuit with a multiplexer. Is there any symbol provided by the TikZ package? I'm using the TikZ library circuits.logic to draw logical circuit symbols.

Or is there any possibility to built a multiplexer by myself and provide the number of inputs I need (so I can connect them to other logical symbols)?

Torbjørn T.
  • 206,688
domna
  • 41
  • 3
  • Perhaps show us a hand-drawn picture of your multiplexer. – Stefan Kottwitz Nov 24 '11 at 19:24
  • In terms of creating it yourself (with inputs (which would be anchors in TikZ)) you can have a look here: http://tex.stackexchange.com/questions/33150/creating-node-shapes. If this is the road you wish to go down and have additional questions, you can ask more specific/directed ones. – Roelof Spijker Nov 24 '11 at 23:49

1 Answers1

2

Have you tried the circuitikz package? I think it exceeds the possibilities of circuits.logic. The documentation has got a section entitled “5.1.1 Logic Ports”, which might help you.

Or do you rather want it to be just a box with some inputs and outputs as depicted in the following image?

Prime gate with triple multiplexer.

Prime gate with triple multiplexer.
Image source: By MovGP0 at de.wikipedia.org, Licensed under CC-BY-SA-2.0-DE.

brian-ammon
  • 2,425
  • 1
  • 21
  • 35
  • Yes I tried the circuitikz package. But I use tikz to have more flexibility to create logical circuits. The graphic you posted is exactly what I want. I want to use labels for the inputs and connect the inputs and outputs to other logical symbols. – domna Nov 24 '11 at 20:16
  • In this thread I found a reference to a TeXample, which you could possibly change to meet your needs. By the way, it is by Martin Scharrer, so maybe he has more insight on how to achieve this. – brian-ammon Nov 24 '11 at 20:50