For the case that S = 0 and R = 1 Send output ‘0’ to S, and ‘1’ to R Read and print out Q and Q’ values on the screen Pause 2 seconds For the case that S = 1 and R = 0 Send output ‘1’ to S, and ‘0’ to R Read and print out Q and Q’ values on the screen Pause 2 seconds For the case that S = 0 and R = 0 Send output ‘0’ to S, and ‘0’ to R Read and print out Q and Q’ values on the screen Pause 2 seconds For the case that S = 1 and R = 1 Send output ‘1’ to S, and ‘1’ to R Read and print out Q and Q’ values on the screen Pause 2 seconds
- Develop a python program to simulate the operation of the designed SR Latch using NOR gate. Include identation. The program should have the following sequence to test the operation of SR Latch, as follows:
For the case that S = 0 and R = 1
Send output ‘0’ to S, and ‘1’ to R
Read and print out Q and Q’ values on the screen
Pause 2 seconds
For the case that S = 1 and R = 0
Send output ‘1’ to S, and ‘0’ to R
Read and print out Q and Q’ values on the screen
Pause 2 seconds
For the case that S = 0 and R = 0
Send output ‘0’ to S, and ‘0’ to R
Read and print out Q and Q’ values on the screen
Pause 2 seconds
For the case that S = 1 and R = 1
Send output ‘1’ to S, and ‘1’ to R
Read and print out Q and Q’ values on the screen
Pause 2 seconds
An SR Latch can be defined as a device that sets it value when the value of input S is set and resets when the input of R is set. The SR Latch can be made using 2 NOR gates. The python code implementation is given below.
Step by step
Solved in 4 steps with 2 images