diff options
Diffstat (limited to 'tests/sat/splice.v')
-rw-r--r-- | tests/sat/splice.v | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/sat/splice.v b/tests/sat/splice.v new file mode 100644 index 000000000..8d1dcd22f --- /dev/null +++ b/tests/sat/splice.v @@ -0,0 +1,14 @@ +module test(a, b, y); + +input [15:0] a, b; +output [15:0] y; + +wire [7:0] ah = a[15:8], al = a[7:0]; +wire [7:0] bh = b[15:8], bl = b[7:0]; + +wire [7:0] th = ah + bh, tl = al + bl; +wire [15:0] t = {th, tl}, k = t ^ 16'hcd; + +assign y = { k[7:0], k[15:8] }; + +endmodule |