I remember reading a short story about a man who imprints his consciousness to a robot in order to achieve immortality. The robot becomes more and more powerful and survives past the existence of humans. The robot/man consciousness decides to create a world based on his memories of his life as a human. The robot is in essence God.
It is the book "Mind Transfer" (1988) by the author Janet Asimov.
From this review:
Using the background of husband Isaac's classic robot stories of the '40s and '50s, Janet Asimov considers the possibilities and problems of the title technique: imprinting human minds on robot brains to give the aging and ill a second life. Naturally, there is a backlash, the rabid conservative movement called biofundamentalism. The novel is structured around the life, death and subsequent robotic existence of Adam Durant, who is born into a dynasty torn between ""bioeffers'' and pioneering roboticists. In a story crowded with incident (settling another star system, terrorist bombings, hyperdrive innovations, alien encounters), the interesting question of a robotic culture that doesn't imitate its human parent is not developed. Also appealing as an idea is the outlined family chronicle with robots as relatives, but the bland characters and rushed, chaotic plot weaken its impact.