diff options
Diffstat (limited to 'tests/opt/opt_share_add_sub.v')
-rw-r--r-- | tests/opt/opt_share_add_sub.v | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/opt/opt_share_add_sub.v b/tests/opt/opt_share_add_sub.v new file mode 100644 index 000000000..30e093a39 --- /dev/null +++ b/tests/opt/opt_share_add_sub.v @@ -0,0 +1,10 @@ +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 |