Question: Devise a test of follwing Add Shift Multiply algorithms, Provide a table output of the algorithm and Supply waveform snapshots that show the process and

Devise a test of follwing "Add Shift Multiply" algorithms, Provide a table output of the algorithm and Supply waveform snapshots that show the process and the answer
Verilog code:
//behavioral add-shift multiply
module mul_add_shift3(a, b, prod, start);
input [3:0] a, b;
input start;
output [7:0] prod;
reg [7:0] prod;
reg [3:0] b_reg;
reg [3:0] count;
always @ (posedge start)
begin
b_reg = b;
prod =0;
count =4'b0100;
if ((a!=0) && (b!=0))
while (count)
begin
prod ={(({4{b_reg[0]}} & a)
+ prod[7:4]), prod[3:1]};
b_reg = b_reg >>1;
count = count -1;
end
end
endmodule

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!