text stringlengths 183 150k | path stringlengths 15 112 | bucket stringclasses 4
values | source stringclasses 14
values | group stringclasses 121
values | spdx stringclasses 11
values | repo_license stringclasses 11
values | commit stringclasses 13
values | lang stringclasses 4
values | def_heavy bool 1
class | comment_ratio float64 0 1 | restricted bool 2
classes | fresh bool 1
class | n_bytes int64 183 150k | n_tokens int64 -1 -1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_adc_ctrl_sleep_debug_cable_wakeup_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_adc_ctrl_sleep_debug_cable_wakeup_vseq)
... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_adc_ctrl_sleep_debug_cable_wakeup_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.077 | false | false | 8,454 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/rom/sigverify_keys_spx.h"
#include "sw/device/silicon_creator/lib/sigverify/spx_verify.h"
#include "sw/device/si... | opentitan/sw/device/silicon_creator/rom/sigverify_keys_spx.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.268 | false | false | 1,783 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/base/status.h"
#include "sw/device/lib/dif/dif_gp... | opentitan/sw/device/silicon_creator/rom/e2e/weak_straps/sw_straps_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.291 | false | false | 2,080 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_BASE_CP_DEVICE_ID_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_BASE_CP_DEVICE_ID_H_
#inclu... | opentitan/sw/device/silicon_creator/manuf/base/cp_device_id.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.909 | false | false | 473 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Implements functional coverage for SYSRST_CTRL
interface sysrst_ctrl_cov_if
(
input logic clk_i,
input logic rst_ni
);
import ... | opentitan/hw/ip/sysrst_ctrl/dv/cov/sysrst_ctrl_cov_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.137 | false | false | 6,660 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_IP_PRIM_DV_PRIM_RAM_SCR_CPP_SCRAMBLE_MODEL_H_
#define OPENTITAN_HW_IP_PRIM_DV_PRIM_RAM_SCR_CPP_SCRAMBLE_MODEL_H_
#include <stdi... | opentitan/hw/ip/prim/dv/prim_ram_scr/cpp/scramble_model.h | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.775 | false | false | 3,969 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
#include "sw/device/silicon_creator/lib/drivers/rstmgr.h"
#include <assert.h>
#include "hw/top/dt/api.h"
#include "hw/top/dt/rstmgr.h"
#include "... | opentitan/sw/device/silicon_creator/lib/drivers/rstmgr.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.199 | false | false | 5,881 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
module tb;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import entropy_src_env_pkg::*;
import entropy_src_test_pkg::*;
/... | opentitan/hw/ip/entropy_src/dv/tb/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.16 | false | false | 6,082 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_DEV_SPX_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAK... | opentitan/sw/device/silicon_creator/lib/ownership/keys/fake/app_dev_spx.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.778 | false | false | 618 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package push_pull_agent_pkg;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import dv_base_agent_pkg::*;
import dv_lib_pkg::*;
... | opentitan/hw/dv/sv/push_pull_agent/push_pull_agent_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.52 | false | false | 1,681 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_EXT_IMM_SECTION_IMM_SECTION_VERSION_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_EXT_IMM_SECTIO... | opentitan/sw/device/silicon_creator/rom_ext/imm_section/imm_section_version.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.706 | false | false | 2,064 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A smoke test sequence for the vectorized instructions. This loads up the fixed
// "smoke_test_vectorized.elf" binary and forces everything to be i... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_smoke_vectorized_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.462 | false | false | 678 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_PROD_ECDSA_P256_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_... | opentitan/sw/device/silicon_creator/lib/ownership/keys/fake/app_prod_ecdsa_p256.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.538 | false | false | 897 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Serial Peripheral Interface (SPI) Device Passthrough module.
//
/*
* # Passthrough
*
* The OpenTitan SPI Device has a feature for snooping th... | opentitan/hw/ip/spi_device/rtl/spi_passthrough.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.383 | false | false | 30,213 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class kmac_app_agent_cfg extends dv_base_agent_cfg;
`uvm_object_utils(kmac_app_agent_cfg)
// Handle to the agent's interface
virtual kmac_app_... | opentitan/hw/dv/sv/kmac_app_agent/kmac_app_agent_cfg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.269 | false | false | 5,392 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_MOCK_SPI_DEVICE_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_MOCK_SPI_DEVICE_H_... | opentitan/sw/device/silicon_creator/lib/drivers/mock_spi_device.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.44 | false | false | 1,133 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Single-Port SRAM Wrapper
//
// Supported configurations:
// - ECC for 32b and 64b wide memories with no write mask
// (Width == 32 or Width ==... | opentitan/hw/ip/prim/rtl/prim_ram_1p_adv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.164 | false | false | 14,304 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/crypto/include/hkdf.h"
#include "sw/device/lib/base/hardened_memory.h"
#include "sw/device/lib/base/math.h"
#include "sw/dev... | opentitan/sw/device/lib/crypto/impl/hkdf.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.293 | false | false | 13,890 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package i2c_test_pkg;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import cip_base_pkg::*;
import i2c_env_pkg::*;
// macro... | opentitan/hw/ip/i2c/dv/tests/i2c_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.471 | false | false | 483 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class otbn_common_vseq extends otbn_base_vseq;
`uvm_object_utils(otbn_common_vseq)
bit sb_setting;
constraint num_trans_c {
num_trans insid... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.243 | false | false | 14,140 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package edn_test_pkg;
// dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import edn_env_pkg::*;
// macro includes
`include "uvm_... | opentitan/hw/ip/edn/dv/tests/edn_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.32 | false | false | 759 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_RSA_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_RSA_H_
#include "datatypes.h"
/**
* @file
* ... | opentitan/sw/device/lib/crypto/include/rsa.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.811 | false | false | 32,598 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/crypto/include/sha2.h"
#include <stdbool.h>
#include "sw/device/lib/base/hardened_memory.h"
#include "sw/device/lib/crypto/... | opentitan/sw/device/lib/crypto/impl/sha2.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.233 | false | false | 7,869 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/testing/rand_testutils.h"
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/arch/device.h"
#include "sw/devi... | opentitan/sw/device/lib/testing/rand_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.269 | false | false | 3,482 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_SHA2_SHA256_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_SHA2_SHA256_H_
#include "stdint.h"
#include "... | opentitan/sw/device/lib/crypto/impl/sha2/sha256.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.813 | false | false | 4,359 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
module tb;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import keymgr_dpe_env_pkg::*;
import keymgr_dpe_test_pkg::*;
// ... | opentitan/hw/ip/keymgr_dpe/dv/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.144 | false | false | 4,182 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Trigger ErrWaitTimerExpired error by setting edn timeout to a very small value.
// This sequence will check:
// - Kmac error interrupt is set via ... | opentitan/hw/ip/kmac/dv/env/seq_lib/kmac_edn_timeout_error_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.188 | false | false | 2,608 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/crypto/drivers/alert.h"
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/... | opentitan/sw/device/lib/crypto/drivers/alert_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.565 | false | false | 892 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Wrapper around the HPC2 AND gadget (prim_hpc2 with EnW=0) for side-channel
// analysis. Exposes a 2-bit combined input interface: bit 0 carries in... | opentitan/hw/ip/otbn/pre_sca/rtl/prim_hpc2_sca_wrapper.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.143 | false | false | 1,711 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//############################################################################
// *Name: ast_pkg
// *Module Description: AST Package
//###############... | opentitan/hw/top_englishbreakfast/ip/ast/rtl/ast_pkg.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.124 | false | false | 7,117 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// set mode to FlashMode to test read buffer along with other intercept commands
class spi_device_flash_mode_vseq extends spi_device_intercept_vseq;
... | opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_flash_mode_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.194 | false | false | 1,387 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Backdoor loader with indirect programming.
`include "prim_assert.sv"
module bkdr_loader
import bkdr_loader_pkg::*;
import bkdr_loader_reg_... | opentitan/hw/ip/bkdr_loader/rtl/bkdr_loader.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.238 | false | false | 12,610 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package mem_model_pkg;
import uvm_pkg::*;
`include "uvm_macros.svh"
`include "dv_macros.svh"
`include "mem_model.sv"
endpackage
| opentitan/hw/dv/sv/mem_model/mem_model_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 310 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class i2c_virtual_sequencer extends cip_base_virtual_sequencer #(.CFG_T(i2c_env_cfg),
... | opentitan/hw/ip/i2c/dv/env/i2c_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 482 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <stdint.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/dif/dif_lc_ctrl.h"
#include "sw/device/lib/runtime/log.h"
#includ... | opentitan/sw/device/silicon_creator/manuf/tests/nvm_device_info_nvm_wr_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | false | false | 2,091 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/tests/crypto/cryptotest/firmware/mldsa.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/crypto/impl/mldsa/mldsa... | opentitan/sw/device/tests/crypto/cryptotest/firmware/mldsa.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.084 | false | false | 6,862 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_DV_DPI_DMIDPI_DMIDPI_H_
#define OPENTITAN_HW_DV_DPI_DMIDPI_DMIDPI_H_
#include <svdpi.h>
#ifdef __cplusplus
extern "C" {
#endif... | opentitan/hw/dv/dpi/dmidpi/dmidpi.h | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.778 | false | false | 1,529 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Base vseq class for creating i2c block-level stimulus
// This class contains common helper code and routines for both DUT-Target and DUT-Controlle... | opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_base_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.282 | false | false | 58,385 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// AES cipher core control FSM
//
// This module contains the AES cipher core control FSM.
`include "prim_assert.sv"
module aes_cipher_control_fs... | opentitan/hw/ip/aes/rtl/aes_cipher_control_fsm.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.262 | false | false | 20,990 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Implementation of the following two HCI-specified tables:
//
// - Device Address Table (HCI 8.1).
// - Device Characteristics Table (HCI 8.2).
//
... | opentitan/hw/ip/i3c/rtl/i3c_dxt.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 3,528 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Component handling register CDC
`include "prim_assert.sv"
// There are three handling scenarios.
// 1. The register can only be updated by sof... | opentitan/hw/ip/prim/rtl/prim_reg_cdc_arb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.438 | false | false | 11,521 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/examples/demos.h"
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/dif/dif_gpio.h"
#include "sw/device/lib/dif/dif_... | opentitan/sw/device/examples/hello_world/hello_world.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.244 | false | false | 3,485 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Randomly set dut.ram_cfg_sys2spi_i / dut.ram_cfg_spi2sys_i and check this value is
// propagated to the backing prim memory (cfg_i).
class spi_dev... | opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_ram_cfg_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.194 | false | false | 1,624 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package aon_timer_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import tl_... | opentitan/hw/ip/aon_timer/dv/env/aon_timer_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 1,651 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package rram_ctrl_env_pkg;
// Dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import tl_agent_pkg::*;
import d... | opentitan/hw/ip/rram_ctrl/dv/env/rram_ctrl_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.206 | false | false | 1,953 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package aes_test_pkg;
// dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import aes_env_pkg::*;
// macro includes
`include "uvm_... | opentitan/hw/ip/aes/dv/tests/aes_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.267 | false | false | 932 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_CMVP_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_CMVP_H_
#include "datatypes.h"
/**
* @file
... | opentitan/sw/device/lib/crypto/include/cmvp.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.871 | false | false | 1,239 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This vseq generates normal DUT-Controller transactions using the base class routines
// (from the rx_tx_vseq), except we substitute in an agent se... | opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_host_may_nack_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.263 | false | false | 1,764 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <assert.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/memory.h"
#include "sw... | opentitan/sw/device/tests/pmod/i2c_host_power_monitor_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.216 | false | false | 6,092 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_spi_host.h"
#include <assert.h>
#include <stdalign.h>
#include <stddef.h>
#include "sw/device/lib/base/bitfield.h"
... | opentitan/sw/device/lib/dif/dif_spi_host.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.088 | false | false | 20,041 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// AES counter FSM for CTR mode
//
// This module contains the AES counter FSM operating on and producing the positive values of
// important contr... | opentitan/hw/ip/aes/rtl/aes_ctr_fsm_p.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.193 | false | false | 3,343 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_MOCK_HMAC_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_MOCK_HMAC_H_
#include "... | opentitan/sw/device/silicon_creator/lib/drivers/mock_hmac.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.387 | false | false | 1,403 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
module sha3_fpv
import sha3_pkg::*;
#(
// Enable Masked Keccak if 1
parameter bit EnMasking = 0,
localparam int Share = (EnMasking) ? 2 : ... | opentitan/hw/ip/kmac/fpv/tb/sha3_fpv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.275 | false | false | 1,700 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
module tb;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import rstmgr_env_pkg::*;
import rstmgr_test_pkg::*;
// macro in... | opentitan/hw/top_darjeeling/ip_autogen/rstmgr/dv/tb.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.119 | false | false | 3,539 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/hardened_memory.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/crypto/include/cryptolib_build_info.h"... | opentitan/sw/device/tests/crypto/cryptotest/firmware/ecdsa.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.053 | false | false | 26,968 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/manuf/lib/individualize_sw_cfg.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/memory.h"
... | opentitan/sw/device/silicon_creator/manuf/lib/individualize_sw_cfg.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.284 | false | false | 16,354 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_TESTS_ENTROPY_SRC_KAT_IMPL_H_
#define OPENTITAN_SW_DEVICE_TESTS_ENTROPY_SRC_KAT_IMPL_H_
#include <stdbool.h>
#include "... | opentitan/sw/device/tests/entropy_src_kat_impl.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.967 | false | false | 1,369 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A sequence that runs a program multiple times, resetting in the middle of runs
class otbn_reset_vseq extends otbn_base_vseq;
`uvm_object_utils(... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_reset_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.296 | false | false | 1,169 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// An agent that represents an alert interface.
class alert_agent extends dv_reactive_agent #(
.CFG_T (alert_agent_cfg),
.DRIVER_T... | opentitan/hw/dv/sv/alert_agent/alert_agent.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.194 | false | false | 4,733 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_power_virus_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_power_virus_vseq)
`uvm_object_new
virtual function int sw... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_power_virus_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.211 | false | false | 8,401 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A UVM sequence item that represents a state of a vector of error logs. It holds an associative
// array that gives items for each valid error.
cl... | opentitan/hw/ip/racl_ctrl/dv/env/racl_error_log_agent/racl_error_log_vec_item.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.375 | false | false | 1,868 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/crypto/impl/aes_kwp/aes_kwp.h"
#include <stddef.h>
#include <stdint.h>
#include "sw/device/lib/base/hardened.h"
#include "s... | opentitan/sw/device/lib/crypto/impl/aes_kwp/aes_kwp.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.368 | false | false | 8,423 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package dv_base_reg_pkg;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
// macro includes
`include "uvm_macros.svh"
`include... | opentitan/hw/dv/sv/dv_base_reg/dv_base_reg_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.147 | false | false | 5,599 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class uart_virtual_sequencer extends cip_base_virtual_sequencer #(.CFG_T(uart_env_cfg),
... | opentitan/hw/ip/uart/dv/env/uart_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 464 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "xbar_seq_err_item.sv"
`include "xbar_tl_host_seq.sv"
`include "xbar_base_vseq.sv"
`include "xbar_smoke_vseq.sv"
`include "xbar_random_vseq.... | opentitan/hw/ip/tlul/generic_dv/env/seq_lib/xbar_vseq_list.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 527 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class pattgen_scoreboard extends cip_base_scoreboard #(.CFG_T(pattgen_env_cfg),
.RAL_T(pattgen... | opentitan/hw/ip/pattgen/dv/env/pattgen_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.116 | false | false | 12,176 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
package prim_rom_pkg;
parameter int unsigned RomReqWidth = 32'd4;
parameter int unsigned RomRspWidth = 32'd1;
typedef struct packed {
... | opentitan/hw/ip/prim_generic/rtl/prim_rom_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 580 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Supports writing a field that enables
// a function within a module.
// Requirements are that the function will
// only be enabled when the fiel... | opentitan/hw/ip/edn/rtl/edn_field_en.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.31 | false | false | 1,413 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class pattgen_env_cfg extends cip_base_env_cfg #(.RAL_T(pattgen_reg_block));
// Drain time of phase_ready_to_end
uint ok_to_end_delay_ns = 8000;
... | opentitan/hw/ip/pattgen/dv/env/pattgen_env_cfg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 1,510 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// test all hosts to access same device
// randomly pick one device, if host can access this device, change it to only access this device
// repeat a... | opentitan/hw/ip/tlul/generic_dv/env/seq_lib/xbar_access_same_device_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.281 | false | false | 1,497 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package otp_ctrl_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import dv_ba... | opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/dv/env/otp_ctrl_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.139 | false | false | 10,136 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/dif/dif_sensor_ctrl.h"
#include "sw/device/lib/... | opentitan/sw/device/tests/clkmgr_jitter_frequency_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.402 | false | false | 5,952 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_all_escalation_resets_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_all_escalation_resets_vseq)
typedef struct {
/... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_all_escalation_resets_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.193 | false | false | 8,515 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/crypto/drivers/otbn.h"
#include "sw/device/lib/crypto/impl/ecc/p256.h"
#include "sw/device/lib/crypto/impl/keyblob.h"
#includ... | opentitan/sw/device/tests/crypto/ecc_p256_base_point_mult_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.341 | false | false | 3,415 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "hw/top/dt/rv_core_ibex.h" // Generated
#include "sw/device/lib/base/csr.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/... | opentitan/sw/device/tests/rv_core_ibex_address_translation_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.51 | false | false | 12,271 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "prim_assert.sv"
/**
* 256b General Purpose Register File (GPRs) with integrity code detecting triple bit errors on a
* 32-bit granule (3... | opentitan/hw/ip/otbn/rtl/otbn_rf_bignum.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.205 | false | false | 6,242 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This sequence forces the `wait_cyc_mask` input from alert_handler_ping_timer so alert_handler
// will send out pings more frequently.
// Then the ... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_alert_handler_entropy_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.205 | false | false | 1,790 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_TESTS_CRYPTO_AES_TESTVECTORS_H_
#define OPENTITAN_SW_DEVICE_TESTS_CRYPTO_AES_TESTVECTORS_H_
#include "sw/device/lib/cryp... | opentitan/sw/device/tests/crypto/aes_testvectors.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.212 | false | false | 5,186 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_aon_timer.h"
#include <assert.h>
#include <stddef.h>
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/l... | opentitan/sw/device/lib/dif/dif_aon_timer.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.137 | false | false | 9,368 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package crypto_dpi_present_pkg;
// PRESENT expects up to 31 rounds in total
localparam int unsigned MaxRounds = 31;
localparam int unsigned Max... | opentitan/hw/ip/prim/dv/prim_present/crypto_dpi_present/crypto_dpi_present_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.2 | false | false | 3,243 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This sequence is used to run register tests. The type of register test to be run can
// be selected via run args.
// run_common_vseq_wrapper is in... | opentitan/hw/ip/dma/dv/env/seq_lib/dma_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.474 | false | false | 979 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_LOG_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_LOG_H_
#include <stdint.h>
#includ... | opentitan/sw/device/silicon_creator/lib/boot_log.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.596 | false | false | 4,189 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class usbdev_streaming_vseq extends usbdev_max_non_iso_usb_traffic_vseq;
`uvm_object_utils(usbdev_streaming_vseq)
`uvm_object_new
// Ensure t... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_streaming_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.364 | false | false | 514 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Error injection and checks for:
// Invalid transition
// Transition count = 24
// Clock bypass invalid response
// NVM RMA invalid response
// I... | opentitan/hw/ip/lc_ctrl/dv/env/seq_lib/lc_ctrl_lc_errors_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.367 | false | false | 932 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//############################################################################
// *Name: dev_entropy
// *Module Description: Device Entropy
//#######... | opentitan/hw/top_darjeeling/ip/ast/rtl/dev_entropy.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.162 | false | false | 6,508 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// An interface that can be bound into sram_ctrl in order to inject (and cleanly detect) faults.
//
// To avoid needing to parameterise the interface... | opentitan/hw/ip/sram_ctrl/dv/env/sram_ctrl_fault_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.359 | false | false | 5,040 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// target specific signals inside aes_core.sv
interface fi_core_if
import uvm_pkg::*;
import aes_pkg::*;
(
input logic clk_i,
input ... | opentitan/hw/ip/aes/dv/err_injection_if/fi_core_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 3,495 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_UJSON_OTTF_COMMANDS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_UJSON_OTTF_COMMA... | opentitan/sw/device/lib/testing/test_framework/ujson_ottf_commands.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.903 | false | false | 1,394 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class keymgr_dpe_env extends cip_base_env #(
.CFG_T (keymgr_dpe_env_cfg),
.COV_T (keymgr_dpe_env_cov),
.VIRTUAL... | opentitan/hw/ip/keymgr_dpe/dv/env/keymgr_dpe_env.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.121 | false | false | 1,635 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/testing/entropy_src_testutils.h"
#include "sw/device/lib/base/crc32.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/devi... | opentitan/sw/device/lib/testing/entropy_src_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.149 | false | false | 5,066 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class key_sideload_driver#(
parameter type KEY_T = keymgr_dpe_pkg::hw_key_req_t
) extends dv_base_driver #(.ITEM_T(key_sideload_item#(KEY_T)),
... | opentitan/hw/dv/sv/key_sideload_agent/key_sideload_driver.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.15 | false | false | 1,527 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/mmio.h"
#include <stdalign.h>
#include "sw/device/lib/base/memory.h"
/**
* Copies a block of memory between MMIO and... | opentitan/sw/device/lib/base/mmio.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.345 | false | false | 7,255 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class aes_base_test extends cip_base_test #(
.ENV_T(aes_env),
.CFG_T(aes_env_cfg)
);
`uvm_component_utils(aes_base_test)
`uvm_component... | opentitan/hw/ip/aes/dv/tests/aes_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.329 | false | false | 3,240 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Wrapper to allow LEC of masked S-Boxes against LUT-based S-Box.
module aes_sbox_masked_wrapper (
input aes_pkg::ciph_op_e op_i,
input log... | opentitan/hw/ip/aes/pre_dv/aes_sbox_lec/aes_sbox_masked_wrapper.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 951 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_ALERT_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_DRIVERS_ALERT_H_
#include <stdint.h>
#include "sw/de... | opentitan/sw/device/lib/crypto/drivers/alert.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.8 | false | false | 998 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "entropy_src_base_rng_seq.sv"
// rng test vseq
class entropy_src_rng_vseq extends entropy_src_base_vseq;
`uvm_object_utils(entropy_src_r... | opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_rng_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.256 | false | false | 37,952 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// prescaler test vseq
class aon_timer_prescaler_vseq extends aon_timer_base_vseq;
`uvm_object_utils(aon_timer_prescaler_vseq)
// Randomize pres... | opentitan/hw/ip/aon_timer/dv/env/seq_lib/aon_timer_prescaler_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.132 | false | false | 2,198 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SOC_PROXY_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SOC_PROXY_H_
#include "sw/device/lib/dif/autogen/dif_so... | opentitan/sw/device/lib/dif/dif_soc_proxy.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 1 | false | false | 396 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BUILD_INFO_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BUILD_INFO_H_
#include <stdint.h>
#in... | opentitan/sw/device/silicon_creator/lib/build_info.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.7 | false | false | 1,622 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_uart_tx_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_uart_tx_vseq)
`uvm_object_new
virtual task connect_uart_agent(... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_uart_tx_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.091 | false | false | 1,286 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.