Forum Discussion
Altera_Forum
Honored Contributor
17 years agoWhen you start writing VHDL code from the scratch, you should either have a basic understanding of the syntax and semantics or expect some unsuccessful attempts.
The problem is, that the error message not necessarily tells the basic error. In your example, it's the simple fact that you can't use sequential statements outside a process. Did you already experience the language templates in Quartus editor (accessible through right mouse-key context menu). They may be a good starting point for some VHDL exercises. If you put a sequential (process) block around your code, it still can't work this way. But that's another story. You can imagine it as a flip-flop with permanently enabled reset. Setting the output to '1' by the clocked input has no effect at all then.