D
David Perry
Guest
If I have a shared variable which is only ever written by one process, but could be read by multiple, will this generally work? Simulation gives me the correct results but I don't want to fall into any traps 
If I don't do sequential operations on the variable such as:
a = b;
a = a + c; --result is b + c
then should I be using a signal? Is there any advantage to either method?
I've noticed that the simulation can't display variables (Xilinx ISim), only signals. Could this be because a signal has to be fully synthesised, but a variable can get optimised away to something that doesn't quite resemble the variable anymore? (I may be completely up the garden path with this).
If I don't do sequential operations on the variable such as:
a = b;
a = a + c; --result is b + c
then should I be using a signal? Is there any advantage to either method?
I've noticed that the simulation can't display variables (Xilinx ISim), only signals. Could this be because a signal has to be fully synthesised, but a variable can get optimised away to something that doesn't quite resemble the variable anymore? (I may be completely up the garden path with this).