ad

CPU ( CONTROL PROCESSING UNIT )



Central Processing Unit (CPU), refer to the computer hardware that understand and execute commands and data from the software. Another term, processors / processor (processor), is often used to refer to the CPU. The microprocessor is the CPU manufactured in integrated circuits, often within a single integrated circuit package. Since the mid 1970s, single-microprocessor integrated circuits have been commonly used and be an important aspect in the implementation of the CPU.Processing device or a data processor in the computer is the processor or his full microprocessor, but in general computer users refer to it as a CPU (Central Processor Unit). CPU is the brain to a computer system. CPU has three main components which are part of its core tasks the control unit (Control Unit - CU), arithmetic and logic unit (Aritmetic and Logic Unit - ALU) and registers a component that helps intercourse (interfaces) to and from memory. CPU task is to implement and oversee the overall operation of the computer so that it can be said almost the entirety of thought held here, so it is often named as the brain of the computer. The place is located on the CPU motherboard (motherboard) at the center of this well located all computer devices such as memory, input port -output (I / O) and so on.


CPU FUNCTION



 
https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhQUhL2-GMsORCO2aXYC77Lmso1ipZXmX_U45RPhL-Wg8WIAGLjMF098VqMdGZKiKuyrQUSbn1mbfL12V2_dNs2AZ8Z8BZJ4Thyphenhyphen1jSO0eNgGPi6pQqIf4c__v19SYzw_uljWhQb1O5siLzG/s1600/Fungsi+cpu.JPG
The main function of the CPU is running programs that are stored in the main memory. This is done by taking instructions from main memory and executed one by one in accordance with the flow of orders. This work was done in two stages of reading instruction (fetch) and execute those instructions (execute). The process of reading and implementing this is done repeatedly until all instructions contained in main memory is executed or the computer is turned off. This process is also known as fetch-execute cycle.

 
Fetch-execute cycle can be explained as follows:



  
1. Instruction Fetch (Taking Instructions)

        
CPU must read the instruction from memory

   
2. Interpret Instruction (Translating Instructions)

        
Instructions should be instructed to determine what action needs to be taken

   
3. Fetch Data (Taking Data)

        
Execution of an instruction requires reading from memory or I / O module

   
4. Process Data (Data Processing)

        
Execution of an instruction requires arithmetic or logic to the data

   
5. Write Data

        
Execution results require writing data to memory or I / O module




How it Works CPU

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgS96qoi0jCYnZ5ZCqQTtvhyzBp9kIjGoe4GzCzh33GGhwNTjHplXjvg4vInjCJQWzPS3IN81EyKeTNe6gI27q4lJh4NwQjJ4F4Q5GozlWtS2TuIEwpEdq5mnCsWy-WXjObOXWYNi46OCpQ/s1600/cara+kerja+cpu.pngCPU is the main functional parts of a computer system, it can be said that the CPU is the brain of a computer. In this CPU all the computer work done.Things that need to be done CPU is:

  > 
Read, encode and execute program instructions
  > 
Sending data to and from memory, as well as from and to the input / output.
  >
Responding to interruptions from the outside.
  > 
Providing clock and control signals to the system.In doing the above, it is clear the CPU needs to store data temporarily. CPU need to remember the location of the last instruction that CPU will be able to take the next instruction. CPU needs to store instructions and data for the time when the instruction was dieksekusi.Dengan other words, the CPU requires a small internal memory called the Registry.Arithmetic and Logic Unit (ALU) functions form the operations of arithmetic and logic to the data registers store temporary data and results of ALU operations.Control unit generates signals ,, which will control the operation of the ALU, and data transfers from or to the ALU.



CPU components

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhTP85y4mxBF84N9fwAuFpoF0VtR9jCRz69kYxanuEpXoL-HzM79kngEQ8BCwyTDIlfD7CqOe_s68U3u7A-IcNZvIQZ4XenU-yadpMnn4UDLoE0QLwL_PWm9bNuYwNdc-lCuzv61g3rNi55/s1600/210px-CPU_block_diagram.svg.pngCPU or Central CPU InterconnectionsProcessing Unit is the most important part of a computer system, it can be said that the CPU is the brain of the computer itself. A most sophisticated computer would be meaningless without the CPU installed in it. In everyday CPU main role is to process data based on instructions he obtained. CPU itself was still divided into several components that work together to form a processing unit. There are four main components making up the CPU, namely:

    
> Arithmetic and Logic Unit (ALU)
    
