Google
 
Site navigation: [ Home | Theory | Java | Moodle courses | Resource wiki | About ]

Processor configuration

6.1
Processor configuration

 

 

 

 

 

A register is a small amount of computer memory that can hold 1 word of data (32 or 64 bits in a typical pc)

Buses are the collections of wires that convey data from one part of the CPU to another.   They link the the microprocessor to the primary memory, (RAM and ROM) and the cache.

Structure of the CPU

As we have seen the CPU consists of the microprocessor and the Immediate Access Store (IAS).

The microprocessor in turn consists of the Control Unit (CU) and the Arithmetic and Logic Unit (ALU). Inside the CU are two important registers the Current Instruction Register (CIR) and the Sequence Control Register (SCR or program counter ). Inside the ALU is another important register known as the accumulator . These registers are important in the execution of a stored computer program.

 An additional register, the interrupt register is used to store information about processes waiting to catch the attention of the CPU ( see below )

The accumulator holds data transferred from the memory, the results of calculations within the CPU and data that is being transferred back to memory.

The instruction register (= CIR - current instruction register) holds the currently executing instruction from the program (held in main memory , perhaps with some parts in cache memory ).

The program counter (= SCR - sequence control register) holds the address of the next instruction to be executed.

This is a very simple model of the CPU but it is all you need to know for the IB programme.

 Back to top

The Machine Instruction Cycle

Sometimes known as the Fetch-Execute, Fetch-Execute-Decode or even the Fetch-Execute-Decode-Store cycle, it describes the main steps to be taken in the execution of machine language instructions and operates as follows:

 Back to top

Interrupt register

An interrupt is a signal generated by a peripheral or application program to tell the operating system that some type of service is required.  For example, a printer is offline or out of paper, or some application has just sent a request to save a file.

These signals are kept in the register and, just before the next instruction is fetched from memory, the register is checked to see if there are any requests that need servicing.  Different interrupts have different levels of priority (some get serviced before others), so that, should a low priority interrupt be generated during a high priority task, the low priority interrupt will have to wait until the high priority task completes.  Some interrupts can be masked others are non-maskable .  A mask is a bit-wise operation, suppose the interrupt register has the following status:

Buses

The main types of bus are the address bus and the data bus .  In many designs there is a control bus which tells the data bus which way it is moving data (from main store to cache, Accumulator to main store and so on).  When a microprocessor is described as operating at 500 MHz, for example, this means that 500 million instructions can be carried out by the microprocessor in a second.

Back to top

related: [ Topic 6 home | next: magnetic disc storage ]

Builds on Topic 3.2 architecture.

See an Animated Flash Demo of the Fetch-Execute Cycle (opens in new browser window).


 
The site is partly financed by advertising revenue, partly by online teaching activities and partly by donations. If you or your organisation feel these resouces have been useful to you, please consider a donation, $9.95 is suggested. Please report any issues with the site, such as broken links, via the feedback page, thanks.

Questions or problems related to this web site should be addressed to Richard Jones who asserts his right to be identified as the author and owner of these materials - unless otherwise indicated. Please feel free to use the material presented here and to create links to it for non-commercial purposes; an acknowledgement of the source is required by the Creative Commons licence. Use of materials from this site is conditional upon your having read the additional terms of use on the about page and the Creative Commons Licence. View privacy policy.

Creative Commons License


This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 License. © 2001 - 2009 Richard Jones, PO BOX 246, Cambridge, New Zealand;
This page was last modified: May 31, 2009