1,RTL
module a(
clk,
a,
b,
y,
out
);
input clk;
input a, b;
output wire y;
output reg out;
reg c, d;
always@(posedge clk)
begin
c <= a;
d <= b;
end
assign y = c + d;
always@(posedge clk)
begin
out <= y;
end
endmodule