1. Nov 23, 2021
  2. Nov 22, 2021
  3. Nov 17, 2021
    • Jessica Clarke's avatar
      Revert "Initial introduction of zfinx (#75)" · af44432c
      Jessica Clarke authored
      This reverts commit c5e62ea4.
      af44432c
    • Ibrahim Abu Kharmeh's avatar
      Initial introduction of zfinx (#75) · c5e62ea4
      Ibrahim Abu Kharmeh authored
      * Adds Zfinx enable flag
      
      * Hardwire misa.{f,d} and mstats.FS to 0
      
      * Moving nan boxing functions to fdext_reg
      
      * Swaps register names for floating point instructions
      
      Adds new mapping to swap register names, and use it in all assembly clauses
      
      * Disable Floating point loads, stores and moves
      
      * Add X_or_F_s and X_or_F_d functions, and use them to access all registers for floating points
      
      Changes register accessed for floating point instructions and modify nan boxing functions for zfinx
      
      * Formatting
      
      Remove couple of misplaced whitespace, unnecessary parens
      
      * Fix inconsistent indentation in insts_dext file
      
      * Fix spacing in fdext_regs
      
      * Remove redundant comparasion with true/ false
      
      * Constistant tuples spacing and removes couple of unnecessary parens.
      
      * Consistent functions declaration & calls spacing and removes couple of unnecessary parens.
      
      * Consistent spacing and removes couple of unnecessary comparasion with true/false
      
      * Make spacing consistent
      
      * Remove checks from execution stage
      
      * Add checks to encdec stage
      c5e62ea4
  4. Nov 11, 2021
    • Ben Marshall's avatar
      scalar-crypto: aesks1i clarifications · 01720566
      Ben Marshall authored
      Trying to make the behavior of aesks1i easier to understand, and more
      obviously correspond to the specification.
      
      - Ensure that the aes_decode_rcon function only accepts valid values, plus
        add comments.
      
      - Re-name operands to aesks1i rcon -> rnum to be in line with the specification
      
      - Re-structure the Sail code for clarity based on jrtc27's suggestion.
      01720566
    • Ben Marshall's avatar
      scalar-crypto: whitespace consistency for SHA* instructions · 0a32766e
      Ben Marshall authored
      Remove weird whitespace " );" -> ");" at end of expressions to be
      consistent with the rest of the code base.
      
       On branch scalar-crypto-tidy
       Changes to be committed:
      	modified:   model/riscv_insts_zkn.sail
      0a32766e
    • Ben Marshall's avatar
      scalar-crypto: Consistent whitespace for == · 1ed8162e
      Ben Marshall authored
      Add spaces pre/post used of "==" operator to be consistent with the rest
      of the code.
      1ed8162e
  5. Nov 05, 2021
  6. Oct 26, 2021
  7. Oct 23, 2021
  8. Oct 22, 2021
    • Jessica Clarke's avatar
      Support D extension on RV32 (#108) · 9b38e33c
      Jessica Clarke authored
      * Use bool for floating point comparison result
      
      Using bits_WU (bits(32)) or bits_LU (bits(64)) makes no sense, these are
      just boolean values, and having fixed-width types is a pain for
      suporting RV32D (since RV32D would need to truncate, but RV128D would
      need to extend). Instead represent these as an actual bool to match what
      the values really are. This could be done with bits(1) but the value is
      logically a boolean (like the built-in integer comparison operators) not
      a bit vector of length one so we convert to bool and back for a cleaner
      interface.
      
      * Support compiling RV32F with flen == 64
      
      The code conflated flen and xlen; deconflating them and adding suitable
      assertions (rather than silently retiring as a no-op that doesn't bump
      instret) ensures that it can be compiled for RV32 with flen set to 64.
      Whilst here, add the extensions and truncations that would be needed for
      RV128F.
      
      Note that there are already suitable guards on the decode clauses to
      ensure these instructions are illegal on RV32.
      
      * Support compiling RV32D
      
      This copies various bits of XLEN generality from the F code.
      
      * Support RV32D loads/stores
      
      * Correctly initialise misa.D based on flen not xlen
      
      * Makefile: Enable D extension for RV32
      
      This now works so can be enabled.
      
      * test: Enable RV32D tests
      9b38e33c
  9. Oct 18, 2021
  10. Sep 09, 2021
  11. Aug 25, 2021
  12. Aug 22, 2021
  13. Aug 10, 2021
  14. Aug 03, 2021
    • Robert Norton's avatar
      Clarify the build instructions. · cf099be2
      Robert Norton authored
      Encourage use of `opam` and streamline by moving discussion of setting `SAIL_DIR` into a separate section about building using a custom Sail version.
      cf099be2
  15. Jul 29, 2021
  16. Jul 28, 2021
  17. Jul 27, 2021
  18. Jul 16, 2021
  19. Jun 29, 2021
  20. Jun 26, 2021
    • Robert Norton's avatar
      Add a Dockerfile with sail and dependencies. · 60776f92
      Robert Norton authored
      I have used this locally to build using a command like:
      
      docker run -v $PWD:/sail-riscv -w /sail-riscv <docker-image> make csim
      
      Thanks to @jameyhicks in #28 for showing how. Next step is to integrate this into github workflow somehow.
      60776f92
  21. Jun 25, 2021