| ![]() | |||||||
| Digital Logic and Computer Architecture Share all lectures here about Digital Logic and Computer Architecture ; Instructor : Sir Khaleel Afzal |
![]() |
| | Thread Tools | Search this Thread | Rate Thread | Display Modes |
| | #1 |
| Innocent Baby BSIT Professional ![]() ![]() ![]() |
Each computer's CPU can have different cycles based on different instruction sets. 1. Fetch the instruction from main memory The CPU presents the value of the program counter (PC) on the address bus. The CPU then fetches the instruction from main memory via the data bus into the memory data register (MDR). The value from the MDR is then placed into the current instruction register (CIR), a circuit that holds the instruction temporarily so that it can be decoded and executed. 2. Decode the instruction The instruction decoder interprets and implements the instruction. The instruction register (IR) holds the current instruction, while the program counter (PC) holds the address in memory of the next instruction to be executed. Fetch data from main memory Read the effective address from main memory if the instruction has an indirect address. Fetch required data from main memory to be processed and placed into registers. 3. Execute the instruction From the instruction register, the data forming the instruction is decoded by the control unit. It then passes the decoded information as a sequence of control signals to the relevant function units of the CPU to perform the actions required by the instruction such as reading values from registers, passing them to the Arithmetic logic unit (ALU) to add them together and writing the result back to a register. A condition signal is sent back to the control unit by the ALU if it is involved. 4. Store results Also called write back to memory. The result generated by the operation is stored in the main memory, or sent to an output device. Based on the condition feedback from the ALU, the PC is either incremented to address the next instruction or updated to a different address where the next instruction will be fetched. The cycle is then repeated.
Advertisement Views: 475
__________________ (¯`v´¯) `*.¸.*` ¸.*´¸.*´¨) ¸.*´¨) (¸.*´ (¸.Bzu Forum Don't cry because it's over, smile because it happened ![]() |
| | |
![]() |
| Tags |
| based, computer, cpu, cycle, cycles, instruction, sets |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Department of Computer Science' Proudly introduces >>>> 'COMPUTER CLUB' | .BZU. | University News and Events | 0 | 20-05-2011 02:40 PM |
| Modified Cycles (18 Pictures) | .BZU. | News & information/IT Pictures | 0 | 29-05-2010 12:55 AM |
| Final term paper Digital Logic and Computer Architecture, BIT 4th By Sir Khalil Afzal Computer Science Department | .BZU. | Digital Logic and Computer Architecture | 0 | 16-05-2009 02:14 AM |
| Mid term paper Digital Logic and Computer Architecture, BIT 4th By Sir Khalil Afzal Computer Science Department | .BZU. | Digital Logic and Computer Architecture | 0 | 15-03-2009 05:42 AM |
| The sun sets on adam | Waqas Ahmed | English Poetry | 1 | 05-10-2008 09:39 AM |