General Purpose Processors Flashcards

1
Q

Instruction cycle for a GPP?

A
  1. Fetch from PC location
  2. Decode
  3. Fetch Operands to Data Path from Memory
  4. Execute
  5. Store to Memory
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What does the PC size specify?

A

It specifies the program adress space, ie. if the PC is 10bits large -> the memory can have 2^10 words (bytes)

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

What limits the clock period of a processors?

A

The operations in the instruction cycle, typically the memory access takes the longest time

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

Why is a branching a problem for pipelining? What are possible solutions?

A

(branching = if/loops) –> it is unknown what to load next in a branch

  • add delays (insert empty bubble instead of fetching next)
  • default decision (if there is a branch, is it taken or not)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is the difference between von Neumann and Harvard architectures?

A

Von-Neumann: one memory for programm and data together (one bus -> is bottleneck)
Harvard: one memory for programm and one memory for data (two busses) –> more performant

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

Advantages of Harvard architechture?

A
  • parallel fetching of data and instructions
  • optimized storage technology for each purpose
  • memory protection (program unable to change during runtime)

! this architecture is also used by the AVR

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

What is -gcc actually taking care of? (5 steps)

A
  1. Preprocessor (including headers, macros, conditional compilation)
  2. Compiler (translate human readable code into assembly for a particular processor)
  3. Assembler (translates assembly into opcodes, produces object file) - “start-up-code” required (AVR)
  4. Linker (organizes obejct files, libraries and other data and produces a relocatable file –> first addressing)
  5. takes relocatable file and information about system’s memory and produces an executable file
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Name two options to get your program onto the embedded device.

A
  • ISP (in-system programming) –> programmed while installed in a complete system (fast)
  • bootloader –> dedicated memory space where startup information is located and flashed on via serial connection (slower)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Advantages of von Neumann architecture?

A
  • program can be treated as data –> reading from disk storage and executing it
  • better memory utilization (program memory = data memory)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly