Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Digital Logic Sim

​A minimalistic digital logic simulator · By Sebastian Lague

How do I make a shift register?

A topic by Numbers1234 created 2 days ago Views: 76 Replies: 7
Viewing posts 1 to 3
(2 edits)

A loop shift register to be specific. Ive tried everything and nothing has worked.  1st pulse is 1 tick, 2nd pulse is 3 ticks, C is clear


D Latch pins:

What im noticing

1) You are using latches.  You wanna use master-slave D-flip flops, to output previous state while assuming current state, which brings me to...

2)Your clocking mechanism should be an actual clock instead of a pulse and you want to clock the whole mechanism instead of individual ff's. Maybe connect a clock and the pulse to an and and have it pulse once or thrice like you want. In any case if you want more help, show  the inside of the D-Latch

I call the clock input the store input

Ok, I got the master slave d flip flop (again the store input is the clock input) and C is the clear input

(1 edit)

Connect them as you had  in picture you posted, but single clock to all of them instead of pulses. If it goes wrong, post inside of the DFF

thanks

I'm making a keybord (thats why i need a shift register)