I am trying to delay an input signal by a certain time delay as follow
but the problem when i simulate the signal is always delayed by 7.946 ns even if I change the time delay in the code. Please can anyone help me
It should work fine, I have Checked it with modelsim. Also note that delay are not synthesizable.
For more complete information about compiler optimizations, see our Optimization Notice.