Forum Discussion
Altera_Forum
Honored Contributor
14 years agowhen use 'else' and when use ; ?
Hi.. I am starter in VHDl. I have some questions... What is difference between else and ;? first code use else but when i use ';' instead of 'else' it doesn't work. Do you know why? and s...
Altera_Forum
Honored Contributor
14 years agoif you put this ; at end it implies end of statement and then you have to repeat that for each value which means drive the signal (a) with different values (multiple drivers) but compiler needs to understand one value to drive (a). If you have multiple drivers then you must have logic to make the compiler understand how to apply each case (priority).
Priority can be either in a process(if else) or outside process e.g. when else as you have done.