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
function 7 0 shiftcoun... View full answer
Get step-by-step solutions from verified subject matter experts
