Sign in
foss-eda-tools
/
skywater-pdk
/
libs
/
sky130_osu_sc
/
d038eebffecb547d3a7094a3b48ad978389e91ab
/
.
/
flow
/
RV32i
/
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