-
Notifications
You must be signed in to change notification settings - Fork 706
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b2a59c9
commit 366b8a4
Showing
19 changed files
with
216,194 additions
and
2,326 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# Copyright 2023 Thales DIS | ||
# | ||
# Licensed under the Solderpad Hardware Licence, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.0 | ||
# You may obtain a copy of the License at https://solderpad.org/licenses/ | ||
# | ||
# Original Author: Ayoub JALALI - Thales | ||
|
||
# where are the tools | ||
if ! [ -n "$RISCV" ]; then | ||
echo "Error: RISCV variable undefined" | ||
return | ||
fi | ||
|
||
# install the required tools | ||
source verif/regress/install-cva6.sh | ||
source verif/regress/install-riscv-dv.sh | ||
|
||
export cov=1 #enable the Code Coverage | ||
|
||
if ! [ -n "$DV_TARGET" ]; then | ||
DV_TARGET=cv32a6_embedded | ||
fi | ||
|
||
if ! [ -n "$DV_SIMULATORS" ]; then | ||
DV_SIMULATORS=vcs-uvm,spike | ||
fi | ||
|
||
cd verif/sim/ | ||
python3 cva6.py --testlist=../tests/testlist_csr_embedded.yaml --iss_yaml cva6.yaml --target $DV_TARGET -cs ../env/corev-dv/target/rv32imcb/ --mabi ilp32 --isa rv32imc --isa_extension="zba,zbb,zbc,zbs" --simulator_yaml ../env/corev-dv/simulator.yaml --iss=$DV_SIMULATORS $DV_OPTS -i 1 --iss_timeout 300 | ||
|
||
cd - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
# Copyright 2023 Thales DIS France SAS | ||
# | ||
# Licensed under the Solderpad Hardware Licence, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.0 | ||
# You may obtain a copy of the License at https://solderpad.org/licenses/ | ||
# | ||
|
||
#include "csrrst_test.S" | ||
#include "csrrw_fields_test.S" | ||
#include "csrrw_test.S" | ||
#include "csrrwi_test.S" | ||
#include "csrcs_test.S" | ||
#include "csrcsi_test.S" | ||
|
||
.globl main | ||
main: | ||
#Start CSR tests: all tests | ||
call csrrst | ||
call csrrw_fields | ||
call csrrw | ||
call csrrwi | ||
call csrcs | ||
call csrcsi | ||
|
||
#End of csr test | ||
j csr_pass | ||
|
||
csr_pass: | ||
li x1, 0 | ||
slli x1, x1, 1 | ||
addi x1, x1, 1 | ||
sw x1, tohost, x30 | ||
self_loop: j self_loop | ||
|
||
csr_fail: | ||
li x1, 1 | ||
slli x1, x1, 1 | ||
addi x1, x1, 1 | ||
sw x1, tohost, x30 | ||
self_loop_2: j self_loop_2 | ||
|
Oops, something went wrong.