M
Mr. Ken
Guest
// -----------------------
input [7:0] a, b;
output [16:0] c; // 0~131072
reg [16:0] c;
always @(clock)
c = (a * a) + (b * b); // 255*255*2 = 130050
//------------------------
When I run syntax checking, it returns a warning of unequal bitwidth in
assignment.
How can I fix this warning?
input [7:0] a, b;
output [16:0] c; // 0~131072
reg [16:0] c;
always @(clock)
c = (a * a) + (b * b); // 255*255*2 = 130050
//------------------------
When I run syntax checking, it returns a warning of unequal bitwidth in
assignment.
How can I fix this warning?