The related question Circuitikz inverter bubble shows how to invert an input on an AND gate. How can I do this on a buffer gate? (rightward facing triangle) I can't seem to find the documentation. I tried using the node[buffer, inputs=i]
but it doesn't seem to recognize the inputs
key.
Update: It looks like I can do it in a tikzpicture
but not inside a circuitikz
element. The following works, but I need to combine this and connect to some things in a circuitikz
element:
\documentclass[border=5mm]{standalone}
\usepackage{tikz}
\usetikzlibrary{circuits.logic.US}
\begin{document}
\begin{tikzpicture}[circuit logic US]
\node (a) [buffer gate, inputs=i] {};
\end{tikzpicture}%
\end{document}
is there a way to use this inside a circuitikz drawing?
Best Answer
A possilbe solution is to define a buffer gate called
\buffergate
via\newcommand
syntax that takes two arguments#1=name
and#2= rotation angle
. The proposed solutions redefinenot port
into\buffergate
, so that buffer gate can be used inside acircuitiz
drawing. An example fromcircuitikz
is borrowed and the proposals follow.The logic behind is to call
not port
, color it with white, give it a label name, use the command\bufergate
, as shown below.Code