Inflearn brand logo image
Inflearn brand logo image
Inflearn brand logo image
Hardware

/

Embedded IoT

Learning RISC-V Architecture through Debugging - Part 1

Explains the core concepts and practical tips of RISC-V, the latest open-source-based CPU architecture, easily and in detail.

(5.0) 12 reviews

116 learners

  • austinkim
시슀템반도첎
읎론 싀습 몚두
하드웚얎
cpu
cpu-architecture
riscv

Reviews from Early Learners

What you will learn!

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

  • You can learn Register, Assembly instructions, and Privilege mode, which are core features that make up RISC-V.

  • The TRACE32 simulator program allows you to practically debug features like registers, assembly instructions, and Privilege mode.

  • Learn how RISC-V architecture is used in OS kernels like the Linux kernel.

  • Can analyze the startup code of bootloaders or Linux kernels running on RISC-V.

Notice 🎯

To celebrate the launch of Korea's first RISC-V lecture, we are issuing a 30% discount coupon (for the first 100 people).

Coupon: 17338-22e9b70d6177

In the modern systems software industry
The Emerging RISC-V Architecture

Recently, the RISC-V architecture, an open source-based CPU architecture, is on the rise. If you look at IT-related media articles or news, you can immediately see the following:

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

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

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

  • 15 billion devices are expected to be RISC-V-based by 2026.

  • In the graduate school (processor design), various studies are being conducted using a toolkit that can design RISC-V CPUs.

Embedded and system software companies are increasingly developing products using RISC-V CPU architectures, so job seekers need to prepare for RISC-V during technical interviews.

Background on creating the lecture

For beginners, the RISC-V architecture is difficult to learn. Here are some reasons why:

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

  • I don't know which functions of RISC-V are used in real projects.

  • No matter how hard you read the RISC-V specification document, it is difficult to understand it right away.


  • It is difficult to know what the term itself that describes RISC-V means.


Compared to the Arm architecture, there is not enough information on the RISC-V architecture, and there is a lack of information that specifically and easily explains RISC-V. I created this lecture to help system software developers, including new developers, overcome the difficulties they face when learning RISC-V.

Lecture structure and roadmap for parts 2 and 3

This lecture covers Part 1, the core features of RISC-V, among the entire RISC-V lecture list.

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

Key differentiating points of the lecture

1. Debugging RISC-V architecture with TRACE32 simulator program (educational use)

What is the shortcut to learning RISC-V architecture (registers, assembly instructions, privileged mode)? It is through hands-on debugging practice.

By taking this course, you can download the educational TRACE32 simulator program from 'Inflearn lecture materials' and use the TRACE32 simulator program to practice registers, assembly instructions, and privilege mode of the RISC-V architecture.

For reference, the TRACE32 debugger and related programs are widely used throughout system software development. The TRACE32 program requires a license to run.

2. Select key contents and explain them easily.

When learning RISC-V, it is common to first obtain and analyze reference documents. However, it is difficult for beginners to get a sense of which RISC-V content to learn first. This is because it is difficult to know what to learn well first. In this lecture, we will carefully select and explain the content that can be applied in practice and must be well-known. For example, we will open the log received from a RISC-V-based device and explain the registers and assembly instructions in an easy and detailed manner.

3. Explain with specific examples along with software and stack.

RISC-V is mostly learned by those who want to do well in system software development or to enter this field. In this lecture, we will explain various examples of how RISC-V is utilized in real-world projects.

  • How software runs on RISC-V systems

  • What is the boot process in a RISC-V system?

  • How to Debug and Reverse on RISC-V Systems

By taking this course, you can quickly and naturally acquire a practical feel for the content of the RISC-V architecture.

4. Explain RISC-V compared to Arm architecture

Looking at the ecosystem of the system software industry, the ecosystem of the embedded and chipset industry will be centered on the Arm architecture by 2023. Many system software developers are familiar with the Arm processor or Arm architecture. In this lecture, the core concepts of RSIC-V are explained along with the Arm architecture. The instructor is the author of a book on the Arm architecture, and he can explain RISC-V better than anyone else by comparing it to the Arm architecture.

Learn about these things 📕

We describe each step of developing a system semiconductor and introduce the development ecosystem related to the RISC-V architecture.


We will explain in detail from a practical project perspective why you need to know the RISC-V architecture well.

