Condition the LUT initialtion
Created by: zhenbinwu
This is to fix the slow csim for Vivado_HLS >2017.4. Also try to avoid the slow syn issue with the introduction of static variables.
Tested with 1Layer DNN. The current master code won't work with 3Layer. But test with 3Layer in older version of the code seems OK