2024-11-28 08:16:48 -06:00
|
|
|
module lcu (P, G, CI, CO);
|
2024-11-28 17:13:21 -06:00
|
|
|
parameter WIDTH = 2;
|
2024-11-28 08:16:48 -06:00
|
|
|
|
2024-11-28 17:13:21 -06:00
|
|
|
input [WIDTH-1:0] P, G;
|
|
|
|
input CI;
|
2024-11-28 08:16:48 -06:00
|
|
|
|
2024-11-28 17:13:21 -06:00
|
|
|
output [WIDTH-1:0] CO;
|
2024-11-28 08:16:48 -06:00
|
|
|
|
2024-11-28 17:13:21 -06:00
|
|
|
reg [WIDTH-1:0] p, g;
|
2024-11-28 08:16:48 -06:00
|
|
|
|
2024-11-28 17:13:21 -06:00
|
|
|
\$lcu #(.WIDTH(WIDTH)) impl (.P(P), .G(G), .CI(CI), .CO(CO));
|
2024-11-28 08:16:48 -06:00
|
|
|
|
|
|
|
endmodule
|