- #1

- 1

- 0

Hello, I just joined because I am having a serious issue figuring out a logic gate circuit with 4 source signals, and a non active state and two items that activate depending on a number of different states for each signal. I've been giving myself a headache for hours trying to puzzle this out. It's for a video game I'm working on where two bridges need to activate or deactivate depending on off/on (0/1) signals from the 4 sources, and I would appreciate it if someone could give me the solution.

It would be easier if I just posted my notes on what I need to achieve than to explain. I have listed the 4 source signals with 0 or 1 to show it's active state, what state bridge 1 and/or 2 need to be in, and the numbers needed to activate or deactivate the bridges. I have separated each situation by containing them inside dashes. Some of the sources are only activated by other sources, therefore the combinations I present are the only possible ones. I may not need to mention this, but I can't have multiple outputs all leading to each bridge. It will act as an AND if I connect more than one, hence the need for the logic circuit. I have AND, OR, XOR, NAND, NOR, XNOR, and NOT to work with, so anyone finding me a solution can use any of them. These combinations are listed in the order they become available to the player, and also the numbers on the left are both toggleable, and the numbers on the right remain 1 once activated. Additionally, the bottom left number will remain 1 once the bottom right number becomes 1.

---------------------------

Inputs

0 0

0 0

bridges on on

Need a 1 and a 1

---------------------------

Inputs

0 1

0 0

bridges off off

need a 0 and a 0

---------------------------

Inputs

1 1

0 0

bridges on off

need a 1 and a 0

---------------------------

Inputs

1 1

1 0

bridges on on

need a 1 and a 1

---------------------------

Inputs

1 1

1 1

bridges off off

need a 0 and a 0

---------------------------

Inputs

0 1

1 1

bridges off off

need a 0 and a 0

I'm kind of new to logic gates, and I really have been puzzling over this for hours getting a headache, so I would really appreciate help.

It would be easier if I just posted my notes on what I need to achieve than to explain. I have listed the 4 source signals with 0 or 1 to show it's active state, what state bridge 1 and/or 2 need to be in, and the numbers needed to activate or deactivate the bridges. I have separated each situation by containing them inside dashes. Some of the sources are only activated by other sources, therefore the combinations I present are the only possible ones. I may not need to mention this, but I can't have multiple outputs all leading to each bridge. It will act as an AND if I connect more than one, hence the need for the logic circuit. I have AND, OR, XOR, NAND, NOR, XNOR, and NOT to work with, so anyone finding me a solution can use any of them. These combinations are listed in the order they become available to the player, and also the numbers on the left are both toggleable, and the numbers on the right remain 1 once activated. Additionally, the bottom left number will remain 1 once the bottom right number becomes 1.

---------------------------

Inputs

0 0

0 0

bridges on on

Need a 1 and a 1

---------------------------

Inputs

0 1

0 0

bridges off off

need a 0 and a 0

---------------------------

Inputs

1 1

0 0

bridges on off

need a 1 and a 0

---------------------------

Inputs

1 1

1 0

bridges on on

need a 1 and a 1

---------------------------

Inputs

1 1

1 1

bridges off off

need a 0 and a 0

---------------------------

Inputs

0 1

1 1

bridges off off

need a 0 and a 0

I'm kind of new to logic gates, and I really have been puzzling over this for hours getting a headache, so I would really appreciate help.

Last edited: