From neurons to the chip