0
\$\begingroup\$

I'm a third-year medical student from Sweden.

I am attempting to simulate a specific chain of proteins in a cell using logic gates - specifically, I seek to construct a representation of the RTK-Ras-MAPK-pathway. In this pathway, there is a protein called Ras, which is important for regulating cellular proliferation, specialization and self-destruction.

Ras is interesting because it functions like a switch: it can be either on or off. When Ras is activated, it stays active for a short time and then automatically falls back to its off-state by intrinsic mechanisms.

I have read enough about logic gates to know that a gate cannot simply feed back into itself. What I would ideally like to do is something like below:

schematic

simulate this circuit – Schematic created using CircuitLab

However, I've understood from several sources that this isn't feasible, and that connecting a gate to itself like this would create something of a "paradox"?

I've thought about using switch-controlled inputs from additional voltage sources as the second input for Ras (the XOR gate), but it seems to hinge on the fact that input 2 is undetermined until a signal comes from the XOR gate, and that the signal cannot be determined until the XOR gate gives some logical output.

My question is this: would it be possible to design a logic circuit that can take input from itself? If it isn't possible, are there ways to achieve similar results using other means?


Please note that I am not fluent in the language of electronics. If I have misunderstood something or am unclear I apologize.

\$\endgroup\$

2 Answers 2

1
\$\begingroup\$

It sounds like you want something more along the lines of a monostable multivibrator. For example, the 74HC123. This device produces a pulse of a set length when it receives an input.

The internal schematic for 1/2 the device (it's a dual) is shown here:

enter image description here

You can see that there are internal feedback paths (the cross-coupled NAND gates) that allow it to retain states while the external RC circuit operates.

You can treat this as a black box with this behavior:

enter image description here

\$\endgroup\$
1
\$\begingroup\$

I think the circuit you're specifically looking for is called a monostable multivibrator, colloquially referred to as a "one-shot". An example of this is the 74HC4358. In operation, when it gets a transient on an input, the output switches from one state to the other for a predetermined length of time, then returns to its original state. Is this what you're looking for?

If so, be aware that there are two varieties of one-shot: retriggerable on non-retriggerable. The retriggerable type (such as the 74HC4358) can accept a trigger condition while the ouput is in its temporary state, and the temporary state is extended by the nominal duration. That is, if it has a nominal 1 msec output time, and a second trigger condition occurs after 0.5 msec, the total output pulse is 1.5 msec. If this is a problem for you, it is possible to manipulate the logic to eliminate the retriggerable capability, but I doubt you need to hear about that now.

As to your more general question, direct feedback of an output to an input can have a variety of results.

a) Complete inhibition of function. Take a 2-input AND gate, and feed the output back to one of the inputs. If the other input is low, the output must be low (because BOTH inputs are not high). If the input then goes high, the output stays low for the same reason. So the gate cannot respond to any input.

b) Latching. Take a 2-input OR gate and feed the output back to one input. Set the other input low, and assume the output is low also. Now, if the other input goes high, the output goes high, and even if the input goes low again, the feedback will keep the output high.

c) Oscillation. This is the "paradox" state you're thinking about. Take an inverter, and feed the output back to the input. There is no actual paradox here, because it takes a finite length of time (called the propagation delay) for the output to respond to the input. So what will happen is that if the input starts off low, after one propagation delay the output will go high, then after another delay it will go low again, ad infinitum. For real logic, it's important to keep in mind that the outputs are not infinitely strong. If you were to force the input low (with a big fat switch, for instance), it's always possible to do so in a way that the nominally high output cannot overcome.

As for your analysis of your schematic, you've made a crucial error. When you say "it seems to hinge on the fact that input 2 is undetermined until a signal comes from the XOR gate, and that the signal cannot be determined until the XOR gate gives some logical output" you are overlooking the fact that the XOR gate will always produce and output.

\$\endgroup\$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.