Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

d) (10 pts) Redo the HLSM table, including the values of control signals needed to perform the RTL actions in the datapath, as well replacing

image text in transcribed

d) (10 pts) Redo the HLSM table, including the values of control signals needed to perform the RTL actions in the datapath, as well replacing the conditions on the transitions with flags.

Problem 2 (80 pts) Design an application-specific processor that computes the average of 16 unsigned 4-bit values stored in consecutive addresses in a ROM. The processor should have the following ports: input clk, input reset, input [3:0] din, output [3:0] addr, output [3:0] avg // data from ROM // ROM address /1 integer average (don't worry about remainder) The processor should use an approach that iteratively calculates the sum of the number in the ROM. When it reaches the last address, it should get the average by dividing the sum by 16. Note that because you are taking the sum o 16 4-bit numbers, your internal register that holds the sum will need to be wider that 4 bits (how wide does it need to be?). In performing the division by 16, take advantage of the fact that division by 2 can be done by simply shifting the number by n bits to the right, or truncating the n least-significant bits. Problem 2 (80 pts) Design an application-specific processor that computes the average of 16 unsigned 4-bit values stored in consecutive addresses in a ROM. The processor should have the following ports: input clk, input reset, input [3:0] din, output [3:0] addr, output [3:0] avg // data from ROM // ROM address /1 integer average (don't worry about remainder) The processor should use an approach that iteratively calculates the sum of the number in the ROM. When it reaches the last address, it should get the average by dividing the sum by 16. Note that because you are taking the sum o 16 4-bit numbers, your internal register that holds the sum will need to be wider that 4 bits (how wide does it need to be?). In performing the division by 16, take advantage of the fact that division by 2 can be done by simply shifting the number by n bits to the right, or truncating the n least-significant bits

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

12. How often should you update your rsum and why?

Answered: 1 week ago