Part 1, SR Latch A latch is a device with exactly two stable states: high-output and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Part 1, SR Latch A latch is a device with exactly two stable states: high-output and low-output. A latch has a feedback path, so that information can be retained by the device. Latches are volatile memory devices, storing one bit of data for as long as the device is powered. The name suggests that latches are used to "latch onto" information and store it in place. An SR latch (Set/Reset) is an asynchronous device, working independently of control signals, relying only on the state of the S and R inputs. SET: an input that makes the device store a logic 1; RESET: an input that makes the device store a logic 0. 1 0 1 0 R (reset) S (set) (a) Logic diagram Equation: S=R=0 Q' The behavior of an SR latch: When S is high, a 1 is stored to Q; When R is high, a 0 is stored to Q; When both are low, the previous state is preserved; (Hence, known as a storage or memory element.) When both are high, the output is unstable. DO NOT set both inputs are high! In this case, both Q and Q' are 0. When both R and S are set to 1, we cannot decide the output Q should be 1 or 0 because the delay of these two and-not gates is not defined. S=1 R=0 Set Q=0 Assign R to SW[0] and LEDR[0]; Assign S to SW[1] and LEDR[1]; Assign Q to LEDR[2], Q' to LEDR[3]; SRQQ' 00 01 (after S = 0, R = 1) 1 1 0 0 (forbidden) (b) Function table Q=1 a. Write a Verilog module to implement an SR latch. b. Program it to the Altera board. i. ii. 1 0 10 0 0 1 0 (after S= 1, R = 0) 0101 Reset S=0 R=1 Qn+1 = S+RQ" also S' + R' = 1 (This is the protected condition) c. Take photos for the first four cases in the true table above; d. Name your code as 'sr_latch'. S=R=0 Part 1, SR Latch A latch is a device with exactly two stable states: high-output and low-output. A latch has a feedback path, so that information can be retained by the device. Latches are volatile memory devices, storing one bit of data for as long as the device is powered. The name suggests that latches are used to "latch onto" information and store it in place. An SR latch (Set/Reset) is an asynchronous device, working independently of control signals, relying only on the state of the S and R inputs. SET: an input that makes the device store a logic 1; RESET: an input that makes the device store a logic 0. 1 0 1 0 R (reset) S (set) (a) Logic diagram Equation: S=R=0 Q' The behavior of an SR latch: When S is high, a 1 is stored to Q; When R is high, a 0 is stored to Q; When both are low, the previous state is preserved; (Hence, known as a storage or memory element.) When both are high, the output is unstable. DO NOT set both inputs are high! In this case, both Q and Q' are 0. When both R and S are set to 1, we cannot decide the output Q should be 1 or 0 because the delay of these two and-not gates is not defined. S=1 R=0 Set Q=0 Assign R to SW[0] and LEDR[0]; Assign S to SW[1] and LEDR[1]; Assign Q to LEDR[2], Q' to LEDR[3]; SRQQ' 00 01 (after S = 0, R = 1) 1 1 0 0 (forbidden) (b) Function table Q=1 a. Write a Verilog module to implement an SR latch. b. Program it to the Altera board. i. ii. 1 0 10 0 0 1 0 (after S= 1, R = 0) 0101 Reset S=0 R=1 Qn+1 = S+RQ" also S' + R' = 1 (This is the protected condition) c. Take photos for the first four cases in the true table above; d. Name your code as 'sr_latch'. S=R=0
Expert Answer:
Answer rating: 100% (QA)
Solution a Verilog code Source Code Code starts here module srlatchSRQQ... View the full answer
Related Book For
Introduction to Wireless and Mobile Systems
ISBN: ?978-1305087132
4th edition
Authors: Dharma P. Agrawal, Qing An Zeng
Posted Date:
Students also viewed these electrical engineering questions
-
Can control risk be high for one assertion and low for another assertion for the same account balance? Explain.
-
A one-shot device can be used only once; after use, the device (e.g., a nuclear weapon, space shuttle, automobile air bag) either is destroyed or must be rebuilt. The destructive nature of a one-shot...
-
A company produces two main products: electronic control devices and specialty microchips. The average total cost of producing a microchip is $300; the firm then sells the chips to other high-tech...
-
What are some Marketing Strategies for Delivering Objectives Polestar (Car company) has used or using?
-
For the coming year, Peters Inc. anticipates fixed costs of $450,000, a unit variable cost of $45, and a unit selling price of $60. The maximum sales within the relevant range are $2,400,000. a....
-
You must get from a point P on the straight shore of a lake to a stranded swimmer who is 50 m from a point Q on the shore that is 50 m from you (see figure). If you can swim at a speed of 2 m/s and...
-
Lockridge-Priest, Inc., was organized in 2008. At December 31, 2008, the Lockridge-Priest balance sheet reported the following stockholders' equity: Requirements 1. During 2009 , the company...
-
Foot Locker Inc. is the worlds number one retailer of athletic footwear and apparel. Headquartered in New York City, the company has over 44,000 employees and 3369 retail stores in 23 countries...
-
a)Discuss the relevance and framework of credit quality analysis for a target company. (3marks)
-
(a) Show that the transfer function of two systems in parallel, as shown in Fig. P1.1-l(a), is equal to the sum of the transfer functions. (b) Show that the transfer function of two systems in series...
-
Three years ago the government entered into a contract with Permata Berhad to build an integrated entrepreneur centre in a rural area in Kedah. The idea was to improve the economic well-being of the...
-
P. Nonius is the owner/manager of a company that owns several suburban shopping malls. The retail store lease contracts require the store tenants to pay a flat amount monthly, plus 0.05% of their...
-
The Betta Group reports taxable income in the amount of $625,000 and has a 30% tax rate. Additionally, the company estimates a deferred tax asset of $45,000 due to a book-tax difference in warranty...
-
Suppose a chain of electronics stores sells televisions. The weekly demand and supply models are given below. (Note that p is the price per television and q is the number of televisions demanded or...
-
Russell Corporation sold a parcel of land valued at $ 5 8 7 , 5 0 0 . Its basis in the land was $ 4 8 1 , 7 5 0 . For the land, Russell received $ 7 4 , 2 5 0 in cash in year 0 and a note providing...
-
A hardware store will run an advertising campaign using radio and newspaper. Every dollar spent on radio advertising will reach 70 people in the "Gen X" market, and 30 people in the "millennials"...
-
With the infomation listed below, explain why St. Kitts & Nevis should implement more partnerships in their country. This strategy is all about looking out for partnerships with organizations that...
-
Draw the appropriate control flow graph of the given pseudocode.Make sure to only use one number for blocks of code which are all sequential and when the first line is executed, all of those lines...
-
What is the bandwidth and the power level used by the beacon signals in your area?
-
A snapshot of an ad hoc network is shown in Figure 13.19. Describe briefly the process taken to do the following: (a) You need to create a route from the source node 6 to the destination node 23...
-
Can you define 10 different bivariate polynomials?
-
During its first year of operations, Environmental Products Inc. had sales of \(\$ 875,000\), all on account. Industry experience suggests that Environmental Products's bad debt expense will be \(\$...
-
Use the solution to exercise S4-8 to answer these questions about Environmental Products Inc. for 2020. 1. Start with Accounts Receivable's beginning balance \((\$ 80,000)\) and then post to the...
-
If Maritimes Ltd. fails to make an adjusting entry for the accrued interest, which of the following will happen a. Net income will be understated, and liabilities will be overstated. b. Net income...
Study smarter with the SolutionInn App