> Control Unit (CU)
    
> Registers
    
> CPU Interconnections 

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjFYh3yaNgwzhSsW9YzYmPPzSD5iX6VVTmPbJ4iaS5hCFUwz6GL_Mb4pQiqlVUCpHVhz1Z6GYi47V_df3BirVyAVN5QueZnA1OikHgTTgQBV7Zho891jeW6clcxGf58Ts5b0aF7tSwClIFm/s1600/ALU.png 


ALU

Arithmetic And Logic Unit (ALU) is one of the inside of a microprocessor which functions to perform arithmetic and logic operations count. Examples of arithmetic operations are operations of addition and subtraction, while an example of the logic operation is a logical AND and OR.The main task of the ALU (Arithmetic And Logic Unit) is doing all arithmetic or mathematics which occur in accordance with the instructions of the program. ALU perform other arithmetic operations. Such as subtraction, subtraction, and division is done on the basis of the sum. So that the electronic circuits in the ALU used to perform arithmetic operations is called adder.ALU perform arithmetic operations on the basis of the increase, while the other arithmetic operations, such as subtraction, multiplication, and division is done on the basis of the sum. so that the electronic circuits in the ALU used to perform arithmetic operations is called adder. Traffic assignment of the ALU is to make the decision of logic operations in accordance with instructions of the program. Logic operations (logical operation) includes a comparison of two logic elements using logical operators, namely:
  •      equals (=)
  •      is not equal to (<>)
  •      less than (<)
  •      less than or equal to (<=)
  •      greater than (>)
  •      greater or equal to (> =)
The functions defined in the ALU is Add (sum), Addu (summation unmarked), Sub (reduction), Subu (reduction unmarked), and, or, xor, sll (shift left logical), srl (shift right logical ), SRA (shift right arithmetic), and others.
 



Control Unit ( CU )


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhsvl_XmmMpL63sKjKJX0GeORlKO-s2wPQS7OkN8800bYIrlnTo-lBpMkDqINs7LbsUDUzJq9pEb8Xyk6xzGI0tXpZWaWkSZvtLIuFHjDUoJOT2MM4S-J7Y2DUhFxykX7ZHRLUBXRE38FZm/s1600/cu.jpgControl Unit (CU) is one part of the CPU that is tasked to provide guidance / control / control of the operations performed in the ALU (Arithmetic Logical Unit) within the CPU. The output of the CU will regulate the activity of other parts of the CPU device.In the early days of computer design, CU is implemented as an ad-hoc logic that is difficult to design. Now, CU is implemented as a microprogram stored in a storage area of ​​control (control store). Some word from microprogram selected by a microsequencer and bits come from word-word will directly control the different parts of the device, including among which are the registers, ALU, registers instruction, bus and input / output devices outside the chip. In modern computers, each subsystem has had the controller each, with CU as pemantaunya (supervisor).

 
The task of the CU is as follows:

  •     Organize and control the means of input and output.
  •     Taking instructions from main memory.
  •     Retrieve data from main memory if required by the process.
  •     Send instructions to the ALU if any arithmetic or logical comparisons, and oversees the work.
  •     Stores results into the main memory.  


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhBYNnnQp4xsMIHI6A7t7Qq0HP_CMEGi5YCzqx2x__jgbHvIQ8-JUCsCmQLYqKfjzBlmAE_50XkN-Mvf84s33Py18n2ZavkqfLLQXrkcZbUVAzjZgQRzZy-Oh8_1RA8xJ93Qrw7KVmzi9LQ/s1600/Multi-Cycle+CU.PNG
Type Control Unit (CU)

Single-Cycle CU
CU process only occurs in one clock cycle, meaning that every instruction is in one cycle, and therefore does not require a state. Thus the Boolean function of each control line is only a function of the opcode alone. Clock cycle must have the same length for each type of instruction. There are two parts to this control unit, which is a process to decode the opcode to categorize them into four kinds of instruction (ie gate), and providing control signals based on the type of instruction (ie the OR gate). The fourth type of instruction is "R-format" (associated with the register), "lw" (read only memory), "sw" (write to memory), and "beq" (branching). A control signal is generated depends on the type of instruction. For example if it involves memory "R-format" or "lw" will signal "Regwrite" will be active. Another thing if it involves memory "lw" or "sw" will be given control signal to the ALU, namely "ALUSrc". Single-cycle design is more able to work properly but this cycle is not efficient.

