ElectronicBit
Learn Electronics Bit by Bit
In the following code, what is the value of 'y' after 'a' changes to 1 (initially a=0, b=0, x=0, y=0)?
always @(a) begin x = a; y = x + 1; end
Recall how blocking assignments handle sequential lines of code within the same block.