John Bass
-
2005-12-19
- assigned_to: nobody --> totally_lost
There are cases where FpgaC decide none of the logic
depends on an output, and produces an empty file. The
work around is to force one or more internal variables
to be on output pins or global registered values with
#pragma outputport.
This seems to most often happen when output assignments
are guarded inside a conditional such as:
if(some_conditional) {
output = expression;
}
also registering or making key variables in
some_conditional to be output ports forces the logic to
be built.
So far, this failure has been relatively rare. If you
find a case, please add the example code to this bug