It complains Input a<2:0>
and Input b<2:0>
is never used .The output is just displaying the concatenation of a[3]
and b[3]
(a = 1001
, b = 1100
).
module stone(a,b,rslt);
input [3:0] a,b;
output reg [0:1] rslt;
integer i;
always @(a,b)
begin
for (i = 0; i <= 3; i = i + 1)
rslt = {a[i],b[i]};
end
endmodule