A chip with an adjustable pinout function is disclosed. The chip includes
a first pinout, a second pinout, a logic circuit, and a selecting
circuit. The logic circuit includes a first port and a second port. The
selecting circuit, which is coupled to the logic circuit, the first
pinout, and the second pinout, controls the first pinout to be coupled to
the first port or the second port, and controls the second pinout to be
coupled to the first port or the second port.