Loop unrolling in mapping of iterative algorithm