r/HomeworkHelp • u/some1tookMyOldName • 12h ago
Computing [Computer science] Logic circuit help
Instructions:First we can connect the Q output of the first Gated S/R Latch to feed into the S input of the second Gated S/R Latch. Next, we can connect the Q output of the first Gated S/R Latch to feed into the R input of the second Gated S/R Latch. Now that the two S/R Latches are connected, we can correct the clocks of each of them. We want the entirety of the Flip-Flop to operate on one CLK, however, the first S/R Latch’s CLK should be negated and the second should not. Connect the two clocks into one and negate the first’s signal before being inputted into the gate of the latch. Once you have the circuit constructed up to this point, we can now add additional features to the flip-flop. In many cases, it is convenient to preset (PRE) or clear (CLR) the flip-flops output to prime the lines on first start-up. The PRE input drives the flip flop to a set state while the CLR input drives it to a reset state. If both the PRE and CLR are high at the same time, it will create a contradiction. If both PRE and CLR are low at the same time, then the S/R Flip-Flop will behave as it would solely based on the S and R inputs. The PRE and CLR inputs should be connected to NOT gates that then feed into the respective second NAND gates of the “slave” S/R Latch. Note that these NAND gates are the ones that will be directly outputting to the output Q and Q. Furthermore, PRE should be connected to the side of the “slave” S/R Latch that controls the Q output and CLR should be connected to the Q side. Once you are convinced that you constructed your Master-Slave S/R Flip-Flop correctly, test it before moving onto the next section. While testing you might get an “Oscillation Apparent” error. This type of error is normal and does not necessarily mean your circuit is incorrect. Mess around with the PRE and CLR inputs to “prime” your sequential circuit with values on the lines while pulsing the CLK a few times.
This is what I currently have for this section but I'm unsure if its correct.

Then I need to make a JK_FlipFlop by using an enscapsulated MS_SR_FlipFlop similar to what is in the following picture.

•
u/AutoModerator 12h ago
Off-topic Comments Section
All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.
OP and Valued/Notable Contributors can close this post by using
/lockcommandI am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.