mr_vasanth
Member level 5
- Joined
- Mar 12, 2007
- Messages
- 86
- Helped
- 5
- Reputation
- 10
- Reaction score
- 7
- Trophy points
- 1,288
- Location
- Bangalore, India, India
- Activity points
- 1,906
Method1:
Method2:
Method3:
What is the difference between the implementation of mux using these three different methods ?
How do these methods treat 'x' and 'z' on sel input ?
After synthesis, will all these three methods produce same netlist ?
Code:
assign y = sel ? a : b;
Method2:
Code:
case sel
1'b0: y = b;
1'b1: y = a;
endcase
Method3:
Code:
if (sel)
y = a;
else
y = b;
What is the difference between the implementation of mux using these three different methods ?
How do these methods treat 'x' and 'z' on sel input ?
After synthesis, will all these three methods produce same netlist ?