What are the Functions of computer?
What are the Functions of computer?
用英语
A TYPICAL COMPUTER SYSTEM
A typical digital computer consists of:
a) A central processor unit (CPU)
b) A memory
c) Input/output (1/0) ports
The memory serves as a place to store Instructions,the coded pieces of information that direct the activities of the CPU,and Data,the coded pieces of information that are processed by the CPU.A group of logically related instructions stored in memory is referred to as a Program.The CPU "reads" each instruction from memory in a logically determined sequence,and uses it to initiate processing actions.If the program sequence is coherent and logical,processing the program will produce intelligible and useful results.
The memory is also used to store the data to be manipulated,as well as the instructions that direct that manipulation The program must be organized such that the CPU does not read a non-instruction word when it expects to see an instruction.The CPU can rapidly access any data stored in memory; but often the memory is not large enough to store the entire data bank required for a particular application.The problem can be resolved by providing the computer with one or more Input Ports.The CPU can address these ports and input the data contained there.The addition of input ports enables the computer to receive information from external equipment (such as a paper tape reader or floppy disk) at high rates of speed and in large volumes.
A computer also requires one or more Output Ports that permit the CPU to communicate the result of its processing to the outside world.The output may go to a display,for use by a human operator,to a peripheral device that produces "hardcopy," such as a line-printer,to a peripheral storage device,such as a floppy disk unit,or the output may constitute process control signals that direct the operations of another system,such as an automated assembly line.Like input ports,output ports are addressable.The input and output ports together permit the processor to communicate with the outside world.
The CPU unifies the system.It controls the functions performed by the other components.The CPU must be able to fetch instructions from memory,decode their binary contents and execute them.It must also be able to reference memory and 1/0 ports as necessary in the execution of instructions.In addition,the CPU should be able to recognize and respond to certain external control signals,such as INTERRUPT and WAIT requests.The functional units within a CPU that enable it to perform these functions are described below.