Sign in
foss-eda-tools
/
skywater-pdk
/
libs
/
sky130_osu_sc
/
e7912ea651a1c62101e17d8f84edad7d1c93460b
/
.
/
flow
/
synth_snpsRISCV
/
hdl
/
mux4.sv
blob: a0248e97165ce3b3d3d3018961c48313d598a010 [
file
] [
log
] [
blame
]
module
mux4
#(parameter WIDTH = 8)
(
input logic
[
WIDTH
-
1
:
0
]
d0
,
d1
,
d2
,
d3
,
input logic
[
1
:
0
]
s
,
output logic
[
WIDTH
-
1
:
0
]
y
);
assign y
=
s
[
1
]
?
(
s
[
0
]
?
d3
:
d2
)
:
(
s
[
0
]
?
d1
:
d0
);
endmodule
// mux4