Digital icon indicating copy to clipboard operation
Digital copied to clipboard

Expanding components, D-Flip-Flop 4 input

Open frsj8112 opened this issue 1 year ago • 6 comments

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?

frsj8112 avatar Aug 17 '24 09:08 frsj8112

Why not setting the number of data bits to 4?

hneemann avatar Aug 17 '24 11:08 hneemann

Sorry, I meant Number of Inputs.

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

frsj8112 avatar Aug 17 '24 13:08 frsj8112

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.

hneemann avatar Aug 17 '24 14:08 hneemann

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

image

To this: image

frsj8112 avatar Aug 17 '24 14:08 frsj8112

Simply create a subcircuit that contains four d-ff.

hneemann avatar Aug 17 '24 14:08 hneemann

Put this dig-file alongside your main circuit.

D-FF4.dig.zip

hneemann avatar Aug 17 '24 14:08 hneemann