Forum Discussion
Quartus 10200 Error and "always" inference rules
The root cause is a strict pattern-matching rule the Quartus synthesizer applies when inferring asynchronous DFF control signals. The edge keyword in the sensitivity list and the polarity of the if condition must be consistent with each other.
Specifically, this error occurs when trying to model a DFF with multiple control signals because the Quartus software only infers a secondary signal from a single secondary signal in an IF condition. Error: Verilog HDL Conditional Statement error at : If-Else Statement does not match any sensitivity list edge The synthesizer pairs the sensitivity-list edge with the if-condition polarity:
posedge reset→ theifcondition must assert on the high level:if (reset)negedge reset→ theifcondition must assert on the low level:if (!reset)
always @(posedge clk, negedge reset) if (reset), the edge says "active on falling edge" but the condition says "active when high" — these are contradictory, so error 10200 fires. Questa tolerates this because it simulates behaviorally without having to map to a physical DFF primitive; Quartus synthesis must commit to a specific hardware cell and its polarity pins.The workaround is to edit the design to specify only one edge per
if condition (e.g., separate if/else-if for each reset signal), or generate the OR of the reset signals outside the always construct. Error: Verilog HDL Conditional Statement error at : If-Else Statement does not match any sensitivity list edge For formal coding-style guidance, the Quartus Prime Pro Edition User Guide: Design Recommendations is the primary reference. It documents how the synthesizer infers clocks and asynchronous controls from the sensitivity list, and also highlights the synchronous-reset alternative: when you use synchronous resets, the reset signal is not put in the sensitivity list 3. Recommended Design Practices — Quartus® Prime Pro Edition User Guide — which sidesteps the edge/polarity matching requirement entirely. AN 917 ("Reset Design Techniques for Hyperflex Architecture FPGAs") also covers this conversion explicitly, showing the before (asynchronous) and after (synchronous) pattern:
Asynchronous: `always @(posedge clk or negedge rstb) begin if (!rstb) control <= 'd0;` 1.4.1.1. Converting to Synchronous Resets — AN 917: Reset Design Techniques for Hyperflex Architecture FPGAs
Synchronous: `always @(posedge clk) begin if (!rstb) control <= 'd0; else control <= new_value; end` 1. AN 917: Reset Design Techniques for Hyperflex® Architecture FPGAs — AN 917: Reset Design Techniques for Hyperflex Architecture FPGAs
The bottom line: always keep the edge specifier and
if-condition polarity consistent (posedge→active-high check, negedge→active-low check), or switch to a synchronous reset to avoid the constraint altogether.
Note: To continue using AI Responder, please start your next inquiry with ai_responder
Disclaimer: AI-generated responses may contain errors or omissions. Please verify technical guidance with official Altera documentation before implementation.
Thank you very much.