Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Suppose, something like that...It will follow to asynchronous sequential logic.
View attachment 125013
always @ (*)
begin
if (s)
y= a;
if (r)
y=b;
end
It won't get the value of a because the ridiculous coding style of following one if statement with another if statement that assigns the same variable ends up sequentially changing the value of y to x due to the x/z on r.How will output y gets values of input a when s=1 but r='x' or r='z' in the above schematic?
Irrelevant I think, 'x' or 'z' input don't exist in synthesized hardware.How will output y gets values of input a when s=1 but r='x' or r='z' in the above schematic?