Home > other >  Small white refer to four booth multiplier wrote why simulation don't come out?
Small white refer to four booth multiplier wrote why simulation don't come out?

Time:11-04

The module booth (c, date_1, date_2);
Input [away] date_1 date_2;
The output [away] c;
Reg [8-0] data;
Reg [away] c;
Reg (3-0) a, b;

Initial
The begin
A=date_1 (3-0).
B=date_2 (3-0);
End

Initial
The begin
data=https://bbs.csdn.net/topics/{{{1, 4 'b0}}, b, {1 b0}};
Repeat (4)
The begin
If (data (1-0)==00 | | data (1-0)==11)
Data [8-0]=data>> 1;
Else if (data (1-0)==10)
The begin
Data [and]=data [and] - a;
data=https://bbs.csdn.net/topics/data>> 1;
End
Else if (data [1:0]==01)
The begin
Data [and]=data [and] + a;
data=https://bbs.csdn.net/topics/data>> 1;
End
End
C=data [8];
End
endmodule
  • Related