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