actually, i was asking the question just for knowing more about the WAIT
not for the process functionality or its equivalence
my code is already combinational
even with the process included
so it's similar to the code your wrote
cause all the signals used to affect the output are in the sensitivity list
writing a process is usually for sequential execution
and its sensitivity list is the one waiting for signal events in order to execute the corresponding affected statements
i got to know that the difference between the locations of the wait is mainly in the initial simulation cycle
the output will begin with different values
cause it'll have to wait for the WAIT to occur if it's in the start
but if the wait is in the end
it'll start with the initial values of the statement signals
then wait for their events
and after that they will both continue similarly
so for having a process with wait instead of providing a sensitivity list
the WAIT is put in the end to ensure the execution of the initial simulation cycle
to have a wait or a process is somehow like polling on a signal's value
and its changes, like u said, having an interrupt for instance to occur in MCU
but there can be several processes, concurrently executing and communicating through signals
Salma