Illegal sequential statement

In reply to Rana3n:

Hi Rana3n. You don’t use the when…else form inside a process. You can either get rid of the process, or use the if…elsif…else form inside the process. There are examples of both for a priority encoder if you Google it.