Multi-Cycle CUIn contrast to the control unit that single-cycle, multi-unit cycle control over many functions. By paying attention to the state and the opcode, Boolean function of each output control line can be determined. Each of which will be a function of the 10 pieces of logic inputs. So there will be lots of boolean functions, and each of them is not simple. At this cycle, the control signal is no longer determined by looking at the bits instructions. Opcode bits tell what the next operation will be run CPU; not the next instruction cycle.


 
 Register

https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhNXZ9LxjnhJ-as6ACtkW8Uz2nmADDRA-HPNf5xhWCZo6S0HV9F9xQLuMsZEJmUNuTIrR_-oeyODl6Ckl80WeABBWms4ifNny2E7peXdzWr0GJrlGa8b9Rt6uedR3qJI-DkYaKJYYiw2fGj/s1600/register.jpg
Computer systems use memory hierarchy. Where getting to the top level of the memory into a form which is faster, smaller, and certainly more expensive. The CPU has a set of registers which is above the level of the memory hierarchy main memory and cache.
Registers are small storage devices that have access to a fairly high speed, which is used to store data and instructions that are being processed, while other data and instructions are waiting to be processed is stored in the main memory. Each register can store the numbers up to a certain maximum amount depending on its size. Registers can be read and written at high speed because it is on the CPU.Register a CPU internal storage media used during data processing. Registers are temporary storage medium, meaning that the data will only be in registers when the data is needed for the computer was still alive, when the data is not needed anymore then he is not entitled longer inregisters, and when the computer is turned off then all the data contained within them will be lost.

The following function registers:


CPU registers that can be used by programmers, using set intsruksi allows one or more registers for dispesifikasian as an operand or operand address.CPU registers that can be used by programmers, using set intsruksi allows one or more registers for dispesifikasian as an operand or operand address.



https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjHejl6IYcBbDBqaXeQHUMmvRds5_O_gdMwdGcCAjoVmZqyrTkCzfrIJ83e_Ha0gOlXVuR_BlrrrecPmSLkUFKvdb-kj7D0uK1tE9H4SrZHt3Aul4zT4qT4737ZDuzczb3C21GoDR-aAmoA/s1600/User+Visibel+Register.jpga. General Purpose Register
  •          Used for addressing modes and data.
  •         Accumulator (arithmetic, Shift, Rotate)
  •         Base Register (Rotate, Shift, arithmetic)
  •         Counter Register (Looping)
  •         Data Register (save the address I / O device).

 
b. Register Address

  •          Used for addressing mode
  •         Segment Register (Code Segment, Segment Data, Segment Stack, Extra Segment)
  •         Register Index (Index Stack, Data Index)
  •         Stack Pointer

 
c. Register Data

  •          Used to store data
d. Conditions Register Status Code (Flag)
  •         Code that describes the results of previous operations
Control and Status Register:
These registers are used by the control unit for controlling the operation of the CPU and the operating system programs to control program execution


https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEidc6htKbEjMPY5Eo9Sj9RBnXddqKqILv_THxUfdSLq4d3JJeQn4RRIzzdra5io_IUd9pTTh4v9aRfpS66PFNy9EBGYjP6vi8Qv9-8I81mvvXR2ffGF-d38t7h0FgvH5J8vePikt6A3TUeI/s1600/Control+register.png 


a. Program Counter (PC)

         Contains the address of the instruction to be taken

b. Instruction Register (IR)

         Contains the address of the last instruction

c. Memory Address Register (MAR)

         Contains the address in memory storage

d. Memory Buffer Register (MBR)

         Contains data read from memory or to the memory diyliskan




CPU Interconnections
 Interconnections are CPU and bus connection system that connects the internal components of the CPU, ie ALU, control unit and registers and also with external buses connecting the CPU with other systems, such as the main memory, device I/O.  
 

Tidak ada komentar:

Posting Komentar

COMPUTER HISTORY

Computer comes from the Latin " computare", which means the calculators , as more computers originally used as auxiliary...