Save this video free

CSCE 611 Fall 2026 Lecture 9: RISC-V Microarchitecture 2

Jason D. Bakos · 1:17:36 · 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 explains how to build the lab 3 RISC-V CPU in SystemVerilog, connecting instruction and register memories, a 4-bit-opcode ALU, instruction decoding, and a three-stage pipeline. He works through control-signal choices for the 22 supported instructions, then outlines simulation tests and a fixed-point multiply-high method for converting switch inputs to decimal without divide or modulo instructions.

Key takeaways

Chapters

0:00 RAM Depth, Width, and Read Timing for the CPU
4:39 FPGA RAM Mapping and the ALU Opcode Table
8:54 RISC-V Instruction Fields and Immediate Data Paths
15:00 SystemVerilog Instruction ROM and Word-Addressed PC
19:00 Why the Lab CPU Uses a Three-Stage Pipeline
23:00 Fetch/Decode Wiring and Pipeline Registers
29:00 Readable Instruction-Field Names and Microcode
31:30 Exporting RARS Machine Code to the Instruction ROM
37:00 Register Writeback Mux and Delayed Control Signals
43:00 ALU Operand Selection and Persistent GPIO Output
44:30 Control-Unit Inputs and R-Type Instruction Examples
52:00 Immediate Operations, LUI, and CSRRW Control Choices
1:02:30 Instruction Tests and Direct Register-File Inspection
1:08:30 Binary-to-Decimal Conversion with Fixed-Point Multiply-High
1:15:00 Waveform Debugging Tips for ModelSim and SystemVerilog

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

Transcript excerpt

0:00 So today hopefully we'll finish the uh all the background material for lab [snorts] three. I understand I I think uh Alex gave a a a supplementary lecture in the lab last week. So hopefully you guys are been able to get started. So last time I covered RAMs and the reason for this is because you're going to use an instruction RAM for your to store your code on your risk CPU and there'll be another type of RAM that'll serve as your register file. So you have to understand the um basics for how to build RAMs. [clears throat] Um so so as I mentioned RAMs have a depth and a width. The depth is the number of

0:48 individual entries inside the RAM. Uh the typically the the number of of bits in the address will be the log base 2 of the depth. Right? So if the depth is 1024 there'll be 10 address bits. Right? Likewise with the register file, the depth is 32. So there's five address bits. And then the width is the number of bits that you can read or write in one cycle per port on the RAM. Uh now uh normally you think of RAMs as being eight bits wide meaning that one memory address points to a a bite for instance right there's there's there's a

1:37 separate address per bite. Uh and then if you if you access multibte words then the address would have to be evenly divisible by the uh the number of bytes per word. Right? So if it's a 32-bit word you're accessing then the address will be a multiple of four because there's four bytes in 32 bits. Right? But when you're building a RAM inside your architecture on on your your chip, uh you can make them any

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.