Forum Discussion
Altera_Forum
Honored Contributor
8 years ago --- Quote Start --- Hi, There are a few issues in the code. --- Quote End --- Thank you for the response! Point 1,2 - thank you very much for remarks! 3. I really can't understand why:
1: led <= led; // will get previous value
but
1: led <= (led << 1); // can't get previous value
Additionally, the default block never invoked. Am I understand correctly that I should implement simple latch for storing previous value?