verilog/tests/test2.v
2024-07-09 20:53:40 +03:00

8 lines
99 B
Verilog

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