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