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.
I am not too familiar with this, but as far as I know, it would infer an element of memory (FF) in order to hold the previous state.
It can happen than an else part is not defined. In such a case, when the 'if' condition is not met, then the signals just stay at their previous value.What happens if the else statement is not defined?
It can happen than an else part is not defined. In such a case, when the 'if' condition is not met, then the signals just stay at their previous value.
But wait, do you mean X as a logic logic level such as 1, 0, Z?
If so then you are thinking on the wrong lines.
If you see in your sim something going to X, then stop there and analyze the source of the X and fix it. You don't write RTL code to work with X.
Yes if the input to a flop is X, it will be passed to its output.I mean what would you see in simulation? will the output hold the value even though the input is X?
Perhaps you have not understood the explanation, the fact is that in HDL languages terminology, in general the term X is used to represent an undeterminate value, instead of a variable as you have supposed done. Therefore, a X (unknown value) will be propagated toward the output.
When if (condition == X), it will go to the else statement. What happens if the else statement is not defined?