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
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOTSTRAP_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOTSTRAP_H_
#include "sw/device/lib/bas... | opentitan/sw/device/silicon_creator/lib/bootstrap.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.867 | false | false | 2,028 | -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_KEYS_FAKE_SPX_TEST_KEY_0_SPX_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_KEYS_FAKE_SPX_TEST_KE... | opentitan/sw/device/silicon_creator/rom/keys/fake/spx/test_key_0_spx.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.583 | false | false | 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
//
// Synchronous single-port SRAM model
`include "prim_assert.sv"
module prim_ram_1p import prim_ram_1p_pkg::*; #(
parameter int Width ... | opentitan/hw/ip/prim_xilinx/rtl/prim_ram_1p.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.139 | false | false | 3,088 | -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/rom_state.h"
/**
* A dummy pre-run hook for the `kRomStateInit` ROM state.
*
* This is an example on how ... | opentitan/sw/device/silicon_creator/rom/hooks/dummy_rom_hooks.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.692 | false | false | 525 | -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_common_vseq extends pattgen_base_vseq;
`uvm_object_utils(pattgen_common_vseq)
`uvm_object_new
constraint num_trans_c { num_trans... | opentitan/hw/ip/pattgen/dv/env/seq_lib/pattgen_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 760 | -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 aon_timer_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(aon_timer_env_cfg),
.COV_T(aon_timer_env_cov)
);
`uvm_comp... | opentitan/hw/ip/aon_timer/dv/env/aon_timer_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 556 | -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 cheriot_mem_sys_base_test extends cip_base_test #(
.CFG_T(cheriot_mem_sys_env_cfg),
.ENV_T(cheriot_mem_sys_env)
);
`uvm_component_... | opentitan/hw/ip/cheriot_mem_sys/dv/tests/cheriot_mem_sys_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.3 | false | false | 412 | -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/spi_host_testutils.h"
#include "sw/device/lib/dif/dif_pinmux.h"
#include "sw/device/lib/testing/pinmux_testutils.h"
... | opentitan/sw/device/lib/testing/spi_host_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.252 | false | false | 5,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
// This item represents a complete packet sent from an application to KMAC (to make a request)
//
// These sequence items are created by the driver i... | opentitan/hw/dv/sv/kmac_app_agent/kmac_app_req_packet_item.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 4,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
// Verifies that the debug resources are accessible before and after a HW reset event due to
// alert escalation.
//
// This test reuses the same SW ... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_rv_dm_access_after_escalation_reset_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.246 | false | false | 3,390 | -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 test performs a the first step of a ROM bootstrap operation, i.e., NVM erase. It then
// confirms NVM has been erased by reading back a few S... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_ate_bootstrap_flash_erase_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.295 | false | false | 2,230 | -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 <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/crc32.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/runt... | opentitan/sw/device/lib/base/crc32_perftest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.351 | false | false | 1,426 | -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/lc_ctrl.h"
#include "hw/top/dt/uart.h"
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/d... | opentitan/sw/device/tests/uart_tx_rx_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.339 | false | false | 22,087 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// REQ/ACK synchronizer
//
// This module synchronizes a REQ/ACK handshake across a clock domain crossing.
// Both domains will see a handshake wit... | opentitan/hw/ip/prim/rtl/prim_sync_reqack.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.332 | false | false | 12,306 | -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 otp_ctrl_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(otp_ctrl_env_cfg),
.COV_T(otp_ctrl_env_cov)
);
`uvm_compone... | opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/dv/env/otp_ctrl_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.188 | false | false | 863 | -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 "spi_host_base_vseq.sv"
`include "spi_host_tx_rx_vseq.sv"
`include "spi_host_smoke_vseq.sv"
`include "spi_host_speed_vseq.sv"
`include "spi_... | opentitan/hw/ip/spi_host/dv/env/seq_lib/spi_host_vseq_list.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.158 | false | false | 785 | -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 sequence for fault tests
class flash_ctrl_err_base_vseq extends flash_ctrl_rw_vseq;
`uvm_object_utils(flash_ctrl_err_base_vseq)
`uvm_obje... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_err_base_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.184 | false | false | 1,631 | -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"
module prim_xnor2 #(
parameter int Width = 1
) (
input logic [Width-1:0] in0_i,
input logic [Width-1:0] in1_i,
o... | opentitan/hw/ip/prim_asap7/rtl/prim_xnor2.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.158 | false | false | 546 | -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_sram_ctrl.h"
#include "sw/device/lib/base/multibits.h"
#include "hw/top/sram_ctrl_regs.h" // Generated.
/**
* Ob... | opentitan/sw/device/lib/dif/dif_sram_ctrl.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.262 | false | false | 8,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_SIGVERIFY_FLASH_EXEC_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_FLASH_EXEC_H_
#ifd... | opentitan/sw/device/silicon_creator/lib/sigverify/flash_exec.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.762 | false | false | 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
class chip_sw_lc_walkthrough_testunlocks_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_lc_walkthrough_testunlocks_vseq)
`uvm_object_... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_lc_walkthrough_testunlocks_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.149 | false | false | 3,200 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Common interface definitions for OTP macro.
package otp_ctrl_macro_pkg;
//////////////////////////////////////
// Typedefs for OTP Macro Int... | opentitan/hw/top_darjeeling/ip_autogen/otp_ctrl/rtl/otp_ctrl_macro_pkg.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.444 | false | false | 2,594 | -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_sram_ctrl_scrambled_access_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_sram_ctrl_scrambled_access_vseq)
`uvm_object_... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sram_ctrl_scrambled_access_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.116 | false | false | 11,551 | -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_SCA_OTBN_VERTICAL_ECC256_KEYGEN_SERIAL_H_
#define OPENTITAN_SW_DEVICE_SCA_OTBN_VERTICAL_ECC256_KEYGEN_SERIAL_H_
#include... | opentitan/sw/device/sca/otbn_vertical/ecc256_keygen_serial.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.85 | false | false | 4,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
#include <assert.h>
#include "hw/top/dt/api.h" // Generated
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "... | opentitan/sw/device/tests/pmod/spi_host_gigadevice256Mb_flash_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.25 | false | false | 4,070 | -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_SPI_HOST_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_SPI_HOST_TESTUTILS_H_
#include <assert.h>
#inc... | opentitan/sw/device/lib/testing/spi_host_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.706 | false | false | 2,479 | -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 module gates the alert triggers with their enable bits, and correctly bins
// the enabled alerts into the class that they have been assigne... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/rtl/alert_handler_class.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 2,124 | -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 cheriot_mem_sys_env_pkg::*;
import cheriot_mem_sys_test_pkg:... | opentitan/hw/ip/cheriot_mem_sys/dv/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.292 | false | false | 2,372 | -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 flash_ctrl_base_test #(
type CFG_T = flash_ctrl_env_cfg,
type ENV_T = flash_ctrl_env
) extends cip_base_test #(
.CFG_T(CFG_T),
... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/tests/flash_ctrl_base_test.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.253 | false | false | 4,312 | -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 prim_clock_gating #(
parameter bit NoFpgaGate = 1'b0,
parameter bit FpgaBufGlobal = 1'b1 // No function in Ultrascale
) (
input c... | opentitan/hw/ip/prim_xilinx_ultrascale/rtl/prim_clock_gating.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.125 | false | false | 643 | -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 spi_agent extends dv_reactive_agent #(
.CFG_T (spi_agent_cfg),
.DRIVER_T (spi_driver),
.HOST_DRIVER_T (spi_host_dri... | opentitan/hw/dv/sv/spi_agent/spi_agent.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.125 | false | false | 1,253 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Legacy pwrmgr_if.sv has import pwrmgr_env_pkg::*;
// inside interface.
// To avoid unnecessary compile overhead, create separate interface
// pr... | opentitan/hw/top_darjeeling/dv/env/pwrmgr_low_power_if.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.536 | false | false | 974 | -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_PENETRATIONTESTS_JSON_HMAC_SCA_COMMANDS_H_
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_JSON_HMAC_SCA_COMMAND... | opentitan/sw/device/tests/penetrationtests/json/hmac_sca_commands.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.5 | false | false | 2,083 | -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_spi_passthrough_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_spi_passthrough_vseq)
`uvm_object_new
// The sequence... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_spi_passthrough_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.214 | false | false | 7,043 | -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/runtime/pmp.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "sw/device/lib/base/bitfield.h"
#inclu... | opentitan/sw/device/lib/runtime/pmp.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.37 | false | false | 18,061 | -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 clkmgr_env_pkg;
// dep packages
import uvm_pkg::*;
import sec_cm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib... | opentitan/hw/top_darjeeling/ip_autogen/clkmgr/dv/env/clkmgr_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.142 | false | false | 3,735 | -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 is the base vseq that uses stub mode, this vseq can be extended for these tests
// 1. CSR tests
// 2. IP tests which run in chip-level and se... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_stub_cpu_base_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.409 | false | false | 6,397 | -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 tl_agent_pkg::*;
import rv_timer_env_pkg::*;
import rv_tim... | opentitan/hw/ip/rv_timer/dv/tb/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.188 | false | false | 1,713 | -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_RV_PLIC_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_RV_PLIC_TESTUTILS_H_
#include "sw/device/lib/di... | opentitan/sw/device/lib/testing/rv_plic_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.84 | false | false | 1,287 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// usbdev_av_buffer test vseq
class usbdev_av_buffer_vseq extends usbdev_base_vseq;
`uvm_object_utils(usbdev_av_buffer_vseq)
`uvm_object_new
... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_av_buffer_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.419 | false | false | 1,241 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Testbench module for prim_alert_sender and prim_alert_receiver pair.
//
// This direct test has five test sequences:
// 1). Alert request sequen... | opentitan/hw/ip/prim/dv/prim_alert/tb/prim_alert_tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.224 | false | false | 8,680 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Flash Memory Properties
//
`include "prim_assert.sv"
module flash_mp_data_region_sel import flash_ctrl_top_specific_pkg::*; #(
parameter int... | opentitan/hw/ip_templates/flash_ctrl/rtl/flash_mp_data_region_sel.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.245 | false | false | 1,866 | -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 dma_test_pkg;
import uvm_pkg::*;
import cip_base_pkg::*;
import dma_env_pkg::*;
`include "uvm_macros.svh"
`include "dv_macros.svh"... | opentitan/hw/ip/dma/dv/tests/dma_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 363 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
import aes_model_dpi_pkg::*;
import aes_pkg::*;
class aes_scoreboard extends cip_base_scoreboard #(
.CFG_T(aes_env_cfg),
.RAL_T(aes_reg_block),
... | opentitan/hw/ip/aes/dv/env/aes_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.162 | false | false | 40,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/base/hardened_memory.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/sil... | opentitan/sw/device/silicon_creator/lib/ownership/test_owner.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.405 | false | false | 13,444 | -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 <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/math.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/... | opentitan/sw/device/tests/pwrmgr_wdog_reset_reqs_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | false | false | 4,812 | -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 jtag_riscv_item extends uvm_sequence_item;
// random variables
rand uint ir_len;
rand uint dr_len;
... | opentitan/hw/dv/sv/jtag_riscv_agent/jtag_riscv_item.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | false | false | 1,298 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
import uvm_pkg::*;
module spi_host_data_stable_sva #(
parameter int unsigned NumCS = 1
) (
input logic ... | opentitan/hw/ip/spi_host/dv/sva/spi_host_data_stable_sva.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.194 | false | false | 4,836 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Tests the pwrmgr setting to disable the USB clock in active mode. The check
// is to issue a USB CSR access when the clock is disabled, expecting ... | opentitan/sw/device/tests/pwrmgr_usb_clk_disabled_when_active_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.266 | false | false | 5,418 | -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_USBDPI_USB_UTILS_H_
#define OPENTITAN_HW_DV_DPI_USBDPI_USB_UTILS_H_
#include <assert.h>
#include <stdint.h>
#include <std... | opentitan/hw/dv/dpi/usbdpi/usb_utils.h | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.73 | false | false | 2,555 | -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/abs_mmio.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/dif/dif_aon_timer.h"
#include "sw/device/lib/... | opentitan/sw/device/tests/clkmgr_off_peri_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.294 | false | false | 10,857 | -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/crypto/drivers/otbn.h"
#include "sw/device/lib/crypto/impl/ecc/p256.h"
#inclu... | opentitan/sw/device/tests/crypto/ecc_p256_arith_share_private_key_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.22 | false | false | 9,795 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Testbench module for pinmux.
// Intended to be used with a formal tool.
module pinmux_tb
import pinmux_pkg::*;
import pinmux_reg_pkg::*;
... | opentitan/hw/top_earlgrey/ip_autogen/pinmux/fpv/tb/pinmux_tb.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.076 | false | false | 3,781 | -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/memory.h"
#include "sw/device/lib/crypto/include/datatypes.h"
#include "sw/device/lib/crypto/include/integrity.h"
#inclu... | opentitan/sw/device/tests/crypto/cryptotest/firmware/sha.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.11 | false | false | 4,073 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Shadowed register slice conforming to Comportability guide.
`include "prim_assert.sv"
module prim_subreg_shadow
import prim_subreg_pkg::*;
#... | opentitan/hw/ip/prim/rtl/prim_subreg_shadow.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.27 | false | false | 8,547 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Interface for capturing overflow/underflow/status events in
// entropy complex (entropy_src, CSRNG, EDN) fifos
interface entropy_subsys_fifo_e... | opentitan/hw/dv/sv/common_ifs/entropy_subsys_fifo_exception_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.174 | false | false | 1,821 | -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 example serves as a starting point for writing software top-level
* concurrency tests that use the OpenTitan Test Framework (OTTF), and ... | opentitan/sw/device/tests/example_concurrency_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.739 | false | false | 5,374 | -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 aon_timer_scoreboard extends cip_base_scoreboard #(
.CFG_T(aon_timer_env_cfg),
.RAL_T(aon_timer_reg_block),
.COV_T(aon_timer_env_co... | opentitan/hw/ip/aon_timer/dv/env/aon_timer_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.179 | false | false | 61,328 | -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"
/**
* OTBN bignum multiply and accumulate module
*
* This module supports 3 types of multiplication and accumulation in... | opentitan/hw/ip/otbn/rtl/otbn_mac_bignum.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.404 | false | false | 31,667 | -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_OTBN_BOOT_SERVICES_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OTBN_BOOT_SERVICES_H_
#include... | opentitan/sw/device/silicon_creator/lib/otbn_boot_services.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.831 | false | false | 9,144 | -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 lc_ctrl_bind;
bind lc_ctrl tlul_assert #(
.EndpointType("Device")
) tlul_assert_device_regs (
.clk_i,
.rst_ni,
.h2d (reg... | opentitan/hw/ip/lc_ctrl/dv/sva/lc_ctrl_bind.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.111 | false | false | 672 | -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/keymgr_dpe.h"
#include "sw/device/silicon_creator/manuf/lib/nvm_info_field.h"
/**
* Keymgr dpe cons... | opentitan/sw/device/silicon_creator/lib/cert/dice_keys.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.304 | false | false | 3,012 | -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_sysrst_ctrl_reset_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_sysrst_ctrl_reset_vseq)
`uvm_object_new
localparam ... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sysrst_ctrl_reset_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.046 | false | false | 5,831 | -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 rram_ctrl_env_pkg::*;
import rram_ctrl_test_pkg::*;
// Ma... | opentitan/hw/ip/rram_ctrl/dv/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.152 | false | false | 5,855 | -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_RUNTIME_PMP_H_
#define OPENTITAN_SW_DEVICE_LIB_RUNTIME_PMP_H_
#include <stdbool.h>
#include <stdint.h>
#include "sw... | opentitan/sw/device/lib/runtime/pmp.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.76 | false | false | 11,886 | -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 alert_handler_pkg;
// these localparams are generated based on the system top-level configuration
localparam int unsigned NAlert... | opentitan/hw/top_earlgrey/ip_autogen/alert_handler/rtl/alert_handler_pkg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.256 | false | false | 5,652 | -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 "sw/device/lib/dif/dif_pinmux.h"
#include "sw/device/lib/dif/dif_rv_plic.h"
#include "sw/device/lib/dif... | opentitan/sw/device/tests/sysrst_ctrl_in_irq_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.243 | false | false | 12,279 | -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"
/**
* Tile-Link UL command integrity check
*/
module tlul_cmd_intg_chk import tlul_pkg::*; (
// TL-UL interface
inp... | opentitan/hw/ip/tlul/rtl/tlul_cmd_intg_chk.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.429 | false | false | 1,559 | -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 pwrmgr_bind;
`ifndef GATE_LEVEL
bind pwrmgr tlul_assert #(
.EndpointType("Device")
) tlul_assert_device (.clk_i, .rst_ni, .h2d(tl_i), ... | opentitan/hw/top_earlgrey/ip_autogen/pwrmgr/dv/sva/pwrmgr_bind.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.101 | false | false | 2,761 | -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/random_order.h"
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/l... | opentitan/sw/device/lib/base/random_order.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | false | false | 1,142 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Add extra constraints to the mbx_config to ensure we generate messages
// which exceed the size of the imbx.
// This should trigger a HW-based che... | opentitan/hw/ip/mbx/dv/env/seq_lib/mbx_imbx_oob_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.385 | false | false | 1,329 | -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_CRYPTOTEST_FIRMWARE_SPHINCSPLUS_H_
#define OPENTITAN_SW_DEVICE_TESTS_CRYPTO_CRYPTOTEST_FIRMWARE_SPHINCSPLUS_... | opentitan/sw/device/tests/crypto/cryptotest/firmware/sphincsplus.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.889 | false | false | 525 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// smoke test vseq
class sram_ctrl_smoke_vseq extends sram_ctrl_base_vseq;
`uvm_object_utils(sram_ctrl_smoke_vseq)
`uvm_object_new
bit access... | opentitan/hw/ip/sram_ctrl/dv/env/seq_lib/sram_ctrl_smoke_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.32 | false | false | 4,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
//
// Assertions for pinmux.
// Intended to be used with a formal tool.
`include "prim_assert.sv"
module pinmux_assert_fpv
import pinmux_pkg::*;
... | opentitan/hw/top_englishbreakfast/ip_autogen/pinmux/fpv/vip/pinmux_assert_fpv.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.201 | false | false | 38,334 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Copyright IAIK.
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_IP_OTBN_PRE_SCA_ALMA_CPP_VERILATOR_TB_HPC_GADGET_IMPL_H_
#define OPENTITAN_HW_IP_OTBN_PRE_SCA_ALMA_CPP_VERILA... | opentitan/hw/ip/otbn/pre_sca/alma/cpp/verilator_tb_hpc_gadget_impl.h | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.417 | false | false | 1,230 | -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 SBox testbench
module aes_sbox_tb #(
) (
input logic clk_i,
input logic rst_ni,
output logic test_done_o,
output logic test_pass... | opentitan/hw/ip/aes/pre_dv/aes_sbox_tb/rtl/aes_sbox_tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.129 | false | false | 5,313 | -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_rom_e2e_jtag_inject_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_rom_e2e_jtag_inject_vseq)
`uvm_object_new
virtual ... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_rom_e2e_jtag_inject_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.129 | false | false | 5,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
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/crypto/include/datatypes.h"
#include "sw/device/lib/crypto/include/integrity.h"
#inclu... | opentitan/sw/device/tests/crypto/cryptotest/firmware/sphincsplus.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.154 | false | false | 3,919 | -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_PWRMGR_SLEEP_ALL_WAKE_UPS_IMPL_H_
#define OPENTITAN_SW_DEVICE_TESTS_PWRMGR_SLEEP_ALL_WAKE_UPS_IMPL_H_
// Contains ... | opentitan/sw/device/tests/pwrmgr_sleep_all_wake_ups_impl.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.753 | false | false | 2,356 | -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"
/**
* Tile-Link UL adapter for SRAM-like devices with RACL support
*
* - Intentionally omitted BaseAddr in case of mult... | opentitan/hw/ip/tlul/rtl/tlul_adapter_sram_racl.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.19 | false | false | 6,443 | -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/sram_ctrl_testutils.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_sram_ctrl.h"
#include "s... | opentitan/sw/device/lib/testing/sram_ctrl_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.492 | false | false | 2,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
// class : gpio_rand_intr_trigger_vseq
// This gpio random test sequence performs following in each of multiple iterations:
// (i) programs random v... | opentitan/hw/top_earlgrey/ip_autogen/gpio/dv/env/seq_lib/gpio_rand_intr_trigger_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.241 | false | false | 3,908 | -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 csrng_pkg;
parameter int unsigned NumAppsLg = $clog2(csrng_reg_pkg::NumApps);
// Main design parameters
// We use the suffix 'Len'... | opentitan/hw/ip/csrng/rtl/csrng_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.349 | false | false | 6,667 | -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 "crypto.h"
#include <openssl/conf.h>
#include <openssl/evp.h>
/**
* Get EVP_CIPHER type pointer defined by key_len and mode.
* If the se... | opentitan/hw/ip/aes/model/crypto.c | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.182 | false | false | 5,795 | -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 to verify the countermeasure(s) PC.CTRL_FLOW.REDUN.
class otbn_mem_gnt_acc_err_vseq extends otbn_single_vseq;
`uvm_object_utils(otbn... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_mem_gnt_acc_err_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.065 | false | false | 2,104 | -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_BASE_STDASM_H_
#define OPENTITAN_SW_DEVICE_LIB_BASE_STDASM_H_
/**
* @file
* @brief The `asm` keyword.
*
* This h... | opentitan/sw/device/lib/base/stdasm.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 1 | false | false | 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/base/hardened_memory.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/... | opentitan/sw/device/lib/base/hardened_memory.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.276 | false | false | 22,915 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Scoreboard for i2c transfers (captured in the sequence item type 'i2c_item')
//
// Defining expectations in terms of i2c transfers is a useful lev... | opentitan/hw/ip/i2c/dv/env/i2c_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.287 | false | false | 28,767 | -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 very simple (unclocked) interface for sampling the racl_policies_o output
interface racl_ctrl_policies_if ();
logic [$bits(top_racl_pkg::racl... | opentitan/hw/ip/racl_ctrl/dv/env/racl_ctrl_policies_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.364 | false | false | 596 | -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 GHASH implementation for AES-GCM
//
// This module implements the GHASH core including hash state and hash key register required for
// AES-... | opentitan/hw/ip/aes/rtl/aes_ghash.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.335 | false | false | 44,161 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// combine all xbar seqs in one seq to run in parallel multiple times
class xbar_stress_all_vseq extends xbar_base_vseq;
`uvm_object_utils(xbar_str... | opentitan/hw/ip/tlul/generic_dv/env/seq_lib/xbar_stress_all_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.179 | false | false | 2,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
#include <assert.h>
#include <limits.h>
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/math.h"
#include "sw/device/lib/base/m... | opentitan/sw/device/tests/sim_dv/alert_handler_lpg_sleep_mode_alerts.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.332 | false | false | 16,820 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// SPI Flash Read JEDEC ID handler
`include "prim_assert.sv"
module spid_jedec
import spi_device_pkg::*;
(
input clk_i,
input rst_ni,
in... | opentitan/hw/ip/spi_device/rtl/spid_jedec.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.235 | false | false | 4,781 | -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 tests read commands that pass through and write commands that
// are uploaded to software. Software is then expected to relay write ... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_spi_passthrough_collision_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.258 | false | false | 8,975 | -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 enable entropy by writing 1 to the lock_regen register.
class alert_handler_entropy_vseq extends alert_handler_smoke_vseq;
`uvm_o... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/dv/env/seq_lib/alert_handler_entropy_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.226 | false | false | 1,184 | -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_common_vseq extends chip_stub_cpu_base_vseq;
`uvm_object_utils(chip_common_vseq)
constraint num_trans_c {
num_trans inside {[1:2]... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_common_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.204 | false | false | 2,384 | -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_rstmgr.h"
#include "sw/device/silicon_creator/lib/drivers/lifecycle.h"
#include "sw/device/silicon_creator/lib/driver... | opentitan/sw/device/lib/testing/test_rom/english_breakfast_fake_driver_funcs.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.417 | false | false | 1,442 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// interface for OTP, Life cycle, RMA, PWRMGR and KEYMGR
interface flash_ctrl_if (
input logic clk,
input logic rst_n
);
import lc_ctrl_pkg:... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/flash_ctrl_if.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.188 | false | false | 2,669 | -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 <stdbool.h>
#include "hw/top/dt/rom_ctrl.h"
#include "sw/device/lib/testing/ret_sram_testutils.h"
#include "sw/device/lib/testing/test_fram... | opentitan/sw/device/silicon_creator/rom/e2e/chip_info_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.356 | false | false | 2,301 | -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/math.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_alert_handler.h"
#include "sw/device/lib/ru... | opentitan/sw/device/tests/sim_dv/alert_handler_entropy_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.247 | false | false | 3,485 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.