Tony’s design notebook
week 1: 9/14-9/21
work completed
- attended the online meeting
- read rhrough the integer bas e of the RV32 ISA from the provided link
- actually happened to take a class on the very same thing in grad comp arch, as the course focuses on RISC-V too
notes
areas of interest:
- out of the offered areas, im most interested in the bus / SoC work, particularly APB, AMBA, interrupt routing
- would also be open to core stuff, especially something like the CSR / trap unit
- I have verification experience, and have been working with formal verification tools in a reserarch lab for a while now - happy to jump no verification as well
- ive been meaning to learn UVM, as my experience is limited. if you think thats in scope, would love to get involved.
- i have access to a couple of FPGAs which i could use for emulation
week 2: 9/22-9/28
work completed
- read the excerpt on the architecture of a single cycle MIPS processor from Patterson and Hennessy
- compared the MIPS implementation to what I know about the RV32 ISA
notes from reading
- the control block is often the clock speed bottleneck, which is one of the central motivations for pipelining in processor design
- sacrificing some space in the instruction is often worthwhile to make the placement of signal consistent or at least similar for many instructions
- The ISA shapes the architecture - it is almost like a datapath spec
- where possible, the decoding of instructions is hierarchical in a single-cycle MIPS processor, which helps simplify the control logic a lot
week 3: 9/29-10/5
work completed
- read thorugh other members miro board contributions
- wired created modules togehter by adding a control unit and control table
- noted which names were chosen in case of collision and pointed out any observed mishaps in the reasoning section
week 4: 10/6-10/12
work completed
- no work really
- attended most of tuesdays meeting (had to leave early for another meeting)
- read through MICRO-ARCHITECTURE/“Schema credits and control signals”
- nicely done! this is a great reference doc
week 5: 10/13-10/19/26
- forked the repo to get started on my modules
- got through about half of Ray Salemi’s introduction to the UVM on verificationacademy
- started working on the control unit, but looking at the architecture noticed a couple of things, and have some questions + notes to raise:
- notes
- top could use some extra signals like
rstanddbg_pc,dbg_instr,dbg_reg_we,dbg_rd,dbg_rd_data,dbg_mem_we,dbg_mem_addr,dbg_mem_data - regfile could use a reset input too.
- is the pc reset value 0?
- a shared encodings package would be nice.
- top could use some extra signals like
- questions
- does the
assembler.pyalready exist, what .mem format does it output, and how does it encode branch/jump offsets? - what is the verification plan + sign off criteria? are we free to decide that? who wrties the reference model?
- is UVM on an NYU license server the idea or do we want to make it UVM-style and keep it open source? Id honestly lean towards the former since we have other verification already and id be pretty excited to do real UVM
- for systemC, are we all able to use 3.0.2 ?
- does the
week 6: 10/20-10/26/26
- created a number of infrastructure PRs to make verification easier
- created the tb for the control unit, drafted PR
- will help the team iterate on the design for the control unit if needed, but wanterd to get started on the reference model for further verification –> would need
assembler.py- does that exist already?
week 7: 10/27/11/02/26
- not much this week tbh, just been waiting on rest of team to create control module
- still learning uvm
- saw the assmebler is in - depending on what comes out of tmws meeting, might get started on a reference model soon?
week 8: 11/02-11/09/26
notes:
- waited to see what the next steps are
- good thing i did since a lot of my plans regarding the assembler and a reference model bacame unneccessary with the switch to a standard rv32i core - i think these kinds of descisions could maybe be announced ahead of time, seeing as some tasks in verification are more loosely defined - also direct pushes to main mostly broke CI - perhaps this could be avoided by using PRs, even if you dont expect a review to be neccessary?
- ci seems to run an old version of verilator which didnt catch the same bugs as my local installed version
- l1 tests quite thin for data_mem, load_align (that one i just added since there wasnt one), top . - doesnt matter all that much now that we are using higher level verification
work completed:
- addressed a lot of CI and infrastructure isses - see PRs #35-#42 - lint issues - port mismatches - adding riscv-tests to ci - updating control table to match signal paul added - fixed minor bugs revealed
- looked into newer verilator’s support for UVM - Good news! might not need to rotate between host and CEPool / ecs for running uvm
week 9: 11/09-11/16/26
- made a minor fix to the verilator setup in CI
- almost done with a UVM course
- set up a UVM skeleton to work with newest verilator, though it works a little better with Xcelium or VCS. all are on the nyu license servers, but again, not strcitly neccessary, and all code will be made to work on OSS
- in preparation for L3 testing setup, ran into somethign to do with Spike
- spike is the official RISC-V reference simulator, and a good candidate for the reference model for UVM
- our memory map overlaps three of SPkes built-in devices:
- debug module at 0x0
- boot ROM at 0x1000
- UART at 0x1000_0000
- all of these you can work around using SPikes settings, but its just not standard RV layout that riscv-tests and riscv-dv assume.
- but chaging the memory map to be standard woudl require a 32bit pc which doesnt seem like the right move.
- I noticed the Lint and level 1 tests workflow is disabled on upstream, which is why all recent PRs have no checks. I ran it manually and all passes with the recent fix PRs. could you please re-enable it?
- feel free to respond in a PR comment?