Forum Discussion
Altera_Forum
Honored Contributor
17 years agocompilation for 163 bits
hi to al! the compilation for 163 bits (2 inputs of 163 bits each and the output is also 163 bits) is not exceeding 2% of full compilation and 9% of analysis and synthesis even when the time ha...
Altera_Forum
Honored Contributor
17 years agoAn iteration scheme in HDL means parallel instantiation of the respective logic, so the below logic is build 652 times, for each function call.
begin
J=i;
n=(2*n)%p;
end Of course, part of the calculation reduces to constant expressions, but e.g. n depends on the input data, if I understand correct. I don't expect, that the present code can be synthesized in any existing FPGA. All working examples, that are dealing with similar numeric problems, are using at least partially sequential processing. As a special point, integer generally means 32 bit. In many cases, the compiler is able to recognize the actual required register size and reduce it respectively, but not always.