Skip to content

daFritz84/tikzpgf-custom-logic-shapes

Repository files navigation

Custom IEC logic shapes for TikZ/PGF

This TikZ library is designed to enhance the existing circuits.logic.IEC library with additional logic components (e.g., adders, multiplexers, ...).

Getting Started

Just copy the files pgflibraryshapes.gates.logic.custom.code.tex and tikzlibrarycircuits.logic.custom.code.tex to the root of your latex directory and include them like a normal TikZ library in your main TeX file. The files are then found and included by your TeX compiler through the naming convention.

\usepackage{pgf,tikz}

\usetikzlibrary{
	circuits.logic.custom,
	circuits.logic.IEC,
}

A full working example of the library can be found in example.tex.

Available Shapes

  • Half Subtractor
  • Multiplexer
  • Demultiplexer
  • RS-Latch
  • D-FlipFlop

Acknowledgements

Additional Design Notes

This project tries to stay as close as possible to the workings of the original circuits.logic.IEC TikZ library where it seems appropriate (e.g., variable number of inputs, choice of inversion, ...). However, this does not make sense for every component. If you have suggestions or already have a proper pull request in place, please open up an issue and I will try to incorporate your contribution into this project.

The original circuits.logic.IEC files can usually be found in your local TeX distribution folder at the following locations:

  • [TeX distro root]/texmf-dist/tex/generic/pgf/frontendlayer/tikz/libraries/circuits/tikzlibrarycircuits.logic.IEC.code.tex
  • [TeX distro root]/texmf-dist/tex/generic/pgf/libraries/shapes/circuits/pgflibraryshapes.gates.logic.IEC.code.tex

License

This project is licensed under the GPL License - see the LICENSE.md file for details

About

custom IEC logic shapes for TikZ/PGF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages