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

How to make a constant? #29

Open
satarics opened this issue Jul 1, 2023 · 2 comments
Open

How to make a constant? #29

satarics opened this issue Jul 1, 2023 · 2 comments

Comments

@satarics
Copy link

satarics commented Jul 1, 2023

How to create a constant if possible?

@Azzydon
Copy link

Azzydon commented Jul 1, 2023

For 0 or 1 you can pull an input to VCC or GND. For larger binary numbers you can tie the input of a latch to a binary pattern and read the latch when you need the constant. You could use an array of diodes and a multiplexer to create a simple rom that provides different values depending on the mux selector inputs. Or you could use some kind of rom that you load with a pattern that works for you.

https://electronics.stackexchange.com/questions/505304/understanding-diode-rom

@jdryg
Copy link
Owner

jdryg commented Jul 1, 2023

How to create a constant if possible?

Right-click on an input port and select Constant. As far as I remember both gate-level and transistor-level circuits support constant input ports.

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