Chapter 5: Computer Architecture Flashcards

These cards will go over chapter 5: Computer Architecture (Nisan and Schocken) there will be another deck for Introduction to Processor Architecture (Tarnoff).

1
Q

What two types of info does the memory of a von Neumann machine store?
Hint: DI PI
Hint: I dem-and you show me

A

Data items and programming instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is a signal when discussing computer architecture?
Hint: is it logical? How is it represented on a wire?

A

A logical value represented as a voltage on a wire inside a machine

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What is a bus?
Hint: Think about Batman and how he is informed of his need.

A

A bus is a group of signals with one purpose.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

The instructions that reside in the instruction memory are written in an agreed-upon formalism called?
Hint: The answer involves the binary operations that computers directly understand.

A

machine language

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

The CPU executes tasks using what three main hardware elements?
Hint: Think about the components responsible for arithmetic and logical operations, temporary storage, and instruction execution control.

A
  1. ALU
  2. Registers
  3. Control Unit
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What term is used to describe the registers that provide the CPU with short-term memory services?
Hint: Consider the type of info these registers handle, especially when the CPU needs quick access during calculations.

A

Data Registers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

When executing a program, the CPU must always keep track of the address of the next instruction that must be fetched from the instruction memory. This address is kept in a special register called?
Hint: Think about about the role of this register in maintaining the sequence of instructions during program execution. :)

A

Program Counter

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Define the von Neumann architecture and its key components.
Hint: Think about the fundamental elements of this architecture involving the CPU, memory device, and input/output device.

A

This architecture is based on a CPU interacting with a memory device, receiving data from some input device, and sending data to some output device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

How are data abstractions like variables and arrays represented in the computer’s data memory?
Hint: Flight of the Concords made a song about it.

A

As Binary Numbers

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

In the case of an input device (keyboard, mouse, etc.), the memory map is
made to “ “.
Hint: a constant mirror with muscles holding a phone

A

Continuously reflect the physical state of the device

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

In the case of an output device (screen, speakers, etc.), the memory map is made to “ “.
Hint: A constant car driving to state devise 🤷‍♀️

A

Continuously drive the physical state of the device.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

What does a Hack CPU consist of?
Hint: arithmetic, cash holders x2, PC

A
  1. ALU
  2. Data register (D)
  3. Address register (A)
  4. Program Counter (PC)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

In a Hack CPU, what are the three ways an A-register can be interpreted as?
Hint: D, R, R

A
  1. As a data value
  2. As a RAM address
  3. As a ROM address
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly