In recent years, with the development of brain science, neuroscience and cognitive science, artificial intelligence technology has made a series of achievements.however, it still fails to achieve the human level of universal artificial intelligence, and the cognitive structure and consciousness are still unsolved mysteries.this paper integrates the evolutionary lawsof the universe, life and thinking, summarizes a modelof generated general intelligence and reveal its philosophical principle and algorithm structure, thencalculates the functions of thinking and consciousnessone by one.the results show that the model and its based principles and algorithms conform to the essential characteristics of biology, physics, neuroscience, cognitive science and philosophy of intelligent species. It is a first implementation modelof artificialgeneral intelligence that truly simulates human intelligence.this paper reveals the essence of cognition, thinking and consciousness, which is the first time to find the operation mode of the last mysterious zone thathuman brain, and also the first answer to the origin of philosophy and the mystery of human mind since human history.