Altera_Forum
Honored Contributor
15 years agoverilog 'default' value in quartus throws Err10818
Hi all,
yesterday I got a problem while adapting an foreign project in verilog for my testboard. The code includes a lot of lines where a kind of default value has been defined and quartus always throws an error 10818 saying that it is not able to synthesise this code. The code always follows the following pattern:
always @(posedge ...)
aout <= 0;
if (...) begin
if (...) begin
if (...) begin
aout <= 1;
end
else begin
...
end
...
end
...
end
My experience is very limited, but I think that this code is not following the code style guidelines, although modelsim and an actel compiler seem to tolerate this code. It would be a lot of work to assign 'aout' in all "else" cases and I am sure I would miss one. ok, but is there any way to define a kind of 'default' value, for all if-branches, where 'aout' is not assigned that is following the code style guidelines ? thanks for your help. any hints for documentation about this pattern are welcome. cheers, eag1e