module mul4x4 title '4x4 Combinational Multiplier' X3..X0, Y3..Y0 pin; " multiplicand, multiplier P7..P0 pin istype 'com'; " product P = [P7..P0]; PC1 = Y0 & [0, 0, 0, 0,X3,X2,X1,X0]; PC2 = Y1 & [0, 0, 0,X3,X2,X1,X0, 0]; PC3 = Y2 & [0, 0,X3,X2,X1,X0, 0, 0]; PC4 = Y3 & [0,X3,X2,X1,X0, 0, 0, 0]; equations P = PC1 + PC2 + PC3 + PC4; end mul4x4