verilog/tests/test2.v
2024-12-01 02:01:08 +03:00

8 lines
106 B
Verilog

module test2 (
input [3:0] a,
output [6:0] b
);
assign b = (1 << (a + 1)) - 2;
endmodule