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 support for the Zvkb extension #236

Open
wants to merge 15 commits into
base: vector-dev
Choose a base branch
from

Commits on Mar 22, 2023

  1. V extension general framework and configuration setting instructions (r…

    …iscv#191)
    
    * V extension general framework and configuration setting instructions
    
    * Update model/riscv_insts_vext_utils.sail
    
    fix a typo
    
    Co-authored-by: Nicolas Brunie <nibrunie@gmail.com>
    Signed-off-by: BrighterW <xinlai.w@rioslab.org>
    
    * Update model/riscv_insts_vext_vset.sail
    
    * Revisions after Nov 22 meeting
    
    * Update effect matching for functions in riscv_vlen.sail
    
    * Fix code formatting issues
    
    * Update model/riscv_insts_vext_utils.sail
    
    Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
    Signed-off-by: Xinlai Wan <xinlai.w@rioslab.org>
    
    * Fix coding style issues
    
    * Update vset instructions
    
    Signed-off-by: BrighterW <xinlai.w@rioslab.org>
    Signed-off-by: Xinlai Wan <xinlai.w@rioslab.org>
    Co-authored-by: Nicolas Brunie <nibrunie@gmail.com>
    Co-authored-by: Jessica Clarke <jrtc27@jrtc27.com>
    3 people authored and rpsene committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    32b1b8f View commit details
    Browse the repository at this point in the history
  2. Vector load / store instructions (riscv#198)

    * Add vector load / store instructions
    
    * Modify the implementation of SEW, LMUL, VLEN and avoid real numbers in the code
    
    * Update vstart setting in vector load / store instructions
    
    * Remove unnecessary assert statements in vector instructions
    
    * Fix bugs in vleff instructions and revise coding styles
    
    * Add guards for vector encdec clauses, Avoid redundant memory access after vector load/store failure
    XinlaiWan authored and rpsene committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    c673d33 View commit details
    Browse the repository at this point in the history
  3. Vector integer/fixed-point arithmetic & mask instructions (riscv#227)

    * Add vector arithmetic & mask instructions
    
    * Update vector EEW and EMUL checking function
    
    * Add vector instruction illegal check functions
    
    * Adjust code formatting for vector instruction illegal check functions
    
    Merge approved by team at tech-golden-model meeting on 2023-03-14.
    XinlaiWan authored and rpsene committed Mar 22, 2023
    Configuration menu
    Copy the full SHA
    5a0ae4f View commit details
    Browse the repository at this point in the history

Commits on May 1, 2023

  1. Vector floating-point instructions (riscv#232)

    * Add vector floating-point instructions
    
    * Update vector floating-point conversion instructions
    
    * Update copyright headers for vector extension code
    
    ---------
    
    Co-authored-by: xwan <xinlai.wan@rivai.ai>
    XinlaiWan and xwan authored May 1, 2023
    Configuration menu
    Copy the full SHA
    c5ab726 View commit details
    Browse the repository at this point in the history

Commits on Jun 12, 2023

  1. Vector reduction and mask instructions (riscv#259)

    * Add vector mask and reduction instructions
    
    * Fix register overlap check in vector mask instructions
    
    ---------
    
    Co-authored-by: xwan <xinlai.wan@rivai.ai>
    XinlaiWan and xwan authored Jun 12, 2023
    Configuration menu
    Copy the full SHA
    3a3b1c0 View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2023

  1. Configuration menu
    Copy the full SHA
    15364c0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5872908 View commit details
    Browse the repository at this point in the history
  3. Zvkb: add infrastructure for Zvkb

    To support the implementation of Zvkb extensions in SAIL, this
    creates the necessary infrastructure(i.e., a file to hold it, and the
    extension macro), preparing the tree for the Zvkb implementation.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    a9f0141 View commit details
    Browse the repository at this point in the history
  4. Zvkb: add "vrol.[vv,vx]" instruction

    Vector rotate left by vector(.vv) or scalar(.vx).
    
    The elements in vs2 are rotated left by the rotate amount
    specified by either the cotrresponding elements of vs1 (vector-vector),
    or integer register rs1 (vector-scalar). Only the low log2(SEW) bits
    of the rotate-amount value are used, all other bits are ignored
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    86d63d6 View commit details
    Browse the repository at this point in the history
  5. Zvkb: add "vror.[vv,vx,vi]" instructions

    Vector rotate right by vector/scalar/immediate.
    
    The elements in vs2 are rotated right by the rotate amount
    specified by either the corresponding elements of vs1 (vector-vector),
    integer register rs1 (vector-scalar), or an immediate value
    (vector-immediate). Only the low log2(SEW) bits of the rotate-amount
    value are used, all other bits are ignored.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    15f0c1f View commit details
    Browse the repository at this point in the history
  6. Zvkb: add "vbrev8.v" instruction

    Vector Reverse Bits in Bytes, a bit reversal is
    performed on the bits of each byte.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    f4a5aec View commit details
    Browse the repository at this point in the history
  7. Zvkb: add "vrev8.v" instrcuction

    Vector Reverse Bytes
    
    A byte reversal is performed on each element of vs2, effectively
    performing an endian swap.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d0ea7f0 View commit details
    Browse the repository at this point in the history
  8. Zvkb: add "vandn.[vv,vx]" instructions

    Bitwise And-Not.
    
    Each bit of Op1 is inverted and logically ANDed with the
    corresponding bits in vs2. In the vector- scalar version,
    "Op1" is the sign-extended or truncated value in scalar register
    rs1. In the vector-vector version, Op1 is vs1.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d40d62b View commit details
    Browse the repository at this point in the history
  9. Zvkb: add "vclmul.[vv,vx]" instructions

    Produces the low half of 128-bit carry-less product.
    
    Each 64-bit element in the vs2 vector register is carry-less
    multiplied by either each 64-bit element in vs1 (vector-vector), or
    the 64-bit value from integer register rs1 (vector-scalar). The
    result is the least significant 64 bits of the carry-less product.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    7bf0ebe View commit details
    Browse the repository at this point in the history
  10. Zvkb: add "vclmulh.[vv,vx]" instructions

    Vector Carry-less Multiply by vector or scalar - returning
    high half of product.
    
    Each 64-bit element in the vs2 vector register is carry-less
    multiplied by either each 64-bit element in vs1 (vector-vector), or
    the 64-bit value from integer register rs1 (vector-scalar). The
    result is the most significant 64 bits of the carry-less product.
    
    Signed-off-by: Charalampos Mitrodimas <charalampos.mitrodimas@vrull.eu>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    1b71422 View commit details
    Browse the repository at this point in the history