Develop a python program to simulate the operation of the designed SR Latch. PLEASE USE THE NOR GATE!! 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
-
Develop a python program to simulate the operation of the designed SR Latch. PLEASE USE THE NOR GATE!! 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 secondsFor 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 secondsFor 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
Output should be displayed like the provided attachment
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images