-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmux31x16.v
executable file
·25 lines (21 loc) · 919 Bytes
/
mux31x16.v
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
module mux31x16 (dataout, a, b, c, s);
input [15:0] a, b, c;
input [1:0] s;
output [15:0] dataout;
mux31 m1 (dataout[0], a[0], b[0], c[0], s);
mux31 m2 (dataout[1], a[1], b[1], c[1], s);
mux31 m3 (dataout[2], a[2], b[2], c[2], s);
mux31 m4 (dataout[3], a[3], b[3], c[3], s);
mux31 m5 (dataout[4], a[4], b[4], c[4], s);
mux31 m6 (dataout[5], a[5], b[5], c[5], s);
mux31 m7 (dataout[6], a[6], b[6], c[6], s);
mux31 m8 (dataout[7], a[7], b[7], c[7], s);
mux31 m9 (dataout[8], a[8], b[8], c[8], s);
mux31 m10 (dataout[9], a[9], b[9], c[9], s);
mux31 m11 (dataout[10], a[10], b[10], c[10], s);
mux31 m12 (dataout[11], a[11], b[12], c[11], s);
mux31 m13 (dataout[12], a[12], b[13], c[12], s);
mux31 m14 (dataout[13], a[13], b[13], c[13], s);
mux31 m15 (dataout[14], a[14], b[14], c[14], s);
mux31 m16 (dataout[15], a[15], b[15], c[15], s);
endmodule // mux3x16