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 as below: always @ (posedge clk or posedge reset or posedge enable) does this creating the problem? Please any one can help?2 Replies
- Altera_Forum
Honored Contributor
Are you sure thats the only error?
Please post the full code and all errors (not just the final one). - Altera_Forum
Honored Contributor
Hello 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.