Create ports according to the size and position as shown in the image

Create ports according to the size and position as shown in the image