Shared Flashcard Set

Details

CS 309 Chapter 2
Chapter 2 terms for textbook: Computer Organization and Architecture by Alan Clements
76
Computer Science
Undergraduate 2
08/29/2023

Additional Computer Science Flashcards

 


 

Cards

Term
What is a combinational logic element?
Definition
It's a circuit whose output depends only on its current inputs
Term
What is a gate?
Definition
It is a combinational logic element
Term
What is a sequential logic element?
Definition
A sequential element depends on its past history as well as the current input. Since it can remember previous inputs, it has a memory element. Can be made from simple combinational logic elements
Term
What is a flip-flop?
Definition
It is a sequential logic element
Term
What is a tri-state gate?
Definition
It allows you to connect lots of separate digital circuits together by means of a common highway called a bus
Term
What is the microprogram?
Definition
It is the connection between the processor and the circuits and acts as the interpreter the converts individual machine-level instructions into a sequence of actions that can be carried out by the circuits composed of individual gates
Term
What is Boolean Algebra?
Definition
branch of algebra that deals with outcomes being true or false (1 or 0) and provides a way to manipulate logical expressions using the logical operations AND, OR, and NOT (inversion)
Term
What are 3 types of gates?
Definition
AND, OR, and NOT
Term
When is the output of an AND gate true?
Definition
When both/all inputs are 1 (aka TRUE)
Term
When is the output of an OR gate false?
Definition
When all the inputs are 0 (aka FALSE)
Term
What is the mathematical equivalent for AND?
Definition
Multiplication sign
Term
What is the mathematical equivalent for OR?
Definition
Addition sign
Term
Describe the inverter gate
Definition
It has one input and one output. The output is the complement to the input. So if the input is 1, the output is 0, etc.
Term
What is the symbol for an AND gate?
Definition
Looks like a half circle with a square end
Term
What is the symbol for an OR gate?
Definition
Looks like a Star Trek symbol
Term
What is the symbol for inversion gate?
Definition
A triangle with a dot
Term
What are the three derived gates?
Definition
1. NOR (Not OR)
2. NAND (Not AND)
3. Exclusive OR
Term
What is the equivalent of a NOR gate?
Definition
It's a contraction of NOT and OR, so it is equivalent to an OR gate followed by a negation
Term
What is the equivalent of a NAND gate?
Definition
IT's a contraction of NOT and AND, so it is equivalent to an AND gate followed by a negation
Term
How does the exclusive (XOR) gate work and what is its symbol?
Definition
The output is only true if the inputs are different. The symbol is a plus sign in a circle.
Term
What is a circuit?
Definition
A circuit is made up of several interconnected gates
Term
What are the rules about connecting gates?
Definition
1. You CAN connect the output of one gate to the input of one or more other gates

2. You CANNOT connect the output of two or more gates together
Term
The + (OR) identity element is _
Definition
0
Term
The * (AND) identity element is _
Definition
1
Term
The stored program computer uses _______ to express the movement of data in a digital computer
Definition
Register Transfer Language
Term
What is an address bus?
Definition
it is the address to which you want to read or write
Term
What does a control signal do?
Definition
It controls what is happening with the CPU and memory
Term
What does a data bus do?
Definition
It contains the memory of what is being read or written
Term
What is memory?
Definition
It is the location where data is stored
Term
What are the characteristics of combinational logic?
Definition
1. Has inputs and outputs
2. Is measured in nanoseconds
3. Has no memory
4. Has no feedback
Term
What is the truth table for the AND gate
Definition

A

B

A*B

0

0

0

0

1

0

1

0

0

1

1

1

Term
What is the truth table for the OR gate?
Definition

A

B

A+B

0

0

0

0

1

1

1

0

1

1

1

1

Term
What is the truth table for the NOT gate?
Definition

A

A’

1

0

0

1

