In reply to dave_59:
Thanks for that Dave. As you may have guessed I am from a software developer background. You’ve certainly given me a few points to read up on. I didn’t realise you could pass parameters as such. Definitely in this case I would have been aiming for passing in a constant value.
For me it’s quite hard to seperate or think about applying solutions in an asynchronous manner. I’m quite happy doing so on a breadboard etc but when it comes to FPGA programming it’s a bit of a challenge. :) I still don’t feel as though I have found the right learning resource/reference for me yet. I only switched to SystemVerilog a few days ago upon discovering that I could use better functions for handling strings and the likes - I’m trying to set up my own serial terminal interface for debugging.
I wondered whether or not I should have tried all of this out with modelsim so I could have witnessed debug and see what my actual values were but I kept tinkering with the actual hardware and scope until I couldn’t take any more :-)
Anyway thanks again for getting me over this hurdle!