S
Sailu
Guest
Hi All..
Can ny one explain the difference between these two pieces of code at
the output of simulator?
reg y;
always @ (a or b or select)
if (select)
y = a;
else
y = b;
AND
wire t = (select ? a : b);
To put it in a easier way, What is the difference between a ternary
operator and if-else conditional statement?
Thanks in advance,
Sailaja.
Can ny one explain the difference between these two pieces of code at
the output of simulator?
reg y;
always @ (a or b or select)
if (select)
y = a;
else
y = b;
AND
wire t = (select ? a : b);
To put it in a easier way, What is the difference between a ternary
operator and if-else conditional statement?
Thanks in advance,
Sailaja.