Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- ...would get into a habit of just using case statements when you don't need priority... --- Quote End --- I just want to point out, in contrast to multiple comments in this thread, that case statements are inherently supposed to have priority. They are not supposed to execute all branches in parallel. Don't take my word for it, though; take it from someone who trains Verilog professionally: http://sutherland-hdl.com/online_verilog_ref_guide/vlog_ref_top.html "Compares the net, register or literal value to each case and executes the statement or statement group associated with the first matching case." I have found this to be a point of contention across different tools. If you want to make sure that the branches of a case statement execute in parallel, look into the "unique" key word from SystemVerilog.