1
0
mirror of synced 2026-01-25 11:56:22 +00:00
YosysHQ.yosys/tests/opt/opt_share_add_sub.v
2019-08-03 12:35:46 +02:00

11 lines
158 B
Verilog

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