CS 120 Lecture Notes - Lecture 11: Race Condition
Document Summary
In a computer, there has to be both memory and logic. Memory location: know how to set a value, delete a value, and maintain a value. The 1-1 input is the hold output, because it holds whatever state the input was before: Race condition: output depends only on physics; whichever signal travels the fastest changes the output. *this case occurs when s and r equal 0. Both outputs equal 1, so when both inputs get switched to 1 at the same time, the output would depend on the race condition. It would also not work because it (cid:272)ouldn"t sa(cid:448)e the state it"s (cid:272)urrently in. Due to this, the 0-0 input leads to an error. The rs lat(cid:272)h is the only (cid:449)ay to kno(cid:449) that the (cid:448)alue of the (cid:272)ir(cid:272)uit"s output is (cid:448)alid, (cid:271)e(cid:272)ause the circuits take time to flow from input to output. The rs latch holds the output of the previous value, so it is entirely accurate.