How to generate delay in CPU?

Hello,

I am trying to generate delay in CPU. For instance after writing a register, I want to read it again after 1000ns. What should be the C code or the assembly code for the same?

Thank you

Nishank Bansal

More questions in this forum