5
$\begingroup$

I'm looking for a library that given parameters; feedback polynomial, initial values then it will produce $\LaTeX$ / Tikz codes to include in Latex documents or LFSR images. Is there such a library?


This Question and answer are provided to test the limits of this Meta question.

$\endgroup$
6
$\begingroup$

Yes, there is a python library LFSR-Automatic-Draw that can output $\LaTeX$ Tikz code and that can be converted to PNG images by

pdflatex -shell-escape lfsr.tex

The library has many parameters to draw;

  • One can print the feedback polynomial on the bottom
  • One can enable/disable printing the name of the boxes
  • One can enable/disable printing the initial values
  • Font size, box sizes, colors, arrow sizes, etc.

Sample outputs are

enter image description here

enter image description here

enter image description here

And, the library now can output multiple images per clock that can be converted to loop-animation

enter image description here

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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