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 Zvksed extension #245

Open
wants to merge 11 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 <[email protected]>
    Signed-off-by: BrighterW <[email protected]>
    
    * 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 <[email protected]>
    Signed-off-by: Xinlai Wan <[email protected]>
    
    * Fix coding style issues
    
    * Update vset instructions
    
    Signed-off-by: BrighterW <[email protected]>
    Signed-off-by: Xinlai Wan <[email protected]>
    Co-authored-by: Nicolas Brunie <[email protected]>
    Co-authored-by: Jessica Clarke <[email protected]>
    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 <[email protected]>
    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 <[email protected]>
    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. Zvksed: Add infrastructure for Zvksed

    To support the implementation of the Zvksed extension in SAIL, this
    creates the necessary infrastructure (i.e., a file to hold it, and the
    existence macro), preparing the tree for the Zvksed implementation.
    
    Signed-off-by: Charalampos Mitrodimas <[email protected]>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    09701e1 View commit details
    Browse the repository at this point in the history
  4. Zvksed: add "vsm4k.vi" instruction

    Vector SM4 KeyExpansion, four rounds of the SM4 Key expansion
    are performed.
    
    Note: zvksed_box_lookup & zvksed_sm4_sbox are created to work with
    32bit values since sbox_lookup & sm4_sbox are used for 8bit values.
    
    The bits in uimm[4..3] are ignored. Round group numbers range from 0
    to 7 and indicate which group of four round keys are being generated.
    
    Signed-off-by: Charalampos Mitrodimas <[email protected]>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    1a8dd85 View commit details
    Browse the repository at this point in the history
  5. Zvksed: add "vsm4r.[vv,vs]" instructions

    Vector SM4 Rounds, four rounds of SM4 Encryption/Decryption are
    performed.
    
    The four words of current state are read in as a 4-element group from
    'vd' and the round keys are read in from the corresponding 4-element
    group in vs2 (vector-vector form) or the scalar element group in
    vs2 (vector-scalar form). The next four words of state are generated
    by iteratively XORing the last three words of the state with the
    corresponding round key, performing a byte-wise substitution, and then
    performing XORs between rotated versions of this value and the
    corresponding current state.
    
    Signed-off-by: Charalampos Mitrodimas <[email protected]>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    d4584ab View commit details
    Browse the repository at this point in the history
  6. Fix extension name in comments

    Signed-off-by: Charalampos Mitrodimas <[email protected]>
    Charalampos Mitrodimas committed Jul 11, 2023
    Configuration menu
    Copy the full SHA
    f4d9b88 View commit details
    Browse the repository at this point in the history