Abstract :
In this paper, we propose a method for automatic data allocation in C to HDL compilers which support pointers. In our method, first, all assignment statements are traced throughout all function calls in order to reduce the number of variables which are mapped on memories, then, virtual memory banks are given to the variables in order to reduce access conflicts on the memory banks, and last, the variables are mapped on physical memory banks based on the virtual memory banks.