We will explain in detail about the registers, which are the core of the RISC-V architecture. We will also explain how the registers are utilized.

We introduce the types of registers that are the core of the RISC-V architecture and explain general-purpose registers in detail.

Describes the basic functions and types of the CSR (Control and Status) register.

Explains in detail how to read and write the CSR register.

The configuration and operation of registers are explained through practice by running the TRACE32 educational program (simulator).

Describes the basic operation of assembly instructions and describes various assembly instructions. (Example: Analysis of JAL instruction)

We explain conditional branch instructions such as BEQ and detail how they are used in real-world projects.

We will practice debugging assembly instructions using the TRACE32 simulator (educational) program. (Educators can also follow along and practice)


Explains in detail the concept of Privilege Mode and its related Privilege Level.

We analyze the specifications related to Privilege Mode and explain what software runs in each Privilege Mode.

Based on my experience writing books and giving lectures
More in-depth and detailed than anyone else!

Unparalleled in the domestic system software field ! Author of 'Arm Architecture (Armv8-A, Armv7-A)' and 'Linux Kernel' ( both books selected as excellent books by the Korean Academy of Sciences ) and global author who wrote the book "Reverse Engineering Armv8-A Systems" (English) through a foreign publisher (Packt) for the first time in Korea . Above all, he is a working developer who knows the latest system software trends (electric vehicles, system semiconductors - system software) the best. He is also an educator who is most active in knowledge dissemination in the field of system software.

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

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

  • Author of 'Learning the Structure and Principles of the Linux Kernel through Debugging' ( 2021, Korean Academy of Sciences Outstanding Book Award )

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

  • June 2022, Korea Computer Conference (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?

  • Junior developer who wants to develop capabilities in the system software field, including system semiconductors (fabless) and electric vehicle fields (autonomous driving, infotainment).

  • Aspiring system software developer for system semiconductor (fabless) and electric vehicle sectors.

  • System software developers (system semiconductors, electric vehicles) interested in practical debugging using RISC-V architecture features.

  • Developer from another field looking to transition their career to system software

  • Undergraduate student aiming to pursue graduate studies in the system software field (memory, file system, operating system)

Need to know before starting?

  • Computer Architecture

  • C language

  • Operating System

Hello
This is

5,426

Learners

148

Reviews

84

Answers

4.9

Rating

21

Courses

Ꞁ로벌 저자 & 늬눅슀 시슀템 소프튞웚얎 개발자 (Arm, RISC-V 아킀텍처)

국낎 시슀템 소프튞웚얎 분알에서 전묎후묎한! 'Arm 아킀텍처(Armv8-A, Armv7-A)'와 '늬눅슀 컀널' 책을 쓎 저자(2권의 책 몚두 대한믌국 학술원 우수도서에 선정)읎며, 국낎 최쎈로 핎왞 출판사(Packt)륌 통핎 "Reverse Engineering Armv8-A Systems" 책(영얎)을 집필한 Ꞁ로벌 저자입니닀. 묎엇볎닀 최신 시슀템 소프튞웚얎 튾렌드(전Ʞ자동찚, 시슀템 반도첎- 시슀템 소프튞웚얎)륌 가장 잘 알고 있는 현업 개발자입니닀. 또한 시슀템 소프튞웚얎 분알에서 가장 지식 전파 활동을 활발하게 하는 교육자입니닀. 

  • 'Reverse Engineering Armv8-A Systems: A practical guide to Kernel, Firmware, and TrustZone analysis' 책(영얎) 저자, (Packt 출판사)

  • '시슀템 소프튞웚얎 개발을 위한 Arm 아킀텍처의 구조와 원늬'(2024년, 대한믌국 학술원 우수도서상) 저자

  • '디버깅을 통핎 배우는 늬눅슀 컀널의 구조와 원늬' (2021년, 대한믌국 학술원 우수도서상) 저자

  • '프로귞래뚞슀 데뾌 윔슀: 늬눅슀 시슀템 및 컀널 전묞가' 메읞 강사

  • 2022년 6월, 한국컎퓚터종합학술대회 (KCC2022) - 튜토늬얌 발표 [ftrace륌 읎용핎 늬눅슀 컀널 정복하Ʞ]

  • LG전자 '늬눅슀 컀널' 및 'Armv8 아킀텍처' 사낎 강사(국낎 및 핎왞 개발자 포핚) - (2020년~현재)

국낎에서 얎느 누구볎닀 늬눅슀 컀널곌 Arm 아킀텍처(Armv8-A, Armv7-A)륌 잘 섀명할 수 있는 교육자띌고 자신있게 말씀드늎 수 있습니닀.

강의묞의 : austindh.kim@gmail.com

죌요 로드맵 🎯

'시슀템 소프튞웚얎 개발자륌 위한 Arm - basic course'

'시슀템 소프튞웚얎 개발자륌 위한 Arm - advanced course'

시슀템 소프튞웚얎 개발자륌 위한 Linux kernel - basic course

Curriculum

All

94 lectures ∙ (12hr 2min)

Course Materials:

Lecture resources
Published: 
Last updated: 

Reviews

All

12 reviews

5.0

12 reviews

  • rousalome6394님의 프로필 읎믞지
    rousalome6394

    Reviews 4

    ∙

    Average Rating 5.0

    5

    59% enrolled

    最近RISC-Vが浮かんでいお勉匷しなければならないずいう考えはしたしたが、ちゃんずした本も講矩もなくおどこから始めるべきか乱感しおいた車にキム・ドンヒョン様がRISC-V講矩を出しおくれたしたね RISC-Vずいう䞍慣れなアヌキテクチャに察する恐れはありたせんでしたが、すでにキム・ドンヒョン様のArm本を読んで講矩を聞いおからArmの抂念が正確に取れた経隓があったので信じおすぐ賌入したした。 講矩を聞いおみるず、RISC-VはArmずよく䌌おいたすね。もちろん完党に同じではありたせんが、Armの抂念を持っおいる人はそれほど難しくないように感じるようです。これから出おくるキム・ドンヒョン様のRISC-V講矩はすべお賌入しお聞く぀もりです。じっくりず歩いおみるず、RISC-Vアヌキテクチャでは、私が他人よりも先にあるようだずいう信念が生たれたした。残りの講矩を頑匵りたす。 い぀も良い講矩、誠にありがずうございたす。

    • austinkim
      Instructor

      良い評䟡ずフィヌドバックありがずうございたす。 RISC-Vはシステム゜フトりェア分野の未来なので、あらかじめ身に぀けおおくずキャリアに倧いに圹立぀でしょう。少しでも気になる点があれば質問を残しおください。

  • aceoftop1975님의 프로필 읎믞지
    aceoftop1975

    Reviews 94

    ∙

    Average Rating 5.0

    5

    100% enrolled

    2024/09/08/日 15:10 講矩はよく聞きたした。非垞に詳现な説明が良かった。この講矩を初めお芋る方にもわかりやすくよく説明しおいただきたした。キム・ドンヒョンのすべおの講矩を聞きながら、linuxamp;システムamp;デバッグに぀いおたくさん理解するようになりたした。良い講矩ありがずうございたす。

    • austinkim
      Instructor

      良い評䟡ずフィヌドバックありがずうございたす。 RISC-Vをあらかじめ身に぀けおおけば、キャリアに倧きな助けになるず確信しおいたす。 TRACE32プログラムでデバッグするず、RISC-Vのアセンブリ呜什を効率的に分析できたす。

  • jun7kim8005님의 프로필 읎믞지
    jun7kim8005

    Reviews 1

    ∙

    Average Rating 5.0

    5

    61% enrolled

    • sangwonlee3771님의 프로필 읎믞지
      sangwonlee3771

      Reviews 1

      ∙

      Average Rating 5.0

      5

      31% enrolled

      • jungmopark3648님의 프로필 읎믞지
        jungmopark3648

        Reviews 3

        ∙

        Average Rating 4.3

        5

        100% enrolled

        党䜓的に良い内容でした。ARMアヌキテクチャずの比范をもっず倚くしおいただけるず良いず思いたすし、繰り返し説明を枛らしおいただけるず良いず思いたす。2回皋床の繰り返し説明は理解できたすが、䜕床も繰り返されるず疲劎が蓄積したす。

        • austinkim
          Instructor

          講座評䟡ず貎重なご指摘もありがずうございたす。 党䜓講矩をモニタリングし、1.5回以䞊説明されおいる重耇内容は倧胆に線集し、Armアヌキテクチャず比范される講矩コンテンツで補匷いたしたす。 ありがずうございたす。

      $93.50

      austinkim's other courses

      Check out other courses by the instructor!

      Similar courses

      Explore other courses in the same field!