How does signal assignment work in a process?

后端 未结 3 1216
挽巷
挽巷 2020-11-28 12:35

I learned that a signal is not changed immediately when encountering an expression, but when the process ends. In this example here:

...
signal x,y,z : bit;
         


        
3条回答
  •  Happy的楠姐
    2020-11-28 12:56

    The way it works:

    Y changes and the process begins.

    X will be assigned to what Y's value currently is, but not until the end of the process

    Z will be assigned to not X's old value but not until the end of the process

    The process ends so now X and Z will be updated

提交回复
热议问题