`timescale 1ns / 1ps
//////////////////////////////////////////////////////////////////////////////////
// Company:
// Engineer:
//
// Create Date: 2021/04/17 10:29:35
// Design Name:
// Module Name: mutipler
// Project Name:
// Target Devices:
// Tool Versions:
// Description:
//
// Dependencies:
//
// Revision:
// Revision 0.01 - File Created
// Additional Comments:
//
//////////////////////////////////////////////////////////////////////////////////
module mutipler(
parameter size=4,longsize=8;
reg [size:1] opa,opb;
reg [longsize:1] result;
begin:mult
reg [longsize:1] shift_opa,shift_opb;
shift_opa=opa;
shift_opb=opb;
result=0;
repeat(size)
begin
if(shift_opb[1])
result=result+shift_opa;
shift_opa=shift_opa<<1;
shift_opb=shift_opb>>1;
end
end
);
endmodule