1
0
mirror of synced 2026-01-15 08:22:36 +00:00
2024-03-19 05:57:26 +13:00

12 lines
222 B
Verilog

module splice_demo(a, b, c, d, e, f, x, y);
input [1:0] a, b, c, d, e, f;
output [1:0] x;
assign x = {a[0], a[1]};
output [11:0] y;
assign {y[11:4], y[1:0], y[3:2]} =
{a, b, -{c, d}, ~{e, f}};
endmodule