- Bytes and hexadecimal
After reading this chapter, the individual thinks that the hexadecimal appearance should be to be simple and clear to represent the byte bar. The four-way representation is only 1 time times shorter than the binary, octal does not implement 8 bits of bytes, and 256 is too complex.
In hexadecimal, a two-bit signed number is negative if it starts with 8, 9, A, B, C, D, E, or F.
- Memory Organization
RAM: Random access memory. Be aware of the conceptual differences between random and sequential storage.
In general, when it comes to memory, how many bytes people default to. When it comes to transmitting data on a line, the number of bits is defaulted. As mentioned in the
Book: Since 9 relays are required for each memory according to our design, the 64kx8 RAM array requires nearly 5 million relays. Are you in doubt here? Are the relays used in selectors and decoders not counted?
Storage is organized like this:
- Automatic operation
is the so-called instruction code or opcode an element of the CPU instruction set?
The most basic instruction code: Load,store,add,substrate,halt. Add with Carry,substrate with borrow. Jump,jump If XXX. Carry plus and borrow are used to carry a carry latch (1 bits).
The carry input of the 8-bit adder is set to 1 when the subtraction operation is performed, or if the data output of the carrying latch is 1 and a carry addition or borrow subtraction instruction is performed. When the add operation is performed, the carry input is set to 0. When the borrow subtraction operation is performed and the data output of the carry latch is 0 o'clock, the low subtraction results in a borrow, so the accumulator needs to be 1 less, so the carry input is set to 0.
The transfer instruction is equivalent to forcing the counter to change the value equal to the transfer address.
0 Latch: Input all is 0 o'clock, 0 flag position is 1. The store directive does not affect the zero flag bit. The 0 flag bit can only be affected by addition, subtraction, carry addition, borrow subtraction directives, which are the same values set in the most recent execution of these directives.
Controlling repetition or looping is the difference between a computer and a calculator.
The processor has some components. One that has been identified is the accumulator, which is a simple latch that is used to store data inside the processor. The 8-bit counter and the 8-bit adder are called arithmetic logic units or ALU in the computer we are designing. The ALU can only perform arithmetic operations, mainly addition and subtraction. In complex computers, the ALU can also perform logical operations, such as "and", "or", "XOR". The 16-bit counter is called the program counter PC.
It is best not to use real numeric addresses when writing code, as they will change. A better approach is to use labels to specify the storage units, which are simple words.
There was an analog computer, but they were disappearing. I wonder if I will meet you later?
The development process of adder:
- From Abacus to Chip
Turing first proposed the concept of "computational power" to analyze what a computer can and cannot do. The following talks about "artificial intelligence", called Turing Test.
Turing Test: If the computer can answer a series of questions raised by the human test in 5 minutes, and more than 30% of the answers let the tester mistakenly think that the human answer, then the computer passed the test. But 30% is a projection of Turing's ability to think about machines in the 2000, and we are lagging far behind this prediction. June 7, 2014 is the 60 anniversary of the death of Alan Turing, the father of computer science, Alan. On this day, at the "2014 Turing Test" conference held by the Royal Society, the chat program "Yukin Gustmann" (Eugene Goostman) First "passed" the Turing test.
Von Neumann architecture: The computer should use binary; the computer should have as large a memory as possible to store program code and data; Directives should be stored sequentially in memory and addressed by program counters, but should also allow for conditional transfers, a design thought called stored-program concepts. Von Neumann architecture of a computer takes a lot of time to fetch instructions, which is a bottleneck in the architecture of von Neumann.
Two n-type semiconductor clip a P-type semiconductor can be made into an amplifier, called an NPN transistor, the corresponding three parts are collector (Collector), base (base) and emitter (Emitter).
There are 2 popular families that make up the components of integrated circuits: TTL (Texas Instruments) and CMOS (National Semiconductor Corp.). But it was the first time that Intel had built a complete computer processor on a circuit board with an integrated Intel 4004.
The construction of an oscillator requires only the use of quartz crystals, since quartz crystals have piezoelectric effects. With this feature, the quartz resonator can be used to replace the LC (coil and capacitor) resonant circuit, filter and so on.
Piezoelectric effect: When the wafer is coupled with a change in the electric field, the Crystals produce mechanical deformations, and when mechanical forces are applied between the plates, the crystals produce alternating electric field, a phenomenon called piezoelectric effects. Using piezoelectric effect, when the plate is applied to alternating voltage, mechanical deformation is produced, and mechanical deformation in turn produces alternating electric field. Mechanical deformation amplitude is small, crystal vibration frequency is relatively stable. When the frequency of the applied alternating voltage is equal to the natural frequency of the crystal, the amplitude of the mechanical vibration increases sharply.
There are three indicators that are often used to measure microprocessors: Data path bits, clock frequencies, and addressing capabilities. But they do not affect the ability of a single computer. In a sense, all digital computers are the same. If one processor's hardware can do no other processor, then other processors can be implemented with software. The fundamentally different processor is the speed!
The development of the computer has a lot to do with Bell Labs, and Bell Labs was designed to make phone calls. After searching the internet, Bell Labs now belongs to Nokia. Gaped! And, of course, IBM is selling cards on its own. One of the transistor inventors, Shockley, left Bell Labs and went to California to start the first company, and then Silicon Valley.
Summary of the history of computer development (via:http://blog.sina.com.cn/s/blog_7155b61b0100p8vj.html)
- Two kinds of typical microprocessors
In April 1974, Intel launched 8080; in August 1974, Motorola launched 6800.
- ASCII code and character mapping
Return the print head to the beginning to print the next line from the left side of the paper, which is the carriage return. Move the print head immediately to the next line of the line you just completed, which is a newline.
BCD code: Also known as two-decimal codes. This encoding uses four bits to store a decimal digit, making the conversion between binary and decimal fast. The most commonly used in the design of the accounting system, relative to the general floating-point notation, the use of BCD code, both to preserve the accuracy of the value, but also to avoid the computer as a floating-point operation of the time spent. Common BCD Code has 8421BCD code, 2421BCD code, 3 yards remaining.
The American Standard Code for Information Interchange, abbreviated as ASCII, is 7-bit encoded on "technology," but is generally stored in 1 bytes. Therefore there is an extended ASCII character set, the highest bit being 1.
ANI A, DFh: Except for the 3rd digit from the left side is placed 0. Setting this bit to 0 also converts the lowercase letters of the ASCII code to uppercase. Very ingenious!
According to the published ASCII code standard, 10 ASCII code codes (40h, 5Bh, 5Ch, 5Dh, 5Eh, 60h, 7Bh, 7Ch, 7Dh, and 7Eh) can be redefined and used for a country. In addition, if required, the number sign (#) can be replaced with the pound sign (£), and the dollar sign ($) can be replaced with the universal currency symbol (¤).
The ASCII code is a single-byte character set, representing a maximum of 256 characters. To represent more characters, a double-byte character set, with Unicode, can represent 65,536 characters. Unicode is also compatible with ASCII code.
A discussion of Unicode and UTF-8: https://www.zhihu.com/question/23374078
What are the main differences between the GB2312, GBK, GB18030 and other character sets? https://www.zhihu.com/question/19677619
- Bus connection
- Operating system
- Fixed-point and floating-point numbers
- High-level and low-level languages
- Graphic Revolution