Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Week 1

I set up my dev environment and reviewed some systemverilog stuff. I also reviewed the RV32I spec.

I’d like to work on the core, but I’m happy to help out with any area of the project.

Week 2

I spent this week looking back over Patterson and Hennessy book. I mostly focused on the high-level designs and diagrams of the datapath and control unit.

I found it nice how simple the overall design is compared to some more complex digital designs I’ve worked on, where the microarchitecture can look very different from the execution model. In particular, it was useful to review how the instruction format and control signals map fairly directly onto the components of a simple single-cycle processor.

Week 3

I planned out support for B-Type conditional branches and added the block diagram to miro. The basic idea is that we use the ALU to do the comparison (using either SUB, SLT, or SLTU). We can then use the ALU outputs (zero flag + result) and the value of funct3 to decide whether to take the computed branch target, or pc + 4. To compute the branch target, we need to decode and sign-extend the B-type immediate (which i also wrote out the logic for).

Week 4

Attended the weekly VIP meeting, where we discussed the processor design. Talked about the branch decode module; implementation, how to share logic with other modules, etc.

Week 5

Attended weekly meeting and got assigned to branch decoder module. Started to plan out the module. Trying to familiarize myself with best practices for systemverilog development and verification.

Week 6

I met up with Gloria and worked on the processor. We implemented the branch decoder module and testbench.

Week 7

I addressed review on the branch decoder, and rebased to port Gloria’s testbenches to use the upstreamed helpers. It was approved and merged.

Week 8

I didn’t do any work for the VIP this week, as I am finished with the module and waiting for other work to get done. I checked up on the current status of the processor and what other members are working on.

Week 9

No updates this week. I expressed interest in the UART and I2C modules (but am happy to work on anything).

Week 10

I was assigned to the I2C peripheral module, and did some research on the protocol and spec. There are a lot of gnarly details in the spec, so I think this should be pretty fun to implement. The basic idea is that there are two open-drain (meaning the outputs can only pull the wire down to 0) lines, SCL (clock) and SDA (data), with pull-up resistors so devices only ever pull a line low or release it. Then the communication itself is done via transactions of a standard format (START condition, 7-bit address + r/w bit, data bytes followed by ACK/NACK bit, and STOP condition). I also have some basic implementation questions:

  • What bus speeds do we plan to support?
  • How do we handle the pullups? (according to google, there is a verilog primitive for that)
  • How do we actually handle the io? How do we make the implementation abstract enough for dv, but specific enough to be synthesized on the fpga we target?

Next steps: coordinate with group, settle on a (block-level) design, decide on who implements what, etc.