-
Notifications
You must be signed in to change notification settings - Fork 84
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
Compliance Tests: Scalar Instructions #27
Labels
architectural-tests
Anything relating to the riscv-arch-test suite for the crypto extension.
help wanted
Extra attention is needed
Comments
ben-marshall
added a commit
that referenced
this issue
Oct 8, 2020
- Simple C program which feeds random inputs into each instruction and records the result. - Can be used later to check different simulators work correctly, and to generate compliance tests. On branch dev/next-release Your branch is ahead of 'origin/dev/next-release' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: Makefile modified: benchmarks/Makefile modified: benchmarks/common.mk new file: benchmarks/kat-gen/Makefile.in new file: benchmarks/kat-gen/README.md new file: benchmarks/kat-gen/kat-gen.c modified: benchmarks/share/riscv-crypto-intrinsics.h Changes not staged for commit: modified: extern/riscv-gnu-toolchain (modified content) modified: extern/riscv-isa-sim (modified content)
ben-marshall
added a commit
that referenced
this issue
Oct 15, 2020
- Documented a work flow for the compliance tests in tests/compliance/README.md - A single (not very good) test for sha2sum0 is there as an example. - Passes on Spike and SAIL (for what it's worth right now). - Next steps are to generate the tests from the kat generator. On branch dev/next-release Your branch is up-to-date with 'origin/dev/next-release'. Changes to be committed: modified: .gitmodules modified: bin/conf.sh new file: extern/riscv-compliance new file: tests/compliance/Makefile new file: tests/compliance/README.md new file: tests/compliance/riscv-compliance.patch Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
ben-marshall
added a commit
that referenced
this issue
Oct 15, 2020
- Includes fix to RV32 SAIL model for sha512 instructions. - Shortcomings: - No coverage numbers (yet). Need help from Imperas? - Same source/dest registers used every time. This can be fixed easily though. - Generated tests for all RV32 and RV64 scalar ISA instructions. - KAT values use Spike as the golden reference. - SAIL CSIM and OCAML simulators agree with spike. - Update the riscv-compliance patch with reference output values. On branch dev/next-release Your branch is ahead of 'origin/dev/next-release' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: sail/riscv_insts_crypto_rv32.sail modified: tests/compliance/Makefile modified: tests/compliance/README.md new file: tests/compliance/generate_tests.py modified: tests/compliance/riscv-compliance.patch new file: tests/compliance/test_template.S Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content, untracked content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
ben-marshall
added a commit
that referenced
this issue
Oct 15, 2020
On branch dev/next-release Your branch is ahead of 'origin/dev/next-release' by 2 commits. (use "git push" to publish your local commits) Changes to be committed: modified: tests/compliance/README.md Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content, untracked content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
ben-marshall
added a commit
that referenced
this issue
Oct 15, 2020
On branch dev/next-release Your branch is ahead of 'origin/dev/next-release' by 3 commits. (use "git push" to publish your local commits) Changes to be committed: modified: tests/compliance/README.md Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content, untracked content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
There are now very basic compliance tests in the patch for riscv-compliance on the riscv-crypto master branch. They suffer from the following shortcomings:
|
ben-marshall
added a commit
that referenced
this issue
Oct 16, 2020
On branch dev/next-release Your branch is up-to-date with 'origin/dev/next-release'. Changes to be committed: modified: README.md modified: tests/compliance/README.md new file: tests/compliance/test-plan-scalar.adoc Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
ben-marshall
added a commit
that referenced
this issue
Oct 16, 2020
On branch dev/next-release Your branch is up-to-date with 'origin/dev/next-release'. Changes to be committed: modified: tests/compliance/test-plan-scalar.adoc Changes not staged for commit: modified: extern/riscv-compliance (modified content) modified: extern/riscv-gnu-toolchain (modified content) modified: extern/riscv-isa-sim (modified content) modified: extern/sail-riscv (modified content, untracked content)
ben-marshall
added a commit
that referenced
this issue
Oct 21, 2020
- See #27 On branch dev/next-release Your branch is ahead of 'origin/dev/next-release' by 1 commit. (use "git push" to publish your local commits) Changes to be committed: modified: test-plan-scalar.adoc Changes not staged for commit: modified: ../../extern/riscv-compliance (modified content) modified: ../../extern/riscv-gnu-toolchain (modified content) modified: ../../extern/riscv-isa-sim (modified content) modified: ../../extern/sail-riscv (modified content, untracked content)
RISC-V Scalar Cryptography Extensions
automation
moved this from Engineering Deliverables
to Finished Tasks
Aug 6, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
architectural-tests
Anything relating to the riscv-arch-test suite for the crypto extension.
help wanted
Extra attention is needed
Create riscv-compliance tests for the cryptography extension or explain why we can't in some cases.
The text was updated successfully, but these errors were encountered: