Week 1
This week I completed the first Processor Design onboarding lab. I set up Git and Verilator, created a small SystemVerilog module and testbench, and practiced the branch and pull request workflow.
One difficulty I encountered was getting familiar with the Git workflow, especially understanding the difference between my fork, a branch, and the upstream repository. I learned that changes in my branch do not appear in the official repository until the pull request is merged.
Week 2
This week I completed the second Processor Design onboarding lab. I built an ALU, a counter, and a sequence detector in SystemVerilog. I learned how to use always_comb for combinational logic, always_ff for sequential logic, and states to build an FSM.
The main difficulty I had was developing Moore and Mealy FSMs. In a Moore FSM, the output depends only on the current state, while in a Mealy FSM, it depends on both the current state and input. I realize that, for the sequence detector, a separate detection state is necessay to implement the required Moore FSM.
Week 3
This week I worked on Lab 3, which was about SystemVerilog verification and FIFO design. A lot of the material was new to me, so I spent a lot of time understanding the logic before I could write and test the code.
One of the biggest difficulties for me was understanding how the clock works in the testbench. At first, I was confused about when to change the inputs and when to check the outputs. I learned to change inputs around the negative edge of the clock, wait for the positive edge, and then check the result. Going through the tests one by one helped me understand this better.
The FIFO was also challenging because I had to understand the read and write pointers, the count, and the full and empty conditions. I tested different cases such as writing and reading data, filling and emptying the FIFO, pointer wraparound, and reading and writing at the same time.
Overall, this lab took me more time because many of these concepts were new to me, but working through the tests helped me understand the clock, testbenches, and FIFO logic better.
Week 4
This week, I reviewed the materials under the MICRO-ARCHITECTURE section, including module abstractions, RV32I specifications and implementation details, instruction documentation, and schema/control signal references.
Through this review, I gained a better understanding of the overall processor organization and how different hardware modules interact with each other. I learned how instruction decoding and control signals connect the datapath components and how the processor design is divided into smaller modules with specific responsibilities.
This review helped me build a clearer picture of the design flow and the role of each module before moving forward with implementation and integration. Understanding the relationship between the instruction set, control logic, and datapath will help me better approach future processor design tasks.
Week 5
This week I worked on the instruction immediate module. I worked with a groupmate, and we divided the work between us to make the implementation process more organized. I understand the instr-imm module and learn how it works in the processor.
One thing I learned was the purpose of the instr-imm module and how it extracts and processes immediate values from instructions. I also learned about the different operations related to instruction immediates and how they are used by different instructions in the processor. This helped me better understand how immediate values are handled and how they connect to the overall datapath.
One difficulty I encountered was understanding how different instruction types use immediate values in different ways. Working through the module and discussing the tasks with my groupmate helped me understand the logic better.
Week 6
This week I finished writing the testbench for the instr-imm module. I worked on completing the test cases and checking that the module behaved as expected. Finishing the testbench helped me better understand how to verify the functionality of the module and make sure it worked correctly.
Besides working on the testbench, I also reviewed the notes in Google Drive to study the course materials. I went over the related concepts to strengthen my understanding of the processor design and prepare for the upcoming work.
One challenge I encountered was making sure I understood the testbench logic and how to check the outputs for different inputs. Reviewing the notes and working through the testbench helped me become more familiar with the concepts and improve my understanding.
Week 7
This week I worked on integrating the instr-imm module with the implementation completed by my groupmate. We combined our work and checked the testbench together to make sure the module and the verification code worked correctly. After integrating everything and checking the results, we successfully finished the instr-imm module.
Week 8
This week I spent time studying the basic concepts of microcontrollers and embedded systems. I reviewed what a microcontroller is, what an embedded system does, and what peripherals mean when referring to microcontrollers. I also studied the minimum hardware peripherals needed for a microcontroller to communicate with different input and output devices, such as sensors and actuators.
I also reviewed notes from my Introduction to Embedded Systems class to study communication protocols such as I2C, UART, and SPI. This helped me understand how microcontrollers communicate with different peripherals and external devices, and how these protocols are used for different types of data transfer.
One thing I learned was that each communication protocol works differently and is useful in different situations. Reviewing the notes helped me better understand the basic ideas behind I2C, UART, and SPI and gave me a stronger foundation for the upcoming microcontroller work.
Week 9
This week I was not able to attend the meeting, so I looked over the shared document to review the available peripheral modules and their descriptions. I read through the different options and stated my interest in working on the I2C module in SystemVerilog.
I chose I2C as my first interest and GPIO as seocnd, because I found the protocol interesting, especially how it uses SDA for data and SCL for the clock and allows multiple external devices to communicate on the same bus using device addresses. I wanted to learn more about how this communication protocol works and how it can be implemented as part of the microcontroller.
Week 10
This week I was assigned to the I2C group, so I started learning more about how the I2C communication protocol works. I reviewed the basic structure of I2C, including the SDA and SCL lines, device addresses, and how data is transferred between the controller and connected devices.
I also looked at a simple implementation of I2C to understand how the protocol could be designed in SystemVerilog. I learned about the basic sequence of starting communication, sending an address, transferring data, and ending the communication.
One thing I found challenging was understanding the timing between the data and clock signals. Reviewing the basic implementation helped me understand the overall flow of I2C and gave me a better idea of how our group could begin implementing the module.