The part that causes problems is c[1] = p[0] + g[0] & c0;. What's wrong with it?
module CLA_gen(p, g, c0, c);
input [3:0] p;
input [3:0] g;
input c0;
output reg [4:1] c;
begin
c[1] = p[0] + g[0] & c0;
end
endmodule
The part that causes problems is c[1] = p[0] + g[0] & c0;. What's wrong with it?
module CLA_gen(p, g, c0, c);
input [3:0] p;
input [3:0] g;
input c0;
output reg [4:1] c;
begin
c[1] = p[0] + g[0] & c0;
end
endmodule