Question: 2 ) ( 2 0 points ) 2 a ) Given the C - like code, answer the questions below. Note: 2 5 6 x
points
a Given the Clike code, answer the questions below. Note: x Register File with read port and write port is used for A in the code.
a pts Determine minimum number of bits for totalsum such that NO overflow occurs assume that all values in the register file A are positive number Explain how you get your answer no explanation, point
mathbf a pts List all local storage with its minimum number of bits that should be used.
Inputs: A go bit
Outputs: done bit totalsum
Local Storage:
while
whilego;
done ; totalsum ; max ;
fork ; k ; k
totalsum totalsum Ak;
ifAk max
max Ak;
done;
b pts Given the following state diagram of a circuit with input w and outputs s t and u specify minimum numbers of DFFs or minimum numbers of bits for the state register that should be used if
pts the binary encoding method is used
bits
pts the onehot encoding method is used
bits
pts the output encoding method is used
bits
Note: if the output encoding cannot be used, put as your answer.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
