Forum Discussion
Altera_Forum
Honored Contributor
13 years agosynthesis error 10818
Hi, while working with OpenCores SD card controller ( http://opencores.org/project,sdcard_mass_storage_controller ) I got error 10818 while trying to synthesize this for Cyclone IV (DE2-115). ...
Altera_Forum
Honored Contributor
13 years agoYou can use something like
always @ (posedge clk, posedge rst) begin
if (rst) begin
// Reset code; compile time only constants.
xyz <= 0;
else if (enable) begin
// Synchronous code
xyz <= 0;
if (somecondition)
xyz <= 1;
else if (someother condition)
xyz <= 2;
end
end The problem in your first code snippet was that you have an action outside the first "if/else" block, so the behavior wasn't clear to the tool.