Learning the RISC-V Architecture Through Debugging - Part 3

It explains the core concepts and practical tips of RISC-V, the latest open-source-based CPU architecture, in an easy and detailed manner.

(4.3) 3 reviews

65 learners

Level Basic

Course period Unlimited

cpu
cpu
cpu-architecture
cpu-architecture
riscv
riscv
cpu
cpu
cpu-architecture
cpu-architecture
riscv
riscv

What you will gain after the course

  • I can answer and explain questions related to RISC-V well in technical interviews.

  • You can learn the operating principles of virtual memory systems, memory barriers, and caches, which are the core functions of RISC-V.

  • You can see how the RISC-V architecture is utilized in operating system kernels such as the Linux kernel.

  • I can analyze the startup code of bootloaders or the Linux kernel running on a RISC-V basis.

Announcement 🎯

To celebrate the launch of the first RISC-V course in Korea, we are issuing 30% discount coupons (first 100 people).

Coupon Link: https://inf.run/rGFpZ

In the latest system software industry,
the emerging RISC-V architectuređang nổi lên

Recently, the RISC-V architecture, an open-source-based CPU architecture, has been emerging. You can immediately see content like the following in IT-related media articles or news:

  • Big tech companies such as nVidia, Intel, and Qualcomm are developing RISC-V-based products (chipsets).

  • The number of startups in Korea designing various chips using RISC-V is increasing, and the proportion of developing products based on RISC-V devices is rising.

  • When designing AI semiconductors, the RISC-V-based CPU architecture is widely utilized.

  • It is expected that 15 billion RISC-V-based devices will be released by 2026.

  • Graduate schools (processor design) are conducting various research projects using toolkits capable of designing RISC-V CPUs.

Embedded and system software companies are increasingly utilizing the RISC-V CPU architecture to develop their products. As a result, job seekers now need to prepare for RISC-V even during technical interviews.

Background of creating this course

From a beginner's perspective, the RISC-V architecture is difficult to learn. The reasons are as follows:

  • I don't know what is important among the vast amount of content that makes up RISC-V.

  • I don't know which features among the contents that make up RISC-V are actually utilized in real-world projects.

  • No matter how hard you read the RISC-V specification documents, it is difficult to understand them immediately.


  • It is difficult to understand what the terms used to explain RISC-V actually mean.


This course is the third lecture in the RISC-V Architecture series learned through debugging. It covers content designed to help you go beyond the beginner level and become a system software developer capable of earning a high salary—explaining memory systems (virtual memory, memory barriers, cache) and Hypervisor Extension features.

A lecture by a RISC-V expert proven through global practical experience

1. Linux Plumbers Conference Presentation: Debugging RISC-V Kernel Crashes (December 2025)

