Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Digital Components (NAND, NOR, flip flops, 555 Timer...) #196

Open
Frooxius opened this issue Oct 20, 2021 · 1 comment
Open

Digital Components (NAND, NOR, flip flops, 555 Timer...) #196

Frooxius opened this issue Oct 20, 2021 · 1 comment

Comments

@Frooxius
Copy link

Hello!

First great job on this library! It's very clean and extensive.

I wanted to ask if there's any plans to add direct support for a number of digital components - from various logical gates to more complex circuits, like the 555 Timer? Or is this better handled by finding a schematic and creating a subcircuit for those?

For context, I've been working with this library: https://github.com/Mervill/SharpCircuit which allows to timestep circuits for interactive simulation. I found how to do this with SpiceSharp using the Transcient simulation (I would prefer to use this library, since it seems a lot more robust and up to date), but it is missing a number of components like this and I'm not quite sure what is the proper way to handle them.

@svenboulanger
Copy link
Member

svenboulanger commented Dec 6, 2022

Hi,

I seem to have missed this post, so sorry for the late reply.

At the moment there is no direct support for digital components, although I already added some preparations for it. "Just anything will do" is probably fairly straight-forward, but considering the nature of the project I do worry about timing accuracy, simulation stability and modeling of digital outputs - which is a bit harder to formalize.

We are working on a Verilog simulator that would hopefully run alongside Spice# at some point, but this is still future talk.

If you want to simulate logical gates, then you can probably use things that are already available (most gates are implemented using transistors anyway). But if I understand correctly then I believe you want to have acceptable simulation times even for more complex digital logic, in which case Spice# will not be able to fill your needs in the near future.

Yours sincerely,
Sven

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants