Shoufeng Zhang

Computer Architecture(话说CA和CO难道不是一个意思吗?)

CPU:Central Processing Unit, data or instructions that are processed by a computer system in the process phase of the input, proces, output and storage model are processed by them.

ALU:Arithmetic Logic Unit, performs all basic arithmetic, logical or input/output operations.

CU:Control Unit, is responsible for the operation of the CPU. It controls the retrieval of instructions from the primary memory as the sequence of their execution. (Or a simpler definition that can help you to get the full score: Getting new instructions and data from memory and provide them to ALU, direct data flow)

MAR:Memory Address Register. Holds the memory address of the data to be used by the ALU, so that the ALU can fetch the corresponding content from the memory and process it accordingly.

MDR:Memory Data Register. Holds the data that is to be used by the ALU and then saved to the RAM.

Address Bus:Connect MAR and RAM.

Data Bus:Connect MDR and RAM.

下图是所谓的CPU架构,记下来然后在考试中画上去。 Alt text

The use of primary memory:The only storage that is directly accessible by the CPU. The primary memory may hold both data and instructions that are currently running on the computer system. D&I stored in primary memory as binary machine code.

RAM:Random Access Memory. General-purpose storage area, data stored can be over-written. Volatile.

ROM:Read Only Memory. Store data that cannot be over-written. Non-volatile. Store programs and instructions that do not need to be updated or change.

Differences Between RAM and ROM:

Cache:

Machine Instruction Cycle:It is the basic operation cycle of a computer, taking place in a definite time period, during which one instruction is fetched from memory and executed. It typically consists of four stages:fetch, decode, executer and store.

累了,指令执行这块也没什么要多写的,看图即可: Alt text

Secondary Memory

Persistent storage(a.k.a. secondary memory/auxiliary storage): relatively slow memory that may be written to but is also non-volatile. The contents of the memory are not wiped if power is lost.

Need for persistent storage: If secondary memory did not exist a computer system would be unable to store instructions and data persistently. Whenever it shut down all the contents of the only existing primary memory would be lost.

Virtual Memory: secondary memory is required to hold information that may not be needed all of the time or may be too large to fit as a whole in primary memory.

The use of virtual memory: Secondary memory allow us to run all these programs confurrently and seamlessly. Since there is not enough space in the primary memory to load the extra program, some other program loaded by the user is copied into secondary memory. Whenever the program that was moved into the secondary memory is needed, some other program in the primary memory is copied to the secondary memory.

Examples of secondary memory:

Differences between primary and secondary memory:

Operating and Application Systems

Operating System: a set of software that controls the computer’s hardware resources and provides services for computer programs. An intermediary between software applications and the computer hardware.

Main functions of OS:

Application software: preloaded when it is manufactured and complete predefined tasks. Examples:

Toolbars: GUI element on which buttons, icons, menus, or other input or output elements are placed. Menus: displays a list of commands that can be chosen by the user to perform various functions. Dialogue boxes: communicate information to the user and allow him/her to respond by choosing an option from a list of specific choices. Graphical User Interfaces(GUI): WIMP, windows, icons, menus, pointers. Interact with computer in a number of ways. Command Line Interfaces(CLI): Type in commands to interact with the Computer. Natural Language Interface(NLIs): User speaks to the interface. Menu Based Interface(MBIs): Gives user a selection options.

Binary Representation

没啥好讲的,记住two’s complement是补码,sign-and-magnitude是原码即可。

Simple Logic Gates

更没啥好讲的了,记住写boolean expression的时候不能写 或者&,要直接写OR或者AND。逻辑门直接画圆即可。