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

[Bug] Diode not dioing #137

Open
Lipino777 opened this issue Jan 8, 2025 · 3 comments
Open

[Bug] Diode not dioing #137

Lipino777 opened this issue Jan 8, 2025 · 3 comments

Comments

@Lipino777
Copy link

I think the picture is selfexplenatory:
img-2025-01-08-14-51-44
WhatInTheDiode.txt
it just goes trough. i know diodes IRL can let some tiny ammount of current trough, but I assume this default diode is supposed to be a theorethically perfect diode

@Lipino777 Lipino777 changed the title Diode not dioing [Bug] Diode not dioing Jan 8, 2025
@fritzw
Copy link

fritzw commented Jan 8, 2025

Yout assumption is wrong, the default diode model is not an ideal diode. See also #88.

But I agree that combining logic inputs (which draw no current) with diodes leads to confusing behavior. Maybe there should be a model for an ideal diode?

@Lipino777
Copy link
Author

Lipino777 commented Jan 8, 2025 via email

@pfalstad
Copy link
Owner

pfalstad commented Jan 9, 2025

The diode is not ideal. But I think the bigger issue is that the counter inputs ARE ideal. They have infinite input impedance. So they draw no current at all; they only look at the input voltage. Since there's no current across the diode, there's no voltage difference either. A pulldown resistor would take care of the problem.

Screenshot 2025-01-08 at 4 16 34 PM

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

3 participants