Wizard: I brought the wrong system...
Chapter 575 Constructing Magic Logic Gates
Chapter 575 Constructing Magic Logic Gates
(This chapter provides a more in-depth explanation of the logic, so over 500 words are free.)
While answering Bevin's questions, Yaro was also busy.
It's been a long time since I've been to the academy. There have been many things that only Aro has the authority to handle in the academy.
For example, collecting the bullets accumulated during this period, the resettlement of the Boone family, and placing the complete alchemy platform sent by Ian Boone.
The key is the alchemy platform.
With the alchemy platform, the first thing to do is to maintain a few key artifacts for battle.
For example, with the Fiery Greatsword, after prolonged use of it, some blurry runes must be redrawn on the alchemy platform.
For example, refilling some of the already dulled buffer structures into the Demon Phoenix Armor.
For example, the metal boots worn under refined everyday clothes to aid in activating magic.
……
After completing these tasks, Yaro was almost done warming up.
What he was about to do next was something he had been longing to make for a long time, but had never had the means, opportunity, or free time to do so.
—Game console!
The purpose of making game consoles was not to play them, but to lay the foundation for making "computers".
Moreover, it creates a new pastime for the wizards in the new district of Lan'er Village, which not only distracts them and reduces the risk of them causing trouble, but also brings them an extra income.
At the same time, this was also a supplementary check and balance that Yaro used to maintain order in Lan'er Village after he left.
Whether it will succeed is hard to say, but that's something to consider after the "Arcade" is opened. Right now, we haven't even made the first game console yet, so it's too far off to talk about it now.
After rummaging through his spatial ring, Yaro quickly found the notes he had previously used to record inspirations for game consoles.
The core of it is actually just the most ordinary 'small early warning magic array', which can convert external movements into magic fluctuations.
Secondly, there's the "Armor of Escape" that Yaro recently mastered, which can transform magic into image information.
Since "Dunjia" is not a mature magic trick, most of its effects are actually manually completed by Yaro, unlike normal magic tricks which are entirely achieved through rune structures. Therefore, when transforming it into a "monitor", it is best not to make it too complicated.
Yaro chose the simplest '10*20' monochrome grid 'monitor'.
It's not about repeatedly forcing growth, but rather using a grayish-white algae similar to the mimosa plant. When infused with magic, it turns dark green, becomes more responsive, and also saves on magic consumption.
With the help of magic and the alchemy table, the 'monitor' was quickly made.
……
Next is the 'graphics card,' which is the structure that converts data into signals that the monitor can display.
The simplest way in this world is to use the remnants of the dead or the magic of activating objects to imbue certain special materials with a certain level of intelligence, so that they can handle some simple problems on their own.
For example, the "Abyss Contract Technique" mastered by Yaro has a similar effect.
But Yarrow decided to take a roundabout approach and use pure logic to complete this step.
Because his purpose from the beginning was not just for this game console, but to find a way to make a "computer" and lay the foundation for creating "smart chips".
The first step in pure logic is to abandon the other effects of magic and simply regard magic as an ordinary form of energy.
As for information storage, you can directly use the magical materials of this world. Many magical materials have their own magical reading effect, which is equivalent to natural memory sticks. The cheapest and most common of these is the blank magic stone of the undead type.
Almost everyone in the past knew that the underlying information in a computer is '0' and '1'. People in the past used electricity to distinguish between them, such as the on/off state of a circuit and the high/low level of an electrical signal.
In this life, magic can also be used as a substitute. For example, the trough of magic can represent '0' and the peak can represent '1'. Alternatively, blank magic stone fragments of the undead type can be used. Those with magic power can represent '1' and those without magic power can represent '0'. This can also be used to construct the underlying logic.
The same principle applies to mental power.
After distinguishing between '0' and '1', the next step is to construct the logic.
Many people in the past knew that computers were binary, that is:
『1』是『1』,『2』是『10』,『3』是『11』,『4』是『100』……
Even if you mark the peak of the magic wave as '1' and the trough as '0', it is impossible to produce a logical effect directly, and the binary effect cannot be produced directly.
Here, we need to use circuits to clarify the logic.
Binary, carrying over when reaching two, only considering one digit at a time, that is, the first digit:
『0』和『0』得『0』,『0』和『1』得『1』,『1』和『0』得『1』,『1』和『1』得『0』(也就是10)。
We can conclude that if the two input states are different, the output is '1'; if the two states are the same, the output is '0'.
This is the XOR gate.
An XOR gate requires multiple logic gates to achieve its function.
……
First is the OR gate: as long as one or more inputs are '1', the output is '1'; only when all inputs are '0', the output is '0'.
Solution: Connect two switches in parallel on a circuit. Closing either one will allow the magic to be transported.
An OR gate is a switch connected in parallel.
……
Then there's the AND gate: the output is 1 only when all inputs are 1; if any input is 0, the output is 0.
Solution: Both switches are on the same line (in series). Magic can only be transported when both switches are closed. If either switch is disconnected, magic cannot be delivered.
An AND gate is a switch connected in series.
……
Then there's the NOT gate: it yields the opposite result, inputting '0' yields '1', and inputting '1' yields '0'.
Solution: The input terminal is a switch controller with magic input. When the switch is turned off, the magic is disconnected.
……
By using two AND gates, one NOT gate, and one OR gate, you can achieve the effect of an XOR gate.
……
The AND gate is used as the endpoint, and its inputs are connected to an OR gate and a NAND gate, respectively.
Use circuits as an example for understanding.
When OR gates are connected in parallel, they will generate power if any one of their input terminals is energized.
When an AND gate is connected in series, there is no power if any one of its input terminals is de-energized.
The NOT gate inverts the result.
For example, '0', '0'.
Inputting both an OR gate and an AND gate simultaneously will result in no power regardless of whether they are connected in parallel or in series. The NOT gate following the AND gate will invert the result.
The result received by the AND gate at the endpoint is that one end is powered and the other end is not.
When an AND gate is connected in series, there is no power at one end, so the result is no power, which is '0'.
"0 and 1" and "1 and 0".
OR gates are connected in parallel, so that if one end is energized, the other end is energized; AND gates are connected in series, so that if one end is de-energized, the other end is de-energized; AND gates are followed by NOT gates that invert the signal.
The OR gate is powered, the NAND gate is powered, and the two results are then input into the final AND gate. Both ends are powered, so the result is powered and we get '1'.
The last possibility for binary is 1 and 1.
An OR gate connected in parallel is charged, an AND gate connected in series is charged, and a NOT gate following an AND gate is inverted.
The OR gate is powered, the NAND gate is not powered, and the two results are then connected in series through the AND gate, which is not powered.
『0』和『0』得『0』,『0』和『1』得『1』,『1』和『0』得『1』,『1』和『1』得『0』。
The conditions are met, so the result is valid.
……
Once the construction scheme of each logic gate is clarified, these logic gates can be integrated and constructed into a binary system using multiple interconnected methods.
Similarly, by using these logic gates, we can construct more complex logic, such as performing arithmetic operations, data transmission, storage, and control flow.
However, Yaro did not study computer science in his previous life. Although he had a general understanding of it, he did not know the specific details.
By encoding each display square individually using a binary method, the effect of a "graphics card" can be roughly achieved.
However, there was no direction at all regarding how to use these logic gates to build the core processing unit, that is, how to build a CPU.
"Is it possible to deduce the CPU's logical architecture by leveraging the power of the system?"
Yarrow fell into deep thought...
(End of this chapter)
You'll Also Like
-
Crossover Anime: The Heroine is in Trouble? I Take Advantage of the Situation
Chapter 210 6 hours ago -
Losing money, mygo, what does it mean that I really lost money?
Chapter 63 6 hours ago -
Ash's Pokémon Travel Has Big Problems
Chapter 201 6 hours ago -
Douluo Continent: Pill-based Martial Soul? Even a Golden Core is still a pill!
Chapter 200 6 hours ago -
Demon Slayer: The Second God Who Walks the Earth
Chapter 79 6 hours ago -
Infiltrating the righteous path? Just another place to be a sycophant.
Chapter 189 6 hours ago -
Dream of the Red Chamber: A Refined and Elegant Young Man in a Turbid World
Chapter 140 6 hours ago -
Douluo Continent: Dream Invasion, All the Beauties Become Wives
Chapter 035 6 hours ago -
Full-Time Magister: Can My Magic Cultivate Itself?
Chapter 24 6 hours ago -
Start with the hidden role of the Great Emperor of Fengdu, and immediately unleash 100,000 Yin Soldi
Chapter 22 6 hours ago