mirror of https://github.com/YosysHQ/yosys.git
11 lines
220 B
Coq
11 lines
220 B
Coq
|
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
|