Sign in
foss-fpga-tools
/
third_party
/
Surelog
/
1c596881d1a7fc4baa7972b1f16b2e3d461aa200
/
.
/
src
/
Testcases
/
Yosys
/
opt
/
opt_share_add_sub.v
blob: e4787c4a95ac2e4b3900172cba4b34213f664121 [
file
] [
log
] [
blame
]
module
opt_share_test
(
input
[
15
:
0
]
a
,
input
[
15
:
0
]
b
,
input sel
,
output
[
15
:
0
]
res
);
assign res
=
{
sel
?
a
+
b
:
a
-
b
};
endmodule