What is the purpose of the “posedge” keyword in Verilog?
What is the purpose of the “posedge” keyword in Verilog?
- To specify a positive edge-triggered flip-flop
- To specify a negative edge-triggered flip-flop
- To specify a synchronous reset
- To specify an asynchronous reset
Correct answer
A. To specify a positive edge-triggered flip-flop
Explanation
posedge detects a 0-to-1 transition and can trigger a process such as always @(posedge clk).