Memory chip and circuit diagram