Because this is a 16 bit Mux, each input line is an array of 16 bits.
Looking at the truth table for the Mux, we know that if sel[0] is 0, then line 'a', and 'c', can be selected. While if sel[0] is 1, then line 'b', or line 'd' are selected. So basically sel[0] will cause one set ('a','c' or 'b','d') to be selected.
sel[1], will select one line from the winner.
So, if sel[0] is 0, then the set 'a', 'c' is the winning set, from which one line will be selected by sel[1]. If sel[0] is 1, then set 'b', 'd' is the winning set from which one line will be selected by sel[1].
The code for the 4 way, 16 bit Mux is specified below.
No comments:
Post a Comment