Question: Write a Verilog function to complete the following module, one that automatically counts the number of shifts. It needs to shift a word to the

Write a Verilog function to complete the following module, one that automatically counts the number of shifts. It needs to shift a word to the left until the most significant bit of the input word is equal to 1.
module word_shift(in_word, num_shifts);
input [7:0] in_word;
output [7:0] num_shifts;
assign num_shifts = shift_count(in_word);
//write the function below
….
….
….
endmodule

Step by Step Solution

3.53 Rating (167 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

function 7 0 shiftcoun... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Digital Systems Design Questions!