latch and selector

Post any examples or modules that you want to share here
Post Reply
fixstuff555
Posts: 151
Joined: Thu Oct 21, 2010 3:24 pm

latch and selector

Post by fixstuff555 »

Hi all,

This maybe really basic, but it was useful to me, so I wanted to post it if it's useful to anyone else.

Basically, it's the same code, for two different uses.

The first is a basic SR latch. Q, and /Q are latched on or off accordingly.

The second is a selector function. Trigger input 1, outputs state 1, which is on,off,off. Trigger input 2, outputs state 2, which is off,on,off. Trigger input 3, outputs state 3, which is off, off, on.
Attachments
latch and selector.fsm
(9.46 KiB) Downloaded 1867 times
Post Reply