Save this video free

CSCE 611 Fall 2026 Lecture 3: RISC-V ISA 2

Jason D. Bakos · 56:24 · Watch on YouTube

Part of University of South Carolina CSCE 611. See all 12 lectures and search them

These notes were made with YouTube Collector. Paste any YouTube link and get the same: a summary, chapters and a searchable transcript.

Overview

Jason D. Bakos reviews the RISC-V instruction subset for CSCE 611 labs, then develops the Q18.14 fixed-point square-root algorithm students will test in RARS before deploying it on an FPGA CPU. The lecture explains 64-bit multiplication and cross-register shifting, binary-search convergence, switch and display scaling, and practical input constraints that make tested software essential before hardware integration.

Key takeaways

Chapters

0:00 RISC-V Instruction Groups and the Lab 1 Subset
4:00 Multiply Instructions, Branches, and Jump-and-Link Pseudoinstructions
8:00 12-Bit Immediates and Constructing Constants with LUI
11:00 Fixed-Point Numbers as a Low-Cost Alternative to Floating Point
15:00 Recovering Both Halves of a 32-Bit Fixed-Point Product
23:00 Rescaling Q18.14 Products Across Two Registers
29:00 Square-Root Approximation with Binary Search
35:00 Mapping Q18.14 Values to FPGA Switches and Displays
40:00 RARS Test Vectors and Spreadsheet-Based Debugging
46:00 Handling RARS Signed Input for High Unsigned Values
52:00 Lab 1 Validation and Installing the Course RARS Build

Keep these chapters and the full searchable transcript in your own library.

Transcript excerpt

0:00 Uh so just to briefly recap uh last lecture I went through all of the uh instructions that almost all the instructions that we're going to be implementing on our CPU and that you need for lab one. Okay. Uh was there any questions about that? So we have our three register RT type instructions. Arithmetic logical shift comparison. So arithmetic is like you know add add subtract logical or your bitwise logical operations like and and or. Uh we will be using those in the lab because you're going to have to use the or instruction to do some bit manipulation for the fixed point. Uh then there's shift instructions. We'll be using those as well in lab in the

0:48 lab. Shifting is when you um change the the position of the bits uh in a register. And then comparison is comparing two values and putting a one or zero in the result uh based on the outcome of the comparison. With MIPS, you would often have to use those comparison instructions. But with risk 5, I don't think you will because risk 5 has a full set of branch branch comparisons. You guys with me? So in my there was no unsigned branch instructions. So you would have to use the unsigned comparison combined with a branch, but in risk they fixed that. So anyway, I going too getting too far in the weeds there, but uh yeah, so uh I've got those listed and I went through uh

1:36 went through the demo that just showed that that program executing. Um then we have the I type. Um there is not you can't assume that there's an I type for every R type. There's a a fairly small number of it type instructions. So, as I mentioned in class, there's no sub

This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.

In this course

Related notes

Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Jason D. Bakos.

Want the full transcript?

Save this video in YouTube Collector to get its complete searchable transcript, your own AI summaries, and a library that keeps every video you collect in one place.