Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
17 years ago

compilation 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 has crossed 1 hr. i am not able to find out why this occurs as the same code is compiled for 7 bits within 5 mins.could anyone help me in this issue?

11 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It has been said, that the inner loop is executed 163*163*653 times (about 17e6), I didn't check in detail. You can translate the code to C and execute it sequentially by a uP, then this number allows to estimate the execution time. It takes a considerable amount of time, but is feasible obviously. The present FPGA code in contrast enforces 17e6 instances of the logic in the innermost loop, it isn't feasible with any existing FPGA.

    So you may want to find a way to execute a block of the code in parallel and repeat this block sequentially. This is actually often done with problems like the present one, and allows faster solving of complex numerical problems. But the problem has to be analyzed thoroughly for a meaningful solution.

    To discuss the problem from a HDL coding view: You can't use a clock in a function. You have to rewrite the code completely to introduce sequential processing.