Microprocessor also has cache memory that stores the information and data for the quick access to the instruction. It works on the binary data 0 and 1 which denotes the electric signal.
First of all i would like u to tell some about logic to understand 0 and 1 as a electrical signal. Logic is the working manner of any circuit by which we always wants profit. It is of two types:-
In before days microprocessor does not have cache memory due to which it retrieves the information from the RAM, it consumes more time to transfer data for execute. But in latest cache memory is present inside the processor which increase the performance. Processor first search the required data in cache. If it finds the data in cache it is known as CACHE HIT, else know as CACHE MISS. After that it will search in RAM.
Microprocessor operates on binary digits 0 and 1 which are known as bits. And a group of bits is know as word.
First of all i would like u to tell some about logic to understand 0 and 1 as a electrical signal. Logic is the working manner of any circuit by which we always wants profit. It is of two types:-
1.POSITIVE LOGIC:- In that 0 is the lower voltage=off circuit and 1 is the higher voltage than
0=on circuit.
ex: As microprocessor operates on 5 v so for positive logic 5 v is binary
code 1 and o is below that
2.NEGATIVE LOGIC:- In that 0 is low voltage=on circuit condition and 1 is high voltage
compare to 0 voltage=off condition of circuit.
ex: As iron cutoff after more heating which prevents our cloths
negative logic by which we get profit
.
Microprocessor operates on binary digits 0 and 1 which are known as bits. And a group of bits is know as word.
There are mainly eight units in microprocessor which does a lot of task. The various parts are as below:-
1.ALU(arithmetic logic unit):-It performs the entire logical and arithmetic functions like add,sub,multiply,divide etc. and also reads the logical command. like creating folder,deleting folder. It takes the data from the registers to complete the task that assign by the control unit.
2.Prefetch unit:- In above picture it is located in interface area.prefetch unit is the first unit which accepts the data entered through the i/o device. It also analyze the data and instruction to the cache and assign the memory address to the data.This unique address is used later to access the data.
3.Code cache(decode unit):-It converts the analog signal to digital signal(binary language) which is understood by the ALU and register. In this unit encoder Ic is used which is responsible for the conversion, their Ic no. is 74147. It works in two part one on data to the register and other work on the given instruction. for more about encoder Ic you will learn in my other blog.
4.Registers:- In above picture it is at memory management.It is like a page of notebook as memory where data is stored after complete or before by the CU,ALU. It is used as a mini storage area by the ALU.
5.CU(control unit):- It is the important unit of the processor which mainly work to control on all the unit in it.It control all unit by sending signal to all the unit about how to operate on and what to do with the result.It also makes sure everything is happening in the right way in the right place.
6.Data cache:- Its work is similar to the ALU,decoder unit.Its main work is to convert digital(binary) data in to analog data to gives the output.
Above all are the main sequential work of microprocessor.