ence260 exam (computer architecture and embedded systems)

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

1/368

encourage image

There's no tags or description

Looks like no tags are added yet.

369 Terms

1
New cards
What is an embedded system
A small computer that has a specific task
2
New cards
Personal computer versus embedded system task type
General task versus specific task
3
New cards
What are the three main components of a computer
Memory and Buses and Central processing unit and Internal peripherals
4
New cards
What is a logic statement
A sentence that answers a yes or no question
5
New cards
What numerical values represent the boolean states FALSE and TRUE
0 and 1 respectively
6
New cards
What is the formula for the number of possible combinations in a sequence
M to the power of N where M is states per digit and N is sequence length
7
New cards
How many bits are in a byte
8 consecutive bits
8
New cards
What is a word in computer architecture
The default number of bits manipulated by a microcontroller CPU
9
New cards
What is the zeroth bit also referred to as
The least significant bit or LSb
10
New cards
How do you calculate the value of an unsigned binary sequence
The sum of d sub n times 2 to the power of n
11
New cards
What is a shortfall of the sign magnitude representation
It has a duplicate representation for positive and negative zero
12
New cards
Why is twos complement widely used for signed integers

It removes the duplicate zero and lends can perform subtractions using the same adder

13
New cards
What are the two steps to convert a positive binary number to a negative twos complement number
Invert each digit and add one ignoring overflow
14
New cards
How many bits are represented by a single hexadecimal digit
Exactly four bits
15
New cards
What is half a byte called
A nibble
16
New cards
What are the three components of a 32 bit floating point binary number
Sign bit and Exponent and Fractional part
17
New cards
How many bits are used in standard ASCII character encoding
7 bits
18
New cards
What type of logic circuit gives a system memory because output depends on previous states
Sequential logic
19
New cards
What is the simplest form of sequential circuit
The SR latch
20
New cards
What is an array of flip flops called
A register
21
New cards
What does the asterisk character do to a pointer in C
It gives the value pointed to by the address
22
New cards
What does the ampersand character do to a variable in C
It gives the memory address of the variable
23
New cards
What defines Von Neumann architecture
Programme memory and data memory are stored in the same physical memory space
24
New cards
What defines Harvard architecture
Programme memory and data memory are stored in separate memory spaces
25
New cards
What does the data bus do
Transports actual data between the CPU and memory and is bidirectional
26
New cards
What are the three fundamental logical functions
NOT and AND and OR
27
New cards
What does De Morgans Law state about the inverse of A AND B
It is equal to NOT A OR NOT B
28
New cards
What does De Morgans Law state about the inverse of A OR B
It is equal to NOT A AND NOT B
29
New cards
How must adjacent cells in a Karnaugh map differ
By a single variable
30
New cards
What is a minterm
A term written solely as ANDs of all inputs or their inverses where all inputs appear exactly once
31
New cards
What is the standard order of operations for boolean logic
NOT then AND then OR
32
New cards
What is the function of the Arithmetic Logic Unit
It performs arithmetic and comparisons and logic operations
33
New cards
Why are general purpose registers physically close to the ALU
To enable fast access and performance
34
New cards
What does the control and execute unit do
It controls data flow to the ALU and interprets instructions from program memory
35
New cards
What does the Zero flag indicate in the status register
A zero result in an arithmetic or logic operation
36
New cards
What does the Program Counter store
The address of the next instruction in the program memory
37
New cards
What are the outputs of a half adder
Sum and Carry
38
New cards
How is a full adder different from a half adder
It can accept an incoming carry bit
39
New cards
What does an n bit decoder produce
Exactly one HIGH output among 2 to the power n outputs
40
New cards
What does the input of a decoder represent
A binary number selecting one output
41
New cards
What is meant by one hot decoder output
Exactly one output is HIGH at a time
42
New cards
How does a decoder help select memory
It activates the row corresponding to the requested address
43
New cards
What output is HIGH in a 2 bit decoder for input 00
O0
44
New cards
What output is HIGH in a 2 bit decoder for input 01
O1
45
New cards
What output is HIGH in a 2 bit decoder for input 10
O2
46
New cards
What output is HIGH in a 2 bit decoder for input 11
O3
47
New cards
What logic produces O0 in a 2 to 4 decoder
NOT A1 AND NOT A0
48
New cards
What logic produces O1 in a 2 to 4 decoder
NOT A1 AND A0
49
New cards
What logic produces O2 in a 2 to 4 decoder
A1 AND NOT A0
50
New cards
What logic produces O3 in a 2 to 4 decoder
A1 AND A0
51
New cards
What does an encoder do
It converts one active input into its binary input number
52
New cards
What assumption does a basic encoder make
Exactly one input is HIGH
53
New cards
How many outputs does an encoder with 2 to the power n inputs have
n outputs
54
New cards
What does an 8 to 3 encoder output
The 3 bit number identifying the active input
55
New cards
What forms A0 in an 8 to 3 encoder
I1 OR I3 OR I5 OR I7
56
New cards
What forms A1 in an 8 to 3 encoder
I2 OR I3 OR I6 OR I7
57
New cards
What forms A2 in an 8 to 3 encoder
I4 OR I5 OR I6 OR I7
58
New cards
What is the purpose of a multiplexer
Select one of several inputs and connect it to the output
59
New cards
How many inputs can n mux selector bits choose from
2 to the power n inputs
60
New cards
What does a 2 to 1 mux output when S is 0
I0
61
New cards
What does a 2 to 1 mux output when S is 1
I1
62
New cards
What Boolean expression describes a 2 to 1 mux
NOT S AND I0 OR S AND I1
63
New cards
What is a bus multiplexer
Parallel muxes that select between multi bit input buses
64
New cards
What does an 8 by 2 to 1 bus mux contain
Eight parallel 2 to 1 muxes sharing one selector
65
New cards
What is the purpose of a demultiplexer
Route one input to one selected output
66
New cards
What does a 1 to 2 demux do when S is 0
Routes the input to O0
67
New cards
What does a 1 to 2 demux do when S is 1
Routes the input to O1
68
New cards
What happens to unselected demux outputs
They remain LOW
69
New cards
How are muxes and demuxes opposite
A mux selects an input while a demux selects an output
70
New cards
How can an ALU support several Boolean operations
Compute them in parallel then use a mux to select one
71
New cards
What role does the mux play in an ALU
It selects which operation result becomes the output
72
New cards
Why is XOR useful for controlled inversion
XOR with 0 preserves a bit and XOR with 1 flips it
73
New cards
How does an ALU switch between addition and subtraction
XOR each B bit with Sub and also send Sub to carry in
74
New cards

What happens when Sub is 0 (not what operation but the logistics behind it)

B passes unchanged and carry in is 0
75
New cards

What operation occurs when Sub is 0

The adder computes A plus B
76
New cards
What happens when Sub is 1
Every B bit is inverted and carry in adds 1
77
New cards
What operation occurs when Sub is 1
The adder computes A minus B
78
New cards
Why is carry in set to Sub during subtraction
It supplies the plus 1 needed after inverting B
79
New cards
How are embedded systems typically integrated
As purpose built electronics inside a larger device
80
New cards
What type of CPU is commonly used in embedded systems
A microcontroller
81
New cards
What microcontroller is used in the UCFK4
ATmega32U2
82
New cards
What is a microprocessor
A CPU implemented on a single integrated circuit
83
New cards
Where does a microprocessor usually get memory and peripherals
From components located off chip
84
New cards
What is a microcontroller
A CPU with memory and peripherals integrated on one chip
85
New cards
What hardware is commonly integrated into a microcontroller
Memory and I O ports and timers and other peripherals
86
New cards
What type of processor is commonly used in desktop computers
A microprocessor
87
New cards
How do embedded systems generally compare in physical size
They are smaller than general purpose computers
88
New cards
How do embedded systems generally compare in cost
They are cheaper than general purpose computers
89
New cards
How do embedded systems generally compare in memory capacity
They usually have less memory
90
New cards
How do embedded systems generally compare in computing power
They usually have less computing power
91
New cards
How do embedded systems generally compare in power consumption
They usually consume less power
92
New cards
What are the three registers that control each I O port
DDRx PORTx and PINx
93
New cards
What does DDRx control
Whether each port pin is an input or an output
94
New cards
What does a zero bit in DDRx mean
The corresponding pin is configured as an input
95
New cards
What does a one bit in DDRx mean
The corresponding pin is configured as an output
96
New cards
What does PORTx control for an output pin
The voltage state driven on the corresponding pin
97
New cards
What does a zero bit in PORTx mean for an output pin
The pin is driven LOW
98
New cards
What does a one bit in PORTx mean for an output pin
The pin is driven HIGH
99
New cards
What does PINx provide
The current logic state read from the port pins
100
New cards
How are pin numbers matched across DDRx PORTx and PINx
The same bit position refers to the same physical pin