Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add B extension (Zba, Zbb, Zbs) #29

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
Open

Commits on Oct 2, 2024

  1. B extension starts with Zba

    - Update `insn_shimm` and `insn_alu` to support unsigned words (`uwmode`). This
      is used when the result is of width XLEN but the lower 32 bits from one of the
      inputs (rs1) is zero-extended.
    - Update `isa_propagate` to match multi-letter extensions e.g. `Zba`.
    - Add Zba instructions and the beginnings of the rest of the B extension.
    KrystalDelusion committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    38d171d View commit details
    Browse the repository at this point in the history
  2. Next comes Zbb

    - Add B-type format.
    - Implement (most) Zbb instructions.
    - Add `insnt_count` and `insn_ext` for bit count and extension instructions.
    - Be unconvinced that the count checks will work as intended.
    - Be confused about `orc_b` and `rev8` instructions and leave them commented out for now.
    KrystalDelusion committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    9c356b4 View commit details
    Browse the repository at this point in the history
  3. Zbs

    - Add bitwise variation on R-type instruction format.
    - Add `insn_bit` function for bitwise functions in Zbs extension.
    - Add Zbs instructions.
    KrystalDelusion committed Oct 2, 2024
    Configuration menu
    Copy the full SHA
    85096dc View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2024

  1. Configuration menu
    Copy the full SHA
    beef78c View commit details
    Browse the repository at this point in the history
  2. WIP b extension for NERV

    Everything but `clz` `ctz` and `cpop` should work.
    KrystalDelusion committed Oct 3, 2024
    Configuration menu
    Copy the full SHA
    06e3608 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    3b2b119 View commit details
    Browse the repository at this point in the history

Commits on Oct 9, 2024

  1. Fix ctz and clz

    KrystalDelusion committed Oct 9, 2024
    Configuration menu
    Copy the full SHA
    84c3acc View commit details
    Browse the repository at this point in the history

Commits on Oct 11, 2024

  1. Configuration menu
    Copy the full SHA
    845d3bb View commit details
    Browse the repository at this point in the history
  2. Add extra Zbb instructions

    CLZ, CTZ, CPOP, ORC.B, and REV8.
    KrystalDelusion committed Oct 11, 2024
    Configuration menu
    Copy the full SHA
    bc815ca View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c00c768 View commit details
    Browse the repository at this point in the history

Commits on Oct 13, 2024

  1. Disable csr spec tests

    Having the csr_spec option enables CSR testing, including the misa CSR which uses the define `RISCV_FORMAL_CSR_MISA`.  If the CSR_MISA flag is defined then instructions from extensions will check the misa CSR includes the bit flag for the instruction.  We don't want that, since NERV misa is all zeros.
    KrystalDelusion committed Oct 13, 2024
    Configuration menu
    Copy the full SHA
    fb3b7a8 View commit details
    Browse the repository at this point in the history