mux simulation operator: set "X" instead of "Z" if select not "0" or "1"
This commit is contained in:
parent
42de7dcf1f
commit
e8e56aa025
|
|
@ -1176,7 +1176,7 @@ int eval_logic_expr(int inst, int output)
|
|||
if(s < 2) {
|
||||
stack[sp - 3] = (s == 0) ? stack[sp - 3] : stack[sp - 2];
|
||||
}
|
||||
else stack[sp - 3] = 3; /* setting to 2 (X) leads to simulation deadlocks */
|
||||
else stack[sp - 3] = 2; /* setting to 2 (X) leads to simulation deadlocks */
|
||||
sp -=2;
|
||||
}
|
||||
break;
|
||||
|
|
|
|||
|
|
@ -2,8 +2,8 @@ v {xschem version=3.0.0 file_version=1.2 }
|
|||
G {}
|
||||
K {type=diode
|
||||
format="@name @pinlist @model area=@area"
|
||||
function1="U H 0 M"
|
||||
function0="L U 1 M"
|
||||
function1="U H 0 m"
|
||||
function0="L U 1 m"
|
||||
tedax_format="footprint @name @footprint
|
||||
value @name @value
|
||||
device @name @device
|
||||
|
|
|
|||
Loading…
Reference in New Issue