题解 | #乘法与位运算#
乘法与位运算
http://www.nowcoder.com/practice/e41980b698624eb2b20c0d6e2bee7f45
`timescale 1ns/1ns
module dajiang13(
input [7:0] A,
output [15:0] B
);
//*************code***********//
assign B = (A<<7) + (A<<6) + (A<<5) + (A<<4) + (A<<3) + (A<<1) + A;
//*************code***********//
endmodule