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

Expanding components, D-Flip-Flop 4 input #1318

Closed
frsj8112 opened this issue Aug 17, 2024 · 6 comments
Closed

Expanding components, D-Flip-Flop 4 input #1318

frsj8112 opened this issue Aug 17, 2024 · 6 comments

Comments

@frsj8112
Copy link

Hi, is it possible to expand the library so that it is possible to use a single component D-Flip-Flop with 4 bit input instead of 4 seperate D-Flip-Flop components?

@hneemann
Copy link
Owner

Why not setting the number of data bits to 4?

@frsj8112
Copy link
Author

Sorry, I meant Number of Inputs.

Like the NAND, where you for example, can specify the amount of inputs from 2 to 4.

@frsj8112 frsj8112 changed the title Expanding components, D-Flip-Flop 4 bit input Expanding components, D-Flip-Flop 4 input Aug 17, 2024
@hneemann
Copy link
Owner

If four data bits are configured in the d-ff, the data input is 4-bit wide, so a bus can be connected that is 4 bits wide.

@frsj8112
Copy link
Author

But I can still just connect one input.
I would like to consilidate this:

image

To this:
image

@hneemann
Copy link
Owner

Simply create a subcircuit that contains four d-ff.

@hneemann
Copy link
Owner

hneemann commented Aug 17, 2024

Put this dig-file alongside your main circuit.

D-FF4.dig.zip

@hneemann hneemann closed this as completed Oct 6, 2024
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