Skip to main content

Inside a Microprocessor

To understand how a microprocessor works, it is helpful to look inside and learn about the logic used to create one. In the process you can also learn about assembly language the native language of a microprocessor and many of the things that engineers can do to boost the speed of a processor.

A microprocessor executes a collection of machine instructions that tell the processor what to do. Based on the instructions, a microprocessor does three basic things:

  • Using its ALU (Arithmetic/Logic Unit), a microprocessor can perform mathematical operations like addition, subtraction, multiplication and division. Modern microprocessors contain complete floating point processors that can perform extremely sophisticated operations on large floating point numbers.
  • A microprocessor can move data from one memory location to another.
  • A microprocessor can make decisions and jump to a new set of instructions based on those decisions.
There may be very sophisticated things that a microprocessor does, but those are its three basic activities. The following diagram shows an extremely simple microprocessor capable of doing those three things:


This is about as simple as a microprocessor gets. This microprocessor has:

  • An address bus (that may be 8, 16 or 32 bits wide) that sends an address to memory
  • A data bus (that may be 8, 16 or 32 bits wide) that can send data to memory or receive data from memory
  • An RD (read) and WR (write) line to tell the memory whether it wants to set or get the addressed location
  • A clock line that lets a clock pulse sequence the processor
  • A reset line that resets the program counter to zero (or whatever) and restarts execution

Let's assume that both the address and data buses are 8 bits wide in this example.

Here are the components of this simple microprocessor:

  • Registers A, B and C are simply latches made out of flip-flops.
  • The address latch is just like registers A, B and C.
  • The program counter is a latch with the extra ability to increment by 1 when told to do so, and also to reset to zero when told to do so.
  • The ALU could be as simple as an 8-bit adder , or it might be able to add, subtract, multiply and divide 8-bit values. Let's assume the latter here.
  • The test register is a special latch that can hold values from comparisons performed in the ALU. An ALU can normally compare two numbers and determine if they are equal, if one is greater than the other, etc. The test register can also normally hold a carry bit from the last stage of the adder. It stores these values in flip-flops and then the instruction decoder can use the values to make decisions.
  • There are six boxes marked "3-State" in the diagram. These are tri-state buffers. A tri-state buffer can pass a 1, a 0 or it can essentially disconnect its output (imagine a switch that totally disconnects the output line from the wire that the output is heading toward). A tri-state buffer allows multiple outputs to connect to a wire, but only one of them to actually drive a 1 or a 0 onto the line.
  • The instruction register and instruction decoder are responsible for controlling all of the other components.

Comments

Popular posts from this blog

Wired Equivalent Privacy

Wired Equivalent Privacy (WEP) is a security used in IEEE 802.11 wireless networks introduced in year Sep 1999, it was available on Router Configuration In WEP there are 2 Formats Hexadecimal ASCII

Installing A Printer

Go to Control Panel Click Printer Option Click Add a Printer Click Add Local Printer Select Port Select The Printer & click Next Click Next Installation Wizard Appears Now The Printer is Successfully Installed You can see your installed Printer icon in printer wizard in control panel

Intel Microprocessor History

List of the Microprocessors from Intel family from beggining Intel 4004 - 4 bit processors Intel 4040 Intel 8008 - 8 bit processors Intel 8080 Intel 8085 Intel 8048 - Microcontrollers Intel 8051 Intel 80151 Intel 80251 MCS 96 Family 3000 Familytect Intel 8086 - 16 bit Processors Intel 8088 Intel 80186 Intel 80188 Intel 80286 iAPX 432 - 32 bit Processors, non-x86 i960 aka 80960 i860 aka 80860 Xscale 80386DX - 32 bit processors 80386SX 80376 80386SL 80386EX 80486DX 80486SX 80486DX2 80486SL 80486DX4 Original Pentium - P5 micro-architecture Pentium with MMX Technology Pentium Pro - P6 / pentium M micro-architecture Pentium II Celeron (Pentium II-based) Pentium III Pentium II and III Xeon Celeron (Pentium III Coppermine-based) Celeron (Pentium III Tualatin-based) Pentium M Celeron M Intel Core Dual-Core Xeon LV Pentium 4 - NetBurst microarchitecture Xeon Mobile Pentium 4-M Pentium 4 EE Pentium 4E Pentium 4F Itanium - 64-bi...