Multi-chip device and method for storing data