module multiplier2 #(parameter BITWIDTH = 2) (A, B, P); // Input and Output Declarations input [BITWIDTH-1:0] A; // A is an input of size BITWIDTH input [BITWIDTH-1:0] B; // B is an input of size BITWIDTH output [2*BITWIDTH-1:0] P; // P is an output of size 2*BITWIDTH // Multiply A and B assign P = A * B; // Calculate the product endmodule