Altera_Forum
Honored Contributor
18 years agoI'M puzzled. why simulation wave is incorrect!
Hi.
My design is a D FF. Its codes is as followed. When I simulate in the Quartus II 6.0 , the result of out1 is wrong and the result of out2 is correct. I am confused. I want to get the correct result and what shall I do. module reg_two_chanel(clk,rst_n,in1,in2,out1,out2); input clk,rst_n; input[7:0] in1,in2; output[7:0] out1,out2; reg[7:0] out1,out2; always@(posedge clk or negedge rst_n) if(rst_n==1'b0) begin out1<=8'h00; out2<=8'h00; end else begin out1<=in1; out2<=in2; end endmodule