Shared Flashcard Set

Details

CH. 7 The CPU and Memory
JCAC
43
Computer Science
Professional
05/24/2010

Additional Computer Science Flashcards

 


 

Cards

Term

 

 

3 major components of a CPU

Definition

 

 

  • Arithmetic/Logic Unit (ALU)
  • Control Unit (CU)
  • Memory
Term

 

 

Arithmetic/Logic Unit  (ALU)

Definition

 

 

Where data is held temporarily and where calculations take place

Term

 

 

Control Unit  (CU)

Definition

 

 

  • Controls and interprets the execution of insturctions
  • Follows a sequence of actions that correspond to the fetch-execut instruction cycle
  • Also contains the the program counter (PC) and the Memory Management Unit (MMU)
Term

 

 

Memory

Definition

 

 

Where the instructions to execute and teh data are stored.

Term

 

 

CPU Registers

Definition

 

 

  • Single, permanent storage location within the CPU used for a defined purpose
  • hold a binary value temporarily for storage, manipulation, and/or simple calculations
Term

 

 

General Purpose registers

Definition

 

 

also known as accumulators; hold the data that are used for arithmetic operations as well as the results.

Term

 

 

Program Counter

Definition

 

 

Holds address of current instruction being executed.

Term

 

 

Instruction Register

Definition

 

 

Holds the actual instruction being executed.

Term

 

 

Memory Address Register (MAR)

Definition

 

 

Holds the address of a memory location

Term

 

 

Memory Data Register (MDR)

Definition

 

 

Holds a data value that is being stored to or retrieved from the location in the MAR.

Term

 

 

Status Registers

Definition

 

 

Several 1-bit registers also known as FLAGS, used to keep track of special conditions such as arithmetic carry, overflow and error conditions.

Term

 

 

What is the LMC formal instruction process for Subtract?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IR[addr] →MAR
  4. A-MDR → A
  5. PC+1 → PC
Term

 

 

What is the LMC formal instruction process for Add?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IR[addr] →MAR
  4. A+MDR → A
  5. PC+1 → PC
Term

 

 

What is the LMC formal instruction process for Input?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. Inbox → A
  4. PC+1 → PC
Term

 

 

What is the LMC formal instruction process for Output?

Definition

 

  1. PC → Mar
  2. MDR → IR
  3. A → Outbox
  4. PC+1 → PC
Term

 

 

What is the LMC formal instruction process for Halt?

Definition

 

  1. PC → Mar
  2. MDR → IR
Term

 

 

What is the LMC formal instruction process for Branch?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IR[addr] → PC
Term

 

 

What is the LMC formal instruction process for Branch Zero?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IF A ==0:IR[addr] → PC
  4. ELSE:PC+1 → PC
Term

 

 

What is the LMC formal instruction process for Branch Positive?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IF A=>0:IR[addr] → PC
  4. ELSE:PC+1 → PC
Term

 

 

What is the LMC formal instruction process for STORE?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IR[addr] → MAR
  4. A → MDR
  5. PC+1 → PC
Term

 

 

What is the Formal LMC instruction process for Load?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. IR[addr] → MAR
  4. MDR → A
  5. PC+1 → PC
Term

 

 

What is the LMC formal instruction process for CALL (PUSH)?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. PC+1 → STACK
  4. IR[addr] → PC
Term

 

 

What is the formal LMC instruction process for RETURN (POP)?

Definition

 

 

  1. PC → Mar
  2. MDR → IR
  3. STACK → PC
Term

 

 

Define a Bus:

Definition

 

 

A group of electrical conductors suitable for carrying conputer signals fro one location to another.

Term

 

 

List three Bus types:

Definition

 

 

  1. Point-to-Point: Carries signals from one source to one destination
  2. Multi-Point:  Connects several points together
  3. System:  Connects teh CPU with memory and/or I/O module cards.
Term

 

 

What is the purpose of an interface bridge?

Definition

 

 

To connect different buses

Term

 

 

What is explicit addressing?

Definition

 

 

The source and destination are stated as part of the command

Term

 

 

What is implicit addressing?

Definition

 

 

The source or destination is not specified as an argument but is part of the op codes

Term

 

 

What are priviliged instructions?

Definition

 

 

Instructions reserved for use by the OS only

Term

 

 

What are Non-Priviliged instructions?

Definition

 

 

Instructions that can be used by any program

Term

 

 

What are Move instructions?

Definition

 

 

  • Some of the most common instructions
  • includes load, store and memory movement
  • arguments can range in size from single bytes to many bytes
Term

 

 

What are arithmetic instructions?

Definition

 

 

Basic functions for adding and subtracting, multiplying and dividing

Term

 

 

What are Boolean Logic instructions?

Definition

 

 

Instructions for AND-ing, OR-ing, XOR-ing and NOT-ing arguments.

Term

 

 

What are Single Operand manipulation instructions?

Definition

 

 

  • Small and use only one argument
  • example would be incrementing (INC) and decrementing (DEC) registers and memory
Term

 

 

What are Bit Manipulation instructions?

Definition

 

 

Allows the setting or clearing of individual bits in bytes, words, or registers.

Term

 

 

What are Shift and Rotate instructions?

Definition

 

 

  • Shift:  Moves the data bits left or right one or more bits.
  • Rotate:  Rotates the data bits left or right one or more bits, and the bit that is shifted out of the end is placed into the vacated space at the other end.
Term

 

 

What do Program Control instructions do?

Definition

 

 

Change the flow of a program.

Term

 

 

What will the Call and Return instructions do?

Definition

 

 

Allows the program to branch to subroutines and Return to the next instruction after the Call was made.

Term

 

 

What is a Stack?

Definition

 

  • Used to store data when the most recently used data is the first needed.
  • Referred to as LIFO (last in first out)
Term

 

 

What are Push and Pop used for?

Definition

 

 

to add and  and remove values to/from a stack

Term

 

 

What is a Multiple Data Instruction?

Definition

 

 

  • Provides a way of performing the same operation to multiple pieces of data
  • Usually reserverd for special case processiong, i.e. graphics and 3D
Term

 

 

How many licks does it take to get to the center of a

Tootsie Roll Pop?

Definition

 

 

Try it and see for yourself...

Term

 

 

What is an interface bridge?

Definition

 

 

Used to connect different busses

Supporting users have an ad free experience!