@FPGAguru2015: I'm glad you were able to get your code working. If if you are interested in getting feedback on the
working version of your code, including the testbench, consider posting on
Code Review. I have more advice to offer, which is outside the scope of Stack Overflow. —
toolic 50 secs ago