(Source: https://www.youtube.com/watch?v=LNih2OdEcYo&t=1s)

2. Book: Practical Debugging for Embedded RISC‑V (Global Packt Publishing - Scheduled for publication in November 2026)

(Source: https://www.amazon.com/Practical-Debugging-Embedded-RISC%E2%80%91V-RISCV-Based/dp/1806699354/)

Course Structure and Roadmap for Part 2 and Part 3

This lecture covers the content of Part 3, which focuses on the core features of RISC-V, out of the entire RISC-V lecture series.

The full RISC-V architecture course can be found in the roadmap - 'RISC-V Architecture for System Software Developers' course.

Key Differentiating Points of the Lecture

1. Explains the RISC-V architecture's memory system in an easy-to-understand way

To become an advanced system software developer, an understanding of the memory system is essential. The reasons are as follows:

  • To effectively debug exception issues encountered in real-world projects, it is essential to have a solid understanding of the basic concepts of virtual addresses and the MMU.

  • To optimize system performance, you must have a proper understanding of the memory system's functions.

  • To perform the bring-up of a new project successfully, you must also have a good understanding of memory-related functions.

However, it is difficult to properly understand the memory system (virtual memory system, memory barriers, caches) just by analyzing the RISC-V reference documents. This lecture explains the core concepts essential for practical work in an easy and clear manner.

2. Learning RISC-V Memory Features Through Practical Examples

In this lecture, we will explain in detail how RISC-V's memory-related functions are used through practical examples.

  • Code for setting up page tables in the Linux kernel

  • Example of preventing memory reordering using the fence instruction

  • Assembly instruction to flush the instruction cache

Along with the content of the RISC-V architecture, you can quickly and naturally acquire practical skills.

3. Various Debugging Practice Lectures

The content covered in memory systems is difficult to digest and apply directly to real-world development unless you perform hands-on debugging. In this lecture, we will conduct various practical exercises through memory dump debugging sessions (using Crash Utility and TRACE32).

  • Checking the addresses of functions and global variables (Concept of virtual addresses)

  • Hands-on practice of manually converting virtual addresses to physical addresses

  • Check Page Table Entry information (using Crash Utility and TRACE32)

4. Explaining RISC-V in comparison with Arm architecture

Many developers are already familiar with Arm-based SoCs or the Arm architecture. To facilitate understanding, this lecture explains the core concepts of RISC-V by comparing them with the Arm architecture.

  • Structure of the Virtual Memory System

  • Memory barrier methods

  • Cache control methods

As the educator is the author of a book on Arm architecture (awarded the 2024 Outstanding Academic Book by the National Academy of Sciences, Republic of Korea), they are uniquely qualified to explain RISC-V by comparing it with the Arm architecture better than anyone else.

What you will learn 📕

We introduce the key memory features of the RISC-V architecture and the core functions that make up the virtual memory system. We explain them in an easy-to-understand manner along with the big picture.

We introduce the virtual memory map, which is the core of the virtual memory system. Additionally, we provide an easy-to-understand explanation of the virtual address ranges for both kernel space and user space.

We explain the satp register, which sets up the page table, and provide an easy-to-understand explanation of virtual address concepts through a memory dump debugging practice session. (The memory dump is provided in the lecture materials.)

It explains the concepts of virtual addresses and page tables, and describes the range of virtual addresses through actual case studies.

It explains the structure of multi-level page tables and provides a detailed explanation of the PTE (Page Table Entry).

We explain in detail the process of directly translating virtual addresses to physical addresses through multi-level page tables. We also conduct a debugging practice session using the Crash Utility program to convert virtual addresses into physical addresses.

While analyzing the MMU specifications of SiFive's U74 and P550 cores, we will explain the operation of the MMU in detail from a hardware design perspective.


It explains memory reordering and provides an easy-to-understand explanation of the operating principles of fence instructions that prevent memory reordering.

Explain the basic structure (form) of the fence instruction and provide a detailed explanation of how the fence instruction operates when various options are applied.

Explains how the fence instruction operates in a multi-core system environment - analyzes the principles of how synchronization with other cores occurs when the fence instruction is executed. Additionally, explains the fence instruction while analyzing example assembly instructions.

Introduces the fence.i instruction and explains the overall processing flow when the fence.i instruction is executed.

We analyze the fence.i instruction by examining various example assembly routines. We also analyze the fence.i instruction while comparing it with the Arm architecture.

It explains the basic concepts of cache and also explains why cache is used.

Explain the operating principles of caches in multi-core systems and analyze the core features of caches defined in RISC-V while comparing them with the Arm architecture.

It explains the basic elements that make up a cache and provides a detailed explanation of how addresses are processed during a cache lookup (the process of searching the cache).


Introduces the hypervisor and explains the privilege mode in which the hypervisor runs in the RISC-V architecture.

It introduces the core features of the Hypervisor Extension defined in the RISC-V architecture and explains how to enable the Hypervisor Extension.


It explains the execution flow where the Hypervisor first takes control when an exception is triggered in the Guest OS.


Based on my experience writing books and lecturing,
deeper and more detailed than anyone else!

An unprecedented author in the domestic system software field who has written books on the 'Arm Architecture (Armv8-A, Armv7-A)' and the 'Linux Kernel' (both books were selected as Excellent Academic Books by the National Academy of Sciences, Republic of Korea), and a global author who is the first in Korea to write the book "Reverse Engineering Armv8-A Systems" (in English) through an overseas publisher (Packt). Above all, he is an active developer who is most well-versed in the latest system software trends (electric vehicles, system semiconductors - system software). He is also an educator who is most actively engaged in spreading knowledge within the system software field.

  • 'Reverse Engineering Armv8-A Systems: A practical guide to Kernel, Firmware, and TrustZone analysis' Author (English), (Packt Publishing)

  • Author of 'Structure and Principles of Arm Architecture for System Software Development' (2024, National Academy of Sciences Outstanding Book Award)

  • 'Structure and Principles of the Linux Kernel Learned Through Debugging' (2021, National Academy of Sciences Excellent Scholarly Book Award) Author

  • 'Programmers Dev Course: Linux System and Kernel Expert' Main Instructor

  • June 2022, Korea Computer Congress (KCC2022) - Tutorial Presentation [Conquering the Linux Kernel Using ftrace]

  • LG Electronics 'Linux Kernel' and 'Armv8 Architecture' In-house Instructor (Including domestic and overseas developers) - (2020~2024)

Recommended for
these people

Who is this course right for?

  • A junior developer who wants to build expertise in the system software field, including system semiconductors (fabless) and the electric vehicle sector (autonomous driving, infotainment).

  • A job seeker who wants to develop system software in the fields of system semiconductors (fabless) and electric vehicles.

  • System software developers (system semiconductors, electric vehicles) who want to know how to perform practical debugging by leveraging the features of the RISC-V architecture.

  • A developer from another field looking to transition their career into the system software field.

  • An undergraduate student aiming to pursue graduate studies in the field of system software (memory, file systems, operating systems)

Need to know before starting?

  • Computer Architecture

  • C language

  • Operating System

Hello
This is austinkim

Career Verified

6,649

Learners

268

Reviews

104

Answers

4.9

Rating

23

Courses

Global Author & Linux System Software Developer (Arm, RISC-V Architecture)

An unprecedented author in the domestic system software field who wrote books on 'Arm Architecture (Armv8-A, Armv7-A)' and 'Linux Kernel' (both books were selected as Excellent Academic Books by the National Academy of Sciences, Republic of Korea), and a global author who authored the book "Reverse Engineering Armv8-A Systems" (in English) through an overseas publisher (Packt) for the first time in Korea. Above all, he is an active developer who is most well-versed in the latest system software trends (electric vehicles, system semiconductors - system software). He is also an educator who is most actively engaged in spreading knowledge within the system software field.

  • Professional Knowledge Sharer and Consultant

  • Worked at LG Electronics Linux Kernel Open Source Team (~May 2026)

  • 'Reverse Engineering Armv8-A Systems: A practical guide to Kernel, Firmware, and TrustZone analysis' Author (English), (Packt Publishing)

  • Author of 'Structure and Principles of Arm Architecture for System Software Development' (2024 National Academy of Sciences Outstanding Scholarly Book Award)

  • 'Structure and Principles of the Linux Kernel Learned Through Debugging' (2021, National Academy of Sciences Outstanding Scholarly Book Award) Author

  • 'Programmers Dev Course: Linux System and Kernel Expert' Main Instructor

     

 

I can confidently say that I am an educator who can explain the Linux kernel and Arm architecture (Armv8-A, Armv7-A) better than anyone else in Korea.

Lecture Inquiry: austindh.kim@gmail.com

 

Main Roadmap 🎯

'Arm for System Software Developers - basic course'

'Arm for System Software Developers - advanced course'

Linux kernel for system software developers - basic course

 

More

Curriculum

All

82 lectures ∙ (9hr 17min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

3 reviews

4.3

3 reviews

  • rousalome6394님의 프로필 이미지
    rousalome6394

    Reviews 4

    Average Rating 5.0

    5

    20% enrolled

    After taking this course, I passed an embedded technology interview. I'm confident that I can answer any RISC-V related questions well when asked about RISC-V. I was a bit surprised by how much I changed after taking the course. Every time I read the RISC-V specification, it felt new to me, but now I can read it smoothly. There's a lot of content that can be directly applied to projects, so I recommended it to my fellow developers as well.

    • abcd123123님의 프로필 이미지
      abcd123123

      Reviews 330

      Average Rating 5.0

      5

      61% enrolled

      • jungmopark3648님의 프로필 이미지
        jungmopark3648

        Reviews 3

        Average Rating 4.3

        3

        100% enrolled

        Overall, since it was education based on basic knowledge, there wasn't much to gain from it.

        austinkim's other courses

        Check out other courses by the instructor!

        Similar courses

        Explore other courses in the same field!