Forum Discussion
Altera_Forum
Honored Contributor
10 years agoQuartus Compilation error
Hello, I am getting a compilation error in Quartus II as: error (12153): can't elaborate top-level user hierarchy What is the possible cause? I have an always statement in my code a...
Altera_Forum
Honored Contributor
10 years agoHello nazmulece08,
you should only use two posedges, clk and reset, a ff enable is not edge triggered: reg ff; always @ (posedge clk or posedge reset) begin if (reset) begin ff <= 1'b0; end else begin if (enable) ff <= data; end end But it seems that there is at least one more issue with your code.