A C2VHDL compilation algorithm of non-counting loop
Yanxia Wu, Jie Yang, Guochang Gu, Sun Yan-teng · 2010
At present, most C2VHDL compiler uses FSM (finite state automaton) design method, it is easy to compile counting loop because the loop of initial value, final value and the step value known in compile. Because non-counting loop's index could not been known before program execution, FSM design method is complex to achieve, most C2VHDL compiler tools did not support non-counting loop. This paper, based on four-layered C2VHDL compiler framework which is based on LLVM (Low Level Virtual Machine), presents a compilation algorithm which adapts one cycle of high level signal instead of FSM method to support multiple format nested non-counting loop.