• Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

Fetch Decode and Execute

Extracts from this document...


Ricki Lambert Computer Systems Fetch, Decode and Execute Introduction In this task I will be describing in detail the function of the fetch-decode-execute cycle and its relationship to the workings of a microprocessor, whilst making detailed reference to the role played by hardware and software in this relationship. The fetch, decode and execute cycle is formally known as the machine cycle. This cycle undergoes numerous steps incorporating the hardware from inside the processor mainly and the software stored in the disk space. To make sure the processor knows where to find a particular programme stored in memory it is assigned a number which is stored in the control logic area of the processor. It is in this area of the processor that instructions are decoded and obeyed. When fetching from the memory the processor uses a two logical systems of retrieval and they are; Fixed address reset system - This system normally loads from the bottom of the memory Vectored system load - This normally starts from the start address from a set place in memory and this can be either at the bottom or top of memory To counteract this, a jump function is used allowing the processor to fetch any instruction from any place in memory. ...read more.


In the diagram below we can see an example of the code working to a real situation, the situation being the programme code written in the microsim package. Fetch Decode and Execute Cycle Including Example To fetch the instructions from memory data has to travel along a series of communications links, these are called busses. There are a few differing types of busses that can be used. Whenever the CPU needs to read or write a byte of data to or from the memory it will specify the address on the address bus. This data is then placed on another communicational channel called the data bus. The data bus is what is known as unidirectional, and this means that the CPU can specify addresses but the memory cannot. This is a stark contrast to the data bus where both CPU and memory can place information on it, this is called bidirectional. This takes us to the control bus where similarities lie with the control unit. Where the control unit is the power behind the processor, the control bus is the power behind the bus system. The control bus will dictate whether the information is to be read or write, to be sent from memory to processor and visa versa and also whether all information on other busses is ready. ...read more.


Now that the two values have been extracted from the memory this means the fetch part of the cycle has been completed. The data is now placed in to the instruction register so the control unit can begin the process of decoding the values in to some form of useable data. This data is what will present us with an answer. This is done by the arithmetic logic unit. When in the ALU, the decoded information is able to be processed. Processing this data is dependant on the opcode that is presented when in the decoding stage. This will determine how the data is processed, whether it is add, subtract and so on. When processed the data is either stored in the main memory or projected to an output device. But how does the CPU no where to send it? Based on the conditional feedback from the ALU the CPU is able to determine where the information is to be sent to. It is this command that determines what bus route to send the required / processed data through. Things get a lot trickier when the jump command is issued. However if using my example diagram, instead of adding the programme counter by two it will dictate where the next instruction is to go by altering the programme counter to suit. This can be done in various ways. ...read more.

The above preview is unformatted text

This student written piece of work is one of many that can be found in our AS and A Level Computer Science section.

Found what you're looking for?

  • Start learning 29% faster today
  • 150,000+ documents available
  • Just £6.99 a month

Not the one? Search for your essay title...
  • Join over 1.2 million students every month
  • Accelerate your learning by 29%
  • Unlimited access from just £6.99 per month

See related essaysSee related essays

Related AS and A Level Computer Science essays

  1. Control Unit, Memory Unit, and Arithmetic Logic Unit. The CPU or Central Processing ...

    What is needed is something that is less temporary in nature and that does not have the same restrictions as far as size is concerned. This will be memory outside the processor. It is called secondary storage. There are a number of different types of secondary storage that can be

  2. With diagrams compare and contrast the relative advantages and disadvantages of digital transmission over ...

    > The system is not so prone to distortion as asynchronous communication and can therefore it can be used at higher speeds The disadvantages of Synchronous > If an error does occur the rather than just a single character the whole block of data will be lost.

  1. Smart Card System

    * Lock-and-key uses a challenge mechanism to authenticate individual users. * Lock-and-key provides simpler management in large Internet works. * In many cases, lock-and-key reduces the amount of router processing required for access lists. * Lock-and-key reduces the opportunity for network break-ins by network hackers.

  2. CP3 - Proposed Solution to a Realistic Problem - Apartment Administration software

    7 - 8 A well-written, organised, word processed report has been produced. ( The documentation is clear and thorough. ( Fully annotated listings are given for programs, macros etc. ( 5 - 6 A well-written word processed report has been produced but it may lack some organisation.

  1. Computer Aided Design Package

    98, ME, 2000 and XP Windows 95, 98, ME, 2000 and XP The cost of this application is �19.70 which is very cheap when compared to the other CAD applications which I have listed, also this application only requires a Windows operating system to run, it does not require a

  2. Investigate Data Communications.

    solar energy's ANSI This is the AMERICAN NATIONAL STANDARDS INSTITUTE organisation which specifies computer and software standards, including those of high level programming languages. They are a non profit government federation of standards - making and standards using organisations. It has a wide range of members which include professional societies,

  • Over 160,000 pieces
    of student written work
  • Annotated by
    experienced teachers
  • Ideas and feedback to
    improve your own work