Programming in RISC-V Assembly Language Flashcards

1
Q

Whats the diffrence between “Von-newman” and “Harvard architechture”.

A

Harvard has seperate program and data memories.

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

What does “RISC” stand for?

A

“A Reduced Instruction Set Computer (RISC) is designed to perform a small
set of simple machine instructions at high speed.”

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

RISC vs CISC

A

RISC ISAs tend to be more compiler friendly and require less CPU hardware to
implement than CISC instructions, but result in somewhat longer programs.

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

What does “CISC” stand for?

A

“A Complex Instruction Set Computer (CISC) is designed to perform a large
set of compound machine instructions, each consisting of several operations.”

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

What is “assembly program language”?

A

To make it easier for humans to compose CPU-level programs, each CPU instruction is given a
unique human-readable equivalent called assembly mnemonic
*All possible assembly mnemonics together comprise the assembly language.

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

What is an “assembler”?

A

Assembler is a program that converts assembly mnemonics into equivalent machine instructions

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

What is “MMIO”?

A

The concept of computer memory was originally designed as a way of storing data
The same mechanism is also used as a way of interacting with “peripheral” devices
(keyboards, displays, network cards, etc.)

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

What is “memory mapped registers”

A

Certain memory addresses reserved for such interactions are called “memory
mapped registers”

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

What “memory address space”?

A

The range of all possible memory addresses accessible to the program is called
memory address space. For example, a processor with 32-bit wide memory
address bus has memory address space of 232 = 4294967296 distinct memory
locations from 0x00000000 to 0xFFFFFFFF

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

what is a “trap handler”?

A

(a.k.a. Interrupt service routine or ISR) is a subroutine-like sequences of CPU
instructions, whose starting address in memory is stored in a special CPU register. A trap handler is
designed to analyse the cause of the interruption and perform actions required to handle it. In many
cases the CPU returns to the execution of the interrupted program once the necessary handling is
performed. More on this is to follow in the next chapter of this course.

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