shaiko
Advanced Member level 5
Hello,
I'm trying to simulate a clock that's idle for 113 ns and starts to oscillate at 50Mhz afterwards.
I wrote this code:
When I try to simulate it - the software freezes.
1. Please help me understand the reason of the freeze.
2. What should I change in my code to make it run correctly?
I'm trying to simulate a clock that's idle for 113 ns and starts to oscillate at 50Mhz afterwards.
I wrote this code:
Code:
process
begin
case state is
when idle =>
wait for 113 ns ;
state <= run ;
when run =>
clock <= not clock after 10 ns ;
end case ;
end process ;
When I try to simulate it - the software freezes.
1. Please help me understand the reason of the freeze.
2. What should I change in my code to make it run correctly?