A digital system is modelled by the RTL code in Listing Q1. Assume that a, b...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
A digital system is modelled by the RTL code in Listing Q1. Assume that a, b and c are external inputs, and the registers are positive-edge triggered. By using the ALU with the functions given in Table Q1, answer the following questions. Note that m* denotes m bitwise inverted. SO: () /R1 b; Table Q1: ALU operation (a) ( ) /R2 C fifo output function S1: ( ) /R2 R1 R2; 00 X+Y ADD ( ) /R1a; 01 X-Y SUB S2: (m) /R2 <2R1; 10 X*Y Multiply (m) /R2R1-R2; 11 Y PASS Y ( ) / done = 1; ( ) / goto SO; Listing Q1: RTL code Derive the functional block diagram (fbd) of the datapath unit (DU) for the digital system in Q1. (8 marks) (b) Write the Verilog code to model the datapath in Q1(a). (9 marks) (c) Derive the fbd of the control unit (CU) showing the state registers, next state block. output block and all the control signals. Note: Group the control signals as a vector formatted as follows: sell, sel2, selY, Idl, ld2.fl.fo. done. (6 marks) (d) (e) Write the Verilog code to model the control unit in Q1(c). The control vector must be formatted as in Q1(c). (9 marks) If the multiply function is not available in the ALU, suggest an option to implement the operation of R2R1 R2 in state S1 if Y input is limited to 2, 4 and 8. (3 marks) A digital system is modelled by the RTL code in Listing Q1. Assume that a, b and c are external inputs, and the registers are positive-edge triggered. By using the ALU with the functions given in Table Q1, answer the following questions. Note that m* denotes m bitwise inverted. SO: () /R1 b; Table Q1: ALU operation (a) ( ) /R2 C fifo output function S1: ( ) /R2 R1 R2; 00 X+Y ADD ( ) /R1a; 01 X-Y SUB S2: (m) /R2 <2R1; 10 X*Y Multiply (m) /R2R1-R2; 11 Y PASS Y ( ) / done = 1; ( ) / goto SO; Listing Q1: RTL code Derive the functional block diagram (fbd) of the datapath unit (DU) for the digital system in Q1. (8 marks) (b) Write the Verilog code to model the datapath in Q1(a). (9 marks) (c) Derive the fbd of the control unit (CU) showing the state registers, next state block. output block and all the control signals. Note: Group the control signals as a vector formatted as follows: sell, sel2, selY, Idl, ld2.fl.fo. done. (6 marks) (d) (e) Write the Verilog code to model the control unit in Q1(c). The control vector must be formatted as in Q1(c). (9 marks) If the multiply function is not available in the ALU, suggest an option to implement the operation of R2R1 R2 in state S1 if Y input is limited to 2, 4 and 8. (3 marks)
Expert Answer:
Related Book For
Fixed Income Securities Valuation Risk and Risk Management
ISBN: 978-0470109106
1st edition
Authors: Pietro Veronesi
Posted Date:
Students also viewed these programming questions
-
(a) Consider two clusters A and B each hosting multiple applications. All applications send bursty traffic between A and B over a link E. Under what conditions is circuit switching more efficient to...
-
Let A, B be sets. Define: (a) the Cartesian product (A B) (b) the set of relations R between A and B (c) the identity relation A on the set A [3 marks] Suppose S, T are relations between A and B, and...
-
If possible, completely factor the expressions in Problems 336. x - 7x + 12 X
-
In a time-series decomposition of sales (in millions of units), the following trend has been estimated: CMAT = 4.7 + 0.37(F) The seasonal indices have been found to be: Quarter Seasonal Index...
-
In 2012, Modder Corporation reported net sales of $250,000, cost of goods sold of $137,500, operating expenses of $50,000, and income tax expense of $20,000. In 2011, it reported net sales of...
-
For the observation of inventories, indicate (a) when this test is required, (b) the meaning of inventory taking, and (c) the timing and extent of the test.
-
Dorothy Stanyard has three major routes to take to work. She can take Tennessee Street the entire way, she can take several back streets to work, or she can use the expressway. The traffic patterns...
-
Suppose f(x) is increasing and concave down over the interval [3, 9]. For each of the following, select the GREATER of the values and defend your answer. Problem 1) Of(5) Of(9)
-
1. (a) (b) Given an uncompressed digital color video with the following format. Frame resolution: 1920 1080 pixels Color depth: 24 bits per pixel Frame rate: 30 frames per second (i) Compute the size...
-
Determine whether each of the figures in Problems 30-37 will be a solution to an Instant Insanity puzzle.
-
Use XDR and htonl to encode a 1000-element array of integers. Measure and compare the performance of each. How do these compare to a simple loop that reads and writes a 1000-element array of...
-
Write your own implementation of htonl. Using both your own htonl and (if little-endian hardware is available) the standard library version, run appropriate experiments to determine how much longer...
-
a. One variation of Instant Insanity is a puzzle with five blocks instead of four. How many arrangements are possible? b. If you carry out one arrangement every second, how much time is required to...
-
What are the different approaches to test the sensitivity of a CBA model?
-
What is meant by a hierarchy of strategy?
-
Recall that Chapter 8 described the binary search algorithm for finding a particular entry in an ordered list. The idea behind binary search is to begin looking in the exact center of the list. If...
-
A weight \(W\) is supported by three frictionless and massless pulleys and a spring of stiffness \(k\), as shown in Fig. 2.57. Find the natural frequency of vibration of weight \(W\) for small...
-
A sledgehammer strikes an anvil with a velocity of \(15 \mathrm{~m} / \mathrm{s}\) (Fig. 2.59). The hammer and the anvil have a mass of \(6 \mathrm{~kg}\) and \(50 \mathrm{~kg}\), respectively. The...
-
A rigid block of mass \(M\) is mounted on four elastic supports, as shown in Fig. 2.58. A mass \(m\) drops from a height \(l\) and adheres to the rigid block without rebounding. If the spring...
Study smarter with the SolutionInn App