Altera_Forum
Honored Contributor
9 years agowait for [variable] ns - Wait statement for a variable time possible?
Hello Community,
I got a problem with my current coding task: I want to create a small microprocessor in VHDL to work with assembly language via my mif-file. One of my tasks should be a wait statement. The problem: it should be variable in time. I want to be able to wait as long as the number in my loaded memory is. This code I tried to implement but it didn't compile:when execute_wait =>
wait for memory_data_register ns;
state <= fetch; In this example my memory_data_register is the content which is read from my memory. It's type is unsigned. I'd be perfect, if somebody can help me ;) Best, orPoG