A rectangle is inscribed in a circle, such that each vertex of the rectangle lies on the circumference of the circle. The diagonal of the rectangle is twice the length of the shortest side of the rectangle. The perimeter of the rectangle is units. What is the length, in units, of the diameter of the circle?