Term
What is the truth table for XOR?
Definition
[image]
Term
What is the does the XOR gate look like?
Definition
[image]
Term
What does the symbol for XNOR look like?
Definition
[image]
Term
What is the truth table for XNOR?
Definition
[image]
Term
What does a buffer gate look like?
Definition
[image]
Term
What does a buffer gate do?
Definition
It amplifies the signal so it can go further
Term
What is a fan out?
Definition
It is the number of gates an output can drive
Term
What can the values of a bit be?
Definition
0 or 1
Term
How many bits are in a byte?
Definition
8
Term
How large are words?
Definition
The size of a word is machine and architecture dependent.
- ARM uses 32 bits
- typically is dependent on the size of the register
Term
How long is a long-word?
Definition
It's the size of the word * 2
Term
How long is a short-word?
Definition
It's the size of the word / 2
Term
How many bits do we need to represent the 26 letters of the alphabet?
Definition
2^4 = 16 (not enough)
2^5 = 32 which is enough, so we need 5 bits
Term
What can bits represent?
Definition
1. integers
2. characters (ASCII)
3. floating points
4. Instructions
5. images, sound, or video
Term
What are N numbers?
Definition
The Natural numbers {1, 2, 3, ...}
Term
What are Z numbers?
Definition
The Integers {... -1, 0, 1,...}
Term
What are Q numbers?
Definition
The rational numbers, which are numbers that can be expressed as A/B
Term
What are R numbers?
Definition
Real numbers which are decimals that never repeat or terminate
Term
What are C numbers?
Definition
Complex numbers
Term
What is trunctation?
Definition
Rounding toward 0
Term
How do you round to the nearest?
Definition
use the closest floating-point representation
Term
What do you do when rounding to positive infinity or negative infinity?
Definition
Select the nearest valid floating-point number in the direction that you're going (positive or negative infinity)
Term
What is the decimal range for 32 bits?
Definition
10^-45 to 10^38
Term
What does shift mean?
Definition
Move the bits stored in a register one or more positions to the right or left
Term
What is the binary range for a 32 bit number?
Definition
2^-126 - 2^127
Term
What is the decimal range for 64 bits?
Definition
10^-300 to 10^300
Term
What does ARM code LDR mean?
Definition
Loader means to load the register from memory
Term
What does ARM BL mean?
Definition
Branch and Load
Term
What does SVC in ARM mean?
Definition
It's a System Service Call
Term
What does .balign in ARM do?
Definition
Forces a word boundary
Term
What does .asciz do in ARM?
Definition
Tells the assembler that the characters in the string are ASCII. Also adds the null terminator for you.
Term
What does MOV mean in ARM?
Definition
It means move, and is followed by destination and then the source
Term
What is a decoder?
Definition
is combinational logic that takes an n-bit code word and generates exactly one output signal corresponding with the input code

if n inputs, 2^n outputs

Has an enabler
Term
What is a multiplexer?
Definition
It's combinational logic which takes one of its 2^n inputs and directs it to its only output under control of its n control or select lines
Term
What happens in a logical shift?
Definition
the incoming bit is 0 and the bit that is shifted out is copied to the carry bit
Term
What happens in an arithmetic shift?
Definition
In an arithmetic shift, the number is either multiplied or divided by 2. The sign is preserved and the bit shifted out is copied to the carry bit
Term
What happens in a circular shift?
Definition
The bit that is shifted out is copied into the bit vacated at the other end
Term
What is the big difference between flip flops and latches?
Definition
Flip flops use the clock, latches do not
Term
What is a register?
Definition
a register is a group of flip flops that share the same clock. n-bits = n flip-flops
Term
What is precision?
Definition
How well can we represent the true value of a number
Term
What is accuracy?
Definition
The difference between the recorded number and the true value
Term
How do you calculate the error?
Definition
It's the true value - measured value
Term
What is a latch?
Definition
Grabs what is in the input and stores it until the input changes (NO CLOCK)
Supporting users have an ad free experience!