arishsu
Member level 3
- Joined
- Sep 10, 2013
- Messages
- 66
- Helped
- 6
- Reputation
- 12
- Reaction score
- 6
- Trophy points
- 8
- Location
- India
- Activity points
- 422
Is this syntax is right for 4:1 mux output?
assign Y=(S==0x)?((S==00)? I[0]:I[1])((S==1x)?((S==10)? I[2]:I[3]));
S is 2 bit reg(select line), I is 4 bit reg(input) and Y output.
assign Y=(S==0x)?((S==00)? I[0]:I[1])((S==1x)?((S==10)? I[2]:I[3]));
S is 2 bit reg(select line), I is 4 bit reg(input) and Y output.