Week 4 - Fetch Execute and Processor Design

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/30

flashcard set

Earn XP

Description and Tags

31 Terms

1
New cards
How does the computer access memory ? (R/W)
First Step: Address is transferred MAR

\
Writing:

Data is transferred to (MDR)

Control signals then transfer MDR contents to the address specified in MAR

\
Reading:

Control signals then transfer contents of address specified in MAR into the MDR

Data is transferred from MDR into the destination register
2
New cards
What can go wrong in instruction execution


* Addresses not Recognized


* Invalid operation
* Division by 0
* Invalid result
* Overflow (integer or floating point)
* Underflow (floating point)

3
New cards
What is an Exceptional condition in a program?
**conditions in program**

* Division by 0
* Unrecognised instruction
* Address error

4
New cards
What is an External condition?
**interrupt signalled by peripheral**

* I/O operation terminates
* Character available from keyboard (keypress)

\
5
New cards
What is the Instruction Set architecture? (ISA)
\n

**An Instruction Set Architecture (ISA) is part of the abstract model of a computer that defines how the CPU is controlled by the software.** 

\
Most CPUs have a electronic clock - %%with every tick of the clock the CPU does a task%%

The clock speed is measured in Hertz (hz) - cycles per second
6
New cards
What a two instruction formats ?
**Fixed length encoding means that each thing you encode ends up the same length.**

**Variable length encoding means that it may not.**

\
For example - ARM - fixed

Intel - variable from 1 to 17 bytes
7
New cards
What is the difference between CISC and RISC architectures?

\
**Complex Instruction Set Computer**

**Reduced Instruction Set Computer**
==CISC== architectures **try to complete a task in as few instructions as possible.**

\
%%RISC%% architectures provide **simple instructions that can be executed within one clock cycle.**

* cheaper, faster, more power-efficient hardware
==CISC== architectures **try to complete a task in as few instructions as possible.**

\
%%RISC%% architectures provide **simple instructions that can be executed within one clock cycle.**

* cheaper, faster, more power-efficient hardware
8
New cards
What is the difference between Registers and Stack architecture in terms of operands?

\
Registers architecture uses registers as operands for operations

* uses addition or subtraction

\
Stack architecture uses a pile of values as operands. (rare now)

* operations occur between the top of the stack and other items on the stack.
9
New cards
What is the **Complex Instruction Set Computers** (CISC) ?

\
CISC architectures try to complete a task in as **few instructions** as possible – each instruction gets a lot of work done

* have **a larger number of instructions**, including complex and multi-step instructions
10
New cards
When does overflow and underflow happen?
overflow and underflow happen when we assign a value that is out of range of the declared data type of the variable. 
11
New cards
What is instruction set architecture ?
decides instructions to provide
12
New cards
What is processor design?
decides how to implement the desired instructions
13
New cards
A register which is used to store values of arithmetic and logical operations is called an

\
accumulator
14
New cards
A register that holds an instruction fetched from store during decoding and execution is called
(IR) instruction register
15
New cards
In instruction format, address of any data location is said to be
operand
16
New cards
Instructions that are programmed to make decisions are termed as
branching instructions - transmission control, unconditionally or conditionally, to a stated position of the program.

\
17
New cards
Branch instruction 'JUMP IF ZERO' is an example of
conditional branch

\
Unconditional branches are continually taken.

Conditional branches contain a condition and thus are either taken or not taken, based on either the particular condition is true or false.
18
New cards
when is the instruction register used ? (what part of cycle)
instruction **fetch**
19
New cards
How many cycles per second would a 2.8 GHz processor do?
2\.8 Billion
20
New cards
An interrupt breaks the sequence of instructions being executed by the processor and diverts its execution to
Interrupt service routine
21
New cards
what is direct addressing ?
An immediate operand specified directly in the instruction – no need for access to memory
22
New cards
What is direct addressing?
Direct address specified in instruction: red arrow shows address being used to fetch the data, blue arrow shows the data transferring to the register

\
**the operand of instruction refers directly to a location in memory.**
Direct address specified in instruction: red arrow shows address being used to fetch the data, blue arrow shows the data transferring to the register

\
**the operand of instruction refers directly to a location in memory.**
23
New cards
What is index operation/addressing?
In indexed operation, the contents of a register are added to the address given in the instruction to give the effective address
24
New cards
What is indirect addressing?
Instruction gives address where the address of operand is stored
25
New cards
What are the 5 types of instructions
* arithmetic
* logical
* data transfer
* branching
* system puppose

\
26
New cards
A microprocessor that is designed to perform a smaller number of types of computer instructions so that it can operate at a higher speed (perform more millions of instructions per second, or MIPS) is called ?
RISC
27
New cards
Which of the following computer languages isolate programmer from instruction set.

\
ALL High level languages
28
New cards
When operand specified directly in instruction, What type of addressing mode it is ? (not direct)
Immediate addressing
29
New cards
When an instruction gives address where address of operand is stored, that type of addressing mode is called?

\
\
indirect addressing
30
New cards
In immediate addressing the operand is placed where?

\
With the opcode in the instruction
31
New cards