shaiko
Advanced Member level 5
- Joined
- Aug 20, 2011
- Messages
- 2,644
- Helped
- 303
- Reputation
- 608
- Reaction score
- 297
- Trophy points
- 1,363
- Activity points
- 18,302
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?