Altera_Forum
Honored Contributor
17 years agoHow does Quartus handle flip flop with both async reset and set
I have come to know that Stratix iii and Iv do not support async set ,so how in Quartus handles simulatanoous reset and set (async) ,I have heard that it uses latch but don't know exactly,Plz do clarify...
Here is the verilog code for a DFF with async set and reset module DFFASR(Clk,D,Q,Qbar,Set,Reset); input D,Clk; input Reset,Set; output reg Q; output Qbar; assign Qbar =~Q; always @(posedge Clk or posedge Set or posedge Reset) begin if(Set) Q <= 1'b1; else if (Reset) Q <= 1'b0; else Q<= D; end endmodule