drom / logidrom

:bulb: Digital Circuit rendering engine
https://logi.drom.io
MIT License
31 stars 6 forks source link

Symbols collection #3

Open drom opened 8 years ago

drom commented 8 years ago

https://commons.wikimedia.org/wiki/File:Logic-gate-index.png

https://commons.wikimedia.org/wiki/File:2-MUX_Aufbau2_DIN40900.svg

https://commons.wikimedia.org/wiki/File:3MUX-Primzahl-Aufbau3_DIN40900.svg

https://commons.wikimedia.org/wiki/File:3MUX-Primzahl-Aufbau2_DIN40900.svg

https://commons.wikimedia.org/wiki/File:2-MUX_Aufbau_DIN40900.svg

DmitryAGusev commented 8 years ago

For multiplexer, some simple view like https://en.wikipedia.org/wiki/Multiplexer#/media/File:Multiplexer_2-to-1.svg should be supported.

drom commented 8 years ago

@DmitryAGusev , agree, mux and dff are two next obvious candidates to support. One thing they bring is: heterogeneous pin structure, and multiple ways to position pins.

mux has normal data inputs and selector (one or many), output. With a current format (and the rendering fix) it may be expressed like:

['mux', ['g', 'i0', 'i1', 'i2', 'i3'], 'sel']

dff has data input, clock, enable, reset, set, output (may be inverted output?).

['dff', '/clk', 'd', 'en', '~reset_n']

All that assumes certain order of arguments.

All that need a better format to express it: https://github.com/drom/logidrom/issues/4

drom commented 8 years ago

Multiplexer related issue: #10