sharpie7 / circuitjs1

Electronic Circuit Simulator in the Browser
GNU General Public License v2.0
2.23k stars 622 forks source link

Feature request: Adding more decoders #814

Closed LuanHimmlisch closed 1 year ago

LuanHimmlisch commented 1 year ago

Could you add one of the following decoders?

Both of these have 8 inputs and 3 outputs

pfalstad commented 1 year ago

A 74154 is a 4-to-16 line decoder. You can right-click on a Demultiplexer, click edit, and change the number of select bits to 4. The one thing we are missing is the G1 and G2 strobe inputs. Do you need those?

The 74148 is a 8-to-3 priority encoder. Here is one I made with custom logic: https://tinyurl.com/2f3wr5w4

LuanHimmlisch commented 1 year ago

@pfalstad thanks a lot, I mainly opened this issue for anyone else having the problem, like a teacher, since this was required in a classroom and I always like to share open-source alternatives