# Flip Flop D Sequence

I want to create a game like "pimball" using 4 leds to state the game. One exit to define if the game is still running. And 2 inputs that are switches.

1) To begin with, the first is to assemble 4 FlipFlops to do the ascending or descending sequence circuit, where in the illuminated LED goes to the left or right depending on a control input I, that is, has the sequence from right to the left (taking the binary values ​​1,2,4,8) or (taking the binary values ​​8,4,2,1) from left to right:

1000 -> 0100 -> 0010 -> 0001 (left to right) if I = 0 0001 -> 0010 -> 0100 -> 1000 (right to left) if input = 1

2) started to create the game: it's two players, each with a switch. The left switch is controlled by the player on the left and the right by the right. The aim is to keep the lit LED led away from the tip of each player. For this the players each have one switch which jointly control the direction of travel: where two switches are equal (both 0 or both 1) and take the clock, the lit LED moves to the right, otherwise it moves to the left. My schematic is below. Am i doing this right?

Could someone sho me on Logisim how to implement this? Or any tips? Thanks in advance! ^_^

• "Pimball"? "One exit"? Jan 22, 2016 at 0:40
• Sorry. English is not my first language, forget about the exit. Could you help me do this? Just the sequence from 1 to 8 and 8 to 1 would help me a lot! Jan 22, 2016 at 0:45
• Look up a Johnson counter. Jan 22, 2016 at 0:46
• it looks OK to me, you want to XOR the D and E inputs and use that value to control the direction. Jan 24, 2016 at 3:49