Ibrahim Hashim Design Notebook
Week 0 (Sep 15-21)
- Attended the first team meeting
- Reviewed SystemVerilog, went through my comparch notes
- Skimmed the official RV32I documentation
- I prefer to work on core because I want to gain a deeper understanding of processors, and I enjoy reasoning through datapaths, control signals, instruction execution, etc.
Note: Apologies for turning this in a day late, I thought that it was due tonight rather than last night. Noted for the future.
Week 1 (Sep 22-28)
- Attended the second team meeting
- Looked through the given textbook Notes:
- Datapaths are the components that store, move, and operate on values (registers, ALU, etc)
- Control unit decodes the instruction and tells components what to do
- Different instructions reuse much of the same hardware
- Multiplexers make hardware sharing possible
- The clock separates calculation from stored state
- Control logic can be designed systematically (with a truth table)
- One instruction per cycle does not necessarily mean a fast processor
Week 2 (Sep 29-Oct 5)
- Missed team meeting
- Read through the email
- Added an ADDI operand path detail to the Miro schematic and documented the reasoning in Module Abstractions.
- Added sign extension from the 12 bit immediate to 32 bits and an operand mux that selects the immediate for the ALU.
- Labeled the immediate, data, register address, and mux select connections with their bus widths.
- Sign extension preserves negative constants, while the mux lets ADDI reuse the ALU’s ADD operation.
Week 3 (Oct 5-12)
- Attended team meeting through zoom
- Ready to work on next stage of schematics
- Happy (short) fall break!
Week 4 (Oct 12-19)
- Attended team meeting
- Reviewed the new project repository and the Git/GitHub workflow for working with my subteam
- Reviewed the issue tracker and how module implementation and Level 1 verification are tracked separately.
- Learned that Level 1 verification involves checking compilation and using SystemVerilog testbenches to generate waveforms and check basic correctness.
- Preparing to work with my assigned sub-team on module implementation and Level 1 verification, due November 1.
Week 5 (Oct 19-26)
- Currently working on the ALU implementation and preparing for Level 1 verification.
- Researching methods, etc that I can use.
Week 6 (Oct 26-Nov 2)
- Claimed issue #1 for the ALU implementation and set up a fork and the
alu-implementationbranch in VS Code. - Completed the ALU implementation and Level 1 testbench with AI assistance. The module supports ADD, SUB, SLL, SLT, SLTU, XOR, SRL, SRA, OR, AND, and JALR address calculation, along with the zero flag.
- The implementation uses the lower five bits of the shift operand, distinguishes signed and unsigned comparisons, and clears the lowest result bit for JALR. Arithmetic results wrap to 32 bits, and undefined operation codes return zero.
- Installed Icarus Verilog and Verilator through MSYS2 and ran the project checks. The ALU passed 6,928 directed, boundary, and deterministic randomized test vectors checking both the result and zero flag. These included overflow, signed comparisons, and every shift amount.
make cipassed, including Verilator lint and Icarus simulation. A separate Verilator simulation build encountered Windows toolchain errors, so that simulation was not completed.- Submitted PR #32 for the ALU implementation and Level 1 tests, linking issues #1 and #8. Next steps are to review the implementation and testbench in detail and address feedback from the team.
Week 7 (Nov 2-9)
- My ALU implementation and Level 1 verification were approved and merged into the main project repository. Both ALU issues, #1 and #8, are now closed as completed.
- Looked into the next stages of verification. Level 2 uses SystemC testbenches with Verilator, while Level 3 uses UVM for more extensive verification.
- Next steps are to coordinate with the team on further verification work and review how the ALU connects to the control unit and branch decoder.
Week 8 (Nov 9-17)
- Continued preparing for the transition from core-module work to peripheral-module implementation.
- My next step was to select a peripheral module and coordinate with the team on implementation and testing.
Week 9 (Nov 17-24)
- Reviewed the team update announcing the transition to peripheral module groups. The November 17 meeting was canceled.
- Signed up for GPIO as my first choice and SPI as my second choice.
- Next steps are to confirm my group assignment, review the starter files and documentation when available, and plan the module implementation and Level 1 tests.