Skip to content

Commit

Permalink
Merged PR 117208: added doe cbc nist test vectors
Browse files Browse the repository at this point in the history
added doe cbc nist test vectors

Related work items: #518832
  • Loading branch information
mojtaba-bisheh authored and Anjana Parthasarathy committed Jul 26, 2023
1 parent 65d9934 commit 2928566
Show file tree
Hide file tree
Showing 7 changed files with 764 additions and 0 deletions.
15 changes: 15 additions & 0 deletions etc/pipelines/github-nightly-directed-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,21 @@ stages:
- path: '${WORKSPACE}/Caliptra/src/sha256/stimulus/testsuites/sha256_nightly_directed_regression.yml'
- timeout: 60

- doe_core_cbc_tb:
- display_name: 'DOE_CORE_CBC_TB'
- enabled: true
- configspec_name: 'integration_lib'
- dut: 'doe_core_cbc_tb'
- args: '+COVERAGE +CM_HIER=${WORKSPACE}/Caliptra/src/doe/coverage/config/doe_cm_hier.cfg --submit-resource-args RAM/28000'
- testsuites:
- nightly_directed:
- enabled: true
- configspec_name: 'integration_lib'
- dut: 'doe_core_cbc_tb'
- sim_args: '+COVERAGE ${{ variables.coverage_root_args }}'
- path: '${WORKSPACE}/Caliptra/src/doe/stimulus/testsuites/doe_nightly_directed_regression.yml'
- timeout: 60

- soc_ifc_tb:
- display_name: 'SOC_IFC_TB'
- enabled: true
Expand Down
12 changes: 12 additions & 0 deletions src/doe/config/compile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,18 @@ targets:
files:
- $COMPILE_ROOT/tb/doe_cbc_tb.sv
tops: [doe_cbc_tb]
---
provides: [doe_core_cbc_tb]
schema_version: 2.4.0
requires:
- doe_ctrl
targets:
tb:
directories:
- $COMPILE_ROOT/tb
files:
- $COMPILE_ROOT/tb/doe_core_cbc_tb.sv
tops: [doe_core_cbc_tb]
global:
tool:
vcs:
Expand Down
38 changes: 38 additions & 0 deletions src/doe/config/doe_core_cbc_tb.vf
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
+incdir+${CALIPTRA_ROOT}/src/integration/rtl
+incdir+${CALIPTRA_ROOT}/src/libs/rtl
+incdir+${CALIPTRA_ROOT}/src/keyvault/rtl
+incdir+${CALIPTRA_ROOT}/src/doe/rtl
+incdir+${CALIPTRA_ROOT}/src/doe/tb
${CALIPTRA_ROOT}/src/integration/rtl/config_defines.svh
${CALIPTRA_ROOT}/src/integration/rtl/caliptra_reg_defines.svh
${CALIPTRA_ROOT}/src/libs/rtl/caliptra_sva.svh
${CALIPTRA_ROOT}/src/libs/rtl/caliptra_macros.svh
${CALIPTRA_ROOT}/src/libs/rtl/caliptra_sram.sv
${CALIPTRA_ROOT}/src/libs/rtl/ahb_defines_pkg.sv
${CALIPTRA_ROOT}/src/libs/rtl/caliptra_ahb_srom.sv
${CALIPTRA_ROOT}/src/libs/rtl/apb_slv_sif.sv
${CALIPTRA_ROOT}/src/libs/rtl/ahb_slv_sif.sv
${CALIPTRA_ROOT}/src/libs/rtl/caliptra_icg.sv
${CALIPTRA_ROOT}/src/libs/rtl/clk_gate.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_defines_pkg.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_macros.svh
${CALIPTRA_ROOT}/src/doe/rtl/doe_defines_pkg.sv
${CALIPTRA_ROOT}/src/doe/tb/doe_core_cbc_tb.sv
${CALIPTRA_ROOT}/src/libs/rtl/ahb_to_reg_adapter.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_reg_pkg.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_reg.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_fsm.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_read_client.sv
${CALIPTRA_ROOT}/src/keyvault/rtl/kv_write_client.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_reg_pkg.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_ctrl.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_decipher_block.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_encipher_block.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_inv_sbox.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_key_mem.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_sbox.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_cbc.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_core_cbc.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_reg.sv
${CALIPTRA_ROOT}/src/doe/rtl/doe_fsm.sv
3 changes: 3 additions & 0 deletions src/doe/coverage/config/doe_cm_hier.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
begin line+tgl+fsm+cond+branch
+tree doe_core_cbc_tb.dut 0
end
17 changes: 17 additions & 0 deletions src/doe/stimulus/tests/directed/doe_cbc_nist_test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
testname: doe_cbc_nist_test
seed: 1
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
document:
schema: 1.0

contents:
- tests:
tags: ["L0", "directed", "nightly", "DOE"]
paths:
- ${CALIPTRA_ROOT}/src/doe/stimulus/tests/directed/doe_cbc_nist_test.yml
Loading

0 comments on commit 2928566

Please sign in to comment.