Adjusting How I Learn

1. Reconstructing execution from static knowledge

One of my biggest obstacles has been seeing an instruction and treating it only as a rule about how to write code. For example:

lui a1, 0x11111

When I encountered this instruction, AI explained the LUI rule: place the 20-bit immediate in bits 31–12 of the result and fill the lowest 12 bits with zeros. In this example, a1 receives 0x11111000.

But my instinct was to ask “why.” That question has two different layers: 1. What conventions are defined for this instruction? 2. Why were those conventions chosen?

Until now, my understanding has remained static. I have been thinking about an instruction and how to understand it, without placing it in the process of a real computer running a program.

This is an instruction: an operation the CPU must carry out.

The execution process: prepare to execute, read and identify information in the instruction, then execute and update register state.

Once I reconstruct that process, I have a concrete reason to ask:

If the CPU needs to identify the operation, destination register, and immediate, how can all that information fit into a 32-bit instruction?

This shifts me from memorizing LUI's conventions to discovering why instruction-encoding conventions are needed. A LUI instruction allocates 7 bits to the opcode, 5 bits to identify the destination register, and the remaining 20 bits to the immediate. Now I can think about how information fits into a limited number of bits.

I can also connect this approach to MMIO. The CPU needs to change a peripheral's state, which is controlled by values in its peripheral registers. Those registers belong to the peripheral, so the CPU needs a mechanism for accessing them. The actual solution uses an address map defined by the hardware designers, allowing the CPU to access peripheral registers through reads and writes similar to memory accesses.

I can understand this learning process as follows: understanding how a system performs its task helps me recognize that some rule must exist, and gradually work out what I should look up.

2. Starting from a real need and retracing the design process

I have seen many scattered facts in the slides, but they have given me little to hold on to. I do not know their concrete use cases.

For example, I know that one register can hold the operating modes of a group of pins, with individual fields determining each pin's mode. Yet when I actually needed to configure eight pins as outputs, I thought of changing them one at a time. I did not connect the task to what I had already learned.

Having a problem and a need gave me something concrete to work with. AI reminded me that, in this GPIO configuration-register example, the modes of eight pins are controlled by values within the same register. Updating the relevant fields changes the pins' operating modes. Each pin's mode field occupies 4 bits, so a 32-bit register can hold the mode fields for eight pins.

Only then did I connect “why one register can hold configuration for multiple pins” to the task in front of me.

I should actively look for the underlying problem and reconstruct how it plays out in a computer. Then I can consider possible solutions from a designer's perspective, before comparing them with the actual implementation.

A real solution often involves several components or systems interacting and cooperating. This is where I need to narrow my focus: temporarily treat other parts as black boxes and open only the few nodes most relevant to the current problem.

Starting from an engineering task: reconstruct execution, identify the underlying problem and system boundaries, then derive a solution, consult conventions, and verify experimentally.

3. Changing how I use slides

The learning loop: build a knowledge index from slides, uncover real problems in labs and assignments, use AI to identify missing rules, run a minimal test, then update the index and continue the project.

The most important part is still doing labs and assignments, and working on concrete problems.

4. Changing how I work with AI

1. First identify which kind of “why” I am asking

I have noticed that when I ask AI “why,” it often assumes I am questioning the architecture and trying to deduce its entire design rationale.

What I actually want is to understand the convention: what exactly did the designers specify? Where possible, I also want to reason about it using knowledge I already have.

So I want to emphasize this:

Do not automatically interpret my “why” as a challenge to the architecture's design. First determine whether I am missing a basic rule. If so, explain that rule first. Go deeper into implementation principles when I want to explore design tradeoffs, or when not understanding the design rationale directly blocks my current task.

2. Help me fill knowledge gaps and connect ideas to use cases

Slides are highly condensed. To me, much of their content is still a collection of isolated facts. Without use cases, those facts do not connect.

I want AI to avoid treating concepts I have not yet thought of as things I should already know. Instead, it should work with my current learning stage: identify gaps, connect ideas across materials, support my learning, and translate condensed lecture rules into criteria I can use to make decisions in real engineering problems.

Finally, another equally important point:

Make my reasoning as visible as possible. My role is to express my own ideas; AI's role is to help me identify mechanisms and constraints I have not yet recognized.

LUI encoding reference: the official RISC-V ISA specification.