always @(posedge clk or negedge rst_n)
begin
if (rst_n == 1'b0) begin
temp_a <= #1 1'b0;
end
else begin
temp_a <= #1 A;
end
end
always @(posedge clk or negedge rst_n)
begin
if (rst_n == 1'b0) begin
temp_b <= #1 1'b0;
end
else begin
temp_b <= #1 B;
end
end
always @(posedge clk or negedge rst_n)
begin
if (rst_n == 1'b0) begin
C <= #1 1'b0;
end
else begin
C <= #1 temp_a&temp_b;
end
end
always @(posedge clk or negedge rst_n)
begin
if (rst_n == 1'b0) begin
D <= #1 1'b1;
end
else begin
D <= #1 temp_a|temp_b;
end
end
always @(posedge clk or negedge rst_n)
begin
if (rst_n == 1'b0) begin
E <= #1 1'b1;
end
else begin
E <= #1 temp_a^temp_b;
end
end
endmodule