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
#include "sw/device/lib/crypto/include/integrity.h"
#include "sw/device/lib/base/crc32.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/devi... | opentitan/sw/device/lib/crypto/impl/integrity.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.165 | false | false | 5,524 | -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 interface controls the agents connected to CSRNG.
interface csrng_agents_if;
logic edn_disable;
logic entropy_src_disable;
function a... | opentitan/hw/ip/csrng/dv/env/csrng_agents_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 511 | -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_manual_config_err_test extends aes_base_test;
`uvm_component_utils(aes_manual_config_err_test)
`uvm_component_new
virtual function... | opentitan/hw/ip/aes/dv/tests/aes_manual_config_err_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.152 | false | false | 1,840 | -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_otbn.h"
#include "sw/device/lib/testing/entropy_testutils.h"
#include "sw/device/lib/testing/otbn_testutils.h"
#inclu... | opentitan/sw/device/tests/otbn_isa_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.178 | false | false | 7,926 | -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 dma
import tlul_pkg::*;
import dma_pkg::*;
import dma_reg_pkg::*;
#(
parameter logic [NumAlerts-1:0] ... | opentitan/hw/ip/dma/rtl/dma.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | false | false | 65,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
// Directed test to check flash_ctrl.single_err_addr
// Each round test insert one single bit error and capture the address from tb.
// At the end of... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_integrity_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.133 | false | false | 1,948 | -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_SVC_BOOT_SVC_HEADER_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_SVC_BOOT_SVC_HEADER_... | opentitan/sw/device/silicon_creator/lib/boot_svc/boot_svc_header.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.784 | false | false | 3,034 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Frontdoor (indirect) access of CSRs over SBA using the JTAG interface.
//
// The system CSRs are accessed indirectly using the jtag_rv_debugger::s... | opentitan/hw/dv/sv/jtag_dmi_agent/sba_access_reg_frontdoor.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | false | false | 2,782 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Combinational module that constructs the requests from the Controller Core to the transceiver.
module i3c_ctrl_req_gen
import i3c_consts_pkg:... | opentitan/hw/ip/i3c/rtl/i3c_ctrl_req_gen.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.295 | false | false | 21,484 | -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_asm_init_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_rom_e2e_asm_init_vseq)
`uvm_object_new
localparam bit... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_rom_e2e_asm_init_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.124 | false | false | 7,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
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ROM_CTRL_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ROM_CTRL_H_
/**
* @file
* @brief <a href="/book/hw/ip/... | opentitan/sw/device/lib/dif/dif_rom_ctrl.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.716 | false | false | 2,562 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// USB IO Mux
//
// Muxes the USB IO signals between the override CSRs and the USB engine. The
// incoming signals are also synchronized to the cor... | opentitan/hw/ip/usbdev/rtl/usbdev_iomux.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.201 | false | false | 4,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 <stdint.h>
#include "sw/device/lib/arch/boot_stage.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_alert_handler.h"... | opentitan/sw/device/tests/chip_power_idle_load_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.249 | false | false | 11,166 | -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 pre-select certain length within the msg_fifo_length (16 words)
// Wait until msg_fifo has enough depth, then burst write the pre-se... | opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_burst_wr_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 745 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Binds OTP_CTRL functional coverage interface to the top level OTP_CTRL module.
//
`define PART_MUBI_COV(__part_name, __index) ... | opentitan/hw/top_darjeeling/ip_autogen/otp_ctrl/dv/cov/otp_ctrl_cov_bind.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.077 | false | false | 5,818 | -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 soc_dbg_ctrl_env_cfg extends cip_base_env_cfg #(.RAL_T(soc_dbg_ctrl_core_reg_block));
`uvm_object_utils(soc_dbg_ctrl_env_cfg)
// External ... | opentitan/hw/ip/soc_dbg_ctrl/dv/env/soc_dbg_ctrl_env_cfg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 1,148 | -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 checks that SRAMs become inaccessible when an alert is escalated.
*
* The device side of this test:
*
* 1. Writes to and reads b... | opentitan/sw/device/tests/sram_ctrl_lc_escalation_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.341 | false | false | 5,887 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Top-level IP block definitions.
package i3c_pkg;
import i3c_consts_pkg::*;
import i3c_reg_pkg::*;
// IP block version information.
loc... | opentitan/hw/ip/i3c/rtl/i3c_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.264 | false | false | 19,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
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_TESTING_ROM_TEST_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_TESTING_ROM_TEST_H_
#include "gmock/gmoc... | opentitan/sw/device/silicon_creator/testing/rom_test.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.636 | false | false | 1,112 | -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 rstmgr_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import tl_age... | opentitan/hw/top_darjeeling/ip_autogen/rstmgr/dv/env/rstmgr_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.197 | false | false | 2,351 | -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 dma_base_test extends cip_base_test #(
.CFG_T(dma_env_cfg),
.ENV_T(dma_env)
);
`uvm_component_utils(dma_base_test)
`uvm_component_new
... | opentitan/hw/ip/dma/dv/tests/dma_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 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
#include "hw/ip/aes/model/aes_modes.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_ae... | opentitan/sw/device/tests/aes_idle_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.405 | 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
#include "sw/device/lib/crypto/drivers/kmac.h"
#include "sw/device/lib/crypto/include/config.h"
#include "sw/device/lib/crypto/include/integrity.h"
#... | opentitan/sw/device/tests/crypto/mldsa87_sign_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.275 | false | false | 3,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
#ifndef OPENTITAN_SW_DEVICE_LIB_COVERAGE_PRINTER_H_
#define OPENTITAN_SW_DEVICE_LIB_COVERAGE_PRINTER_H_
#include <stdbool.h>
#include <stddef.h>
#in... | opentitan/sw/device/lib/coverage/printer.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.883 | false | false | 2,001 | -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/sigverify/sphincsplus/fors.h"
#include <stdint.h>
#include "sw/device/lib/runtime/ibex.h"
#include "sw/devi... | opentitan/sw/device/silicon_creator/lib/sigverify/sphincsplus/test/fors_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.306 | false | false | 2,235 | -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 rv_dm_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(rv_dm_env_cfg),
.COV_T(rv_dm_env_cov)
);
`uvm_component_utils(... | opentitan/hw/ip/rv_dm/dv/env/rv_dm_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 452 | -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_INTEGRITY_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_INTEGRITY_H_
#include <stddef.h>
#include... | opentitan/sw/device/lib/crypto/include/integrity.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.824 | false | false | 7,934 | -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 push_pull_agent #(
parameter int HostDataWidth = 32,
parameter int DeviceDataWidth = HostDataWidth
) extends dv_reactive_agent #(
... | opentitan/hw/dv/sv/push_pull_agent/push_pull_agent.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.109 | false | false | 2,216 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Generic Asynchronous SRAM FIFO (Dual port SRAM)
`include "prim_assert.sv"
module prim_fifo_async_sram_adapter #(
parameter int unsigned Widt... | opentitan/hw/ip/prim/rtl/prim_fifo_async_sram_adapter.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.319 | false | false | 13,984 | -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_dpi_config_host_vseq extends usbdev_base_vseq;
`uvm_object_utils(usbdev_dpi_config_host_vseq)
`uvm_object_new
// State within th... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_dpi_config_host_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.23 | false | false | 9,867 | -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_HART_H_
#define OPENTITAN_SW_DEVICE_LIB_RUNTIME_HART_H_
#include <stddef.h>
#include <stdint.h>
#include <st... | opentitan/sw/device/lib/runtime/hart.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.83 | false | false | 1,336 | -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 <string.h>
#include "hw/top/dt/aes.h"
#include "hw/top/dt/csrng.h"
#include "hw/top/dt/edn.h"
#include "hw/top/dt/entropy_src.h"
#include "... | opentitan/sw/device/tests/entropy_src_fw_override_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.373 | false | false | 20,568 | -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 randomly forces critical control signals inside one of the independent, redundant
// logic rails of the CTR mode FSM. The test then chec... | opentitan/hw/ip/aes/dv/env/seq_lib/aes_ctr_fi_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.214 | false | false | 3,811 | -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/mmio.h"
#include "sw/device/lib/dif/dif_base.h"
#include "sw/device/lib/dif/dif_i... | opentitan/sw/device/tests/sim_dv/i2c_device_tx_rx_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.295 | false | false | 9,455 | -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_keymgr_dpe.h"
#include <assert.h>
#include "sw/device/lib/dif/dif_base.h"
#include "hw/top/keymgr_dpe_regs.h" // ... | opentitan/sw/device/lib/dif/dif_keymgr_dpe.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.096 | false | false | 22,149 | -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 <stddef.h>
#include <stdint.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/m... | opentitan/sw/device/tests/mbx_smoketest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.373 | false | false | 14,808 | -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: sys_osc
// *Module Description: System Clock Oscillator
//###... | opentitan/hw/top_englishbreakfast/ip/ast/rtl/sys_osc.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.233 | false | false | 4,187 | -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_phy_config_usb_ref_disable_vseq extends usbdev_base_vseq;
`uvm_object_utils(usbdev_phy_config_usb_ref_disable_vseq)
`uvm_object_new... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_phy_config_usb_ref_disable_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.417 | false | false | 1,227 | -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 rram_ctrl_common_vseq extends rram_ctrl_base_vseq;
`uvm_object_utils(rram_ctrl_common_vseq)
// This sequence is mainly used to run the CSR... | opentitan/hw/ip/rram_ctrl/dv/env/seq_lib/rram_ctrl_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | 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 "sw/device/lib/base/memory.h"
#include "sw/device/lib/testing/test_framework/check.h"
#include "sw/device/lib/testing/test_framework/ottf_ma... | opentitan/sw/device/silicon_creator/lib/sigverify/sigverify_dynamic_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.317 | false | false | 2,692 | -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 package reads in NIST test vector files, and parses all relevant information for each
// test vector into a `test_vectors_t` struct.
//
// As... | opentitan/hw/dv/sv/test_vectors/test_vectors_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.438 | false | false | 17,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
#include <stdbool.h>
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/dif/dif_otp_ctrl.h"
#include "sw/device/lib/testing/otp_ctrl_tes... | opentitan/sw/device/tests/otp_ctrl_descrambling_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.153 | false | false | 5,162 | -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_PERSO_TLV_DATA_V1_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_BASE_PERSO_TLV_DATA_V1_... | opentitan/sw/device/silicon_creator/manuf/base/perso_tlv_data_v1.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.375 | false | false | 3,027 | -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/otbn_boot_services.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/silicon_creator/lib/attesta... | opentitan/sw/device/silicon_creator/lib/otbn_boot_services.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.319 | false | false | 12,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
#include "hw/top/dt/keymgr_dpe.h" // Generated
#include "hw/top/dt/otp_ctrl.h" // Generated
#include "hw/top/dt/pinmux.h" // Generated
#incl... | opentitan/sw/device/tests/rv_dm_ndm_reset_req.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.351 | false | false | 6,123 | -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 cheriot_mem_sys_test_pkg;
// dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import cheriot_mem_sys_env_pkg::*;
// macro i... | opentitan/hw/ip/cheriot_mem_sys/dv/tests/cheriot_mem_sys_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.5 | false | false | 493 | -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/cert/tpm.h"
#include <stdint.h>
#include "sw/device/lib/testing/test_framework/check.h"
#include "sw/device... | opentitan/sw/device/silicon_creator/lib/cert/tpm.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.392 | false | false | 3,180 | -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 <stdbool.h>
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/bas... | opentitan/sw/device/tests/sim_dv/lc_ctrl_volatile_raw_unlock_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.591 | false | false | 884 | -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_ECDSA_P256_KEY_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_ECDSA_P256_KEY_... | opentitan/sw/device/silicon_creator/lib/sigverify/ecdsa_p256_key.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.682 | false | false | 2,786 | -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: aon_osc
// *Module Description: AON Clock Oscillator
//######... | opentitan/hw/top_darjeeling/ip/ast/rtl/aon_osc.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 3,072 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// ---------------------------------------------
// tl_agent environment package
// ---------------------------------------------
package tl_agent_en... | opentitan/hw/dv/sv/tl_agent/dv/env/tl_agent_env_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.3 | false | false | 742 | -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_KEYMGR_DPE_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_KEYMGR_DPE_H_
#include... | opentitan/sw/device/silicon_creator/lib/drivers/keymgr_dpe.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.742 | false | false | 19,591 | -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 cheriot_tag_filter #(
// The number of outstanding TL transaction the IP supports
parameter int unsigned NumOut... | opentitan/hw/ip/cheriot_mem_sys/rtl/cheriot_tag_filter.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.234 | false | false | 16,806 | -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 top_darjeeling_bind;
`ifndef GATE_LEVEL
bind darjeeling_pd_aon clk_ctrl_and_main_pd_sva_if clk_ctrl_and_main_pd_sva_if (
.clk_slow_i(u_p... | opentitan/hw/top_darjeeling/dv/sva/top_darjeeling_bind.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.135 | false | false | 1,481 | -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_agent_cfg extends dv_base_agent_cfg;
bit en_monitor = 1'b1; // enable monitor
// interface handle used by driver, monitor & the se... | opentitan/hw/dv/sv/pattgen_agent/pattgen_agent_cfg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.304 | false | false | 1,004 | -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: pins_if
// Description: Pin interface for driving and sampling individual pins such as interrupts, alerts
// and gpios.
`ifndef SYNTHES... | opentitan/hw/dv/sv/common_ifs/pins_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.289 | false | false | 4,193 | -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/base/boot_measurements.h"
#include "sw/device/lib/base/macros.h"
// This symbol is declared as weak so that... | opentitan/sw/device/silicon_creator/lib/base/boot_measurements.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.875 | false | false | 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
// 'Hardware handshaking' mode smoke sequence
// testing the basic operation of DMA in hardware handshake mode
class dma_handshake_smoke_vseq extends... | opentitan/hw/ip/dma/dv/env/seq_lib/dma_handshake_smoke_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.308 | false | false | 2,089 | -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_CRYPTOLIB_BUILD_INFO_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_CRYPTOLIB_BUILD_INFO_H_
#inclu... | opentitan/sw/device/lib/crypto/include/cryptolib_build_info.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.862 | false | false | 3,685 | -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_HMAC_H_
#define OPENTITAN_SW_DEVICE_TESTS_CRYPTO_CRYPTOTEST_FIRMWARE_HMAC_H_
#include "... | opentitan/sw/device/tests/crypto/cryptotest/firmware/hmac.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.889 | false | false | 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
module bat (
// Input port
input tlul_pkg::tl_h2d_t tl_in_h2d_i,
output tlul_pkg::tl_d2h_t tl_in_d2h_o,
// Integrator bits used for custom ... | opentitan/hw/top_darjeeling/ip/soc_proxy/rtl/bat.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.277 | false | false | 1,839 | -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 soc_dbg_ctrl_base_test extends cip_base_test #(
.CFG_T(soc_dbg_ctrl_env_cfg),
.ENV_T(soc_dbg_ctrl_env)
);
`uvm_component_utils(soc... | opentitan/hw/ip/soc_dbg_ctrl/dv/tests/soc_dbg_ctrl_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.474 | false | false | 865 | -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_ECDSA_P256_VERIFY_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_ECDSA_P256_V... | opentitan/sw/device/silicon_creator/lib/sigverify/ecdsa_p256_verify.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.72 | false | false | 3,093 | -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/testing/test_framework/ottf_main.h"
#include "sw/device/silicon_creator/lib/dbg_prin... | opentitan/sw/device/silicon_creator/rom_ext/e2e/handoff/sram_exec_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.407 | false | false | 1,267 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Command & Configuration Options structure for SPI HOST.
//
package spi_host_cmd_pkg;
parameter int CmdSize = 56;
// For decoding the dire... | opentitan/hw/ip/spi_host/rtl/spi_host_cmd_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.186 | false | false | 1,141 | -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_pkg;
// Create a type to be exposed for the inter_signal_list in the HJSON definition
// This type is needed since regtool cannot eva... | opentitan/hw/ip/dma/rtl/dma_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.304 | false | false | 5,185 | -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 sram_ctrl_pkg;
////////////////
// Parameters //
////////////////
// The width of this RAM is currently restricted to 39 (32bit ... | opentitan/hw/ip/sram_ctrl/rtl/sram_ctrl_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.45 | false | false | 1,681 | -1 |
//******************************************************************************
//
// CRC5() - Computes a USB CRC5 value given an input value.
// Ported from the Perl routine from the USB white paper entitled
// "CYCLIC REDUNDANCY CHECKS IN USB"
// www.usb.org/developers/whitepapers/crcdes.p... | opentitan/hw/dv/dpi/usbdpi/usb_crc.c | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.385 | false | false | 2,710 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Convert i2c's o/oe signaling to an inout port for easier integration
module i2c_port_conv (
input scl_oe_i,
input sda_oe_i,
output logic s... | opentitan/hw/ip/i2c/dv/tb/i2c_port_conv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.278 | false | false | 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
package soc_dbg_ctrl_env_pkg;
// Dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import tl_agent_pkg::*;
impor... | opentitan/hw/ip/soc_dbg_ctrl/dv/env/soc_dbg_ctrl_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 1,235 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//halt/resume test
class rv_dm_cmderr_halt_resume_vseq extends rv_dm_base_vseq;
`uvm_object_utils(rv_dm_cmderr_halt_resume_vseq)
`uvm_object_new
... | opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_cmderr_halt_resume_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.174 | false | false | 988 | -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 error cases in HMAC and makes sure the core is not locked
class hmac_error_vseq extends hmac_long_msg_vseq;
`uvm_object_uti... | opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_error_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 848 | -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 monitor for an error log interface
class racl_error_log_monitor extends dv_base_monitor #(.ITEM_T (racl_error_log_vec_item),
... | opentitan/hw/ip/racl_ctrl/dv/env/racl_error_log_agent/racl_error_log_monitor.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.14 | false | false | 2,375 | -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/clkmgr_testutils.h"
#include "sw/device/lib/base/math.h"
#include "sw/device/lib/dif/dif_clkmgr.h"
#define MODULE_I... | opentitan/sw/device/lib/testing/clkmgr_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.265 | false | false | 11,541 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// The base class for CSR sequences, deriving from uvm_reg_sequence
//
// To use this sequence, create the object and then populate models, external_... | opentitan/hw/dv/sv/csr_utils/csr_base_seq.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.458 | false | false | 10,068 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// 50% to send read cmd to test mailbox, especially test read cross mailbox
// boundary. This seq tests both flash mode and passthrough mode
class sp... | opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_mailbox_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.222 | false | false | 1,265 | -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 4 cfg commands - wren, wrdi, en4b, ex4b
class spi_device_cfg_cmd_vseq extends spi_device_intercept_vseq;
`uvm_object_utils(spi_device_cfg_c... | opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_cfg_cmd_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.217 | false | false | 957 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Domain-Oriented Masking GF(2) Multiplier with 2-shares
// ref: Higher-Order Side-Channel Protected Implementations of Keccak
// https://epri... | opentitan/hw/ip/prim/rtl/prim_dom_and_2share.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.446 | false | false | 5,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
class pattgen_agent extends dv_base_agent #(
.CFG_T (pattgen_agent_cfg),
.DRIVER_T (pattgen_driver),
.SEQUENCER_T (pattgen... | opentitan/hw/dv/sv/pattgen_agent/pattgen_agent.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.19 | false | false | 853 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// direct test to verify read buffer related CSRs
// - readbuf_watermark, readbuf_flip and last_read_addr
class spi_device_read_buffer_direct_vseq e... | opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_read_buffer_direct_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.148 | false | false | 7,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
#include "sw/device/lib/crypto/include/entropy_src.h"
#include <stdbool.h>
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/crypto/... | opentitan/sw/device/lib/crypto/impl/entropy_src.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.31 | false | false | 2,149 | -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_volatile_raw_unlock_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_lc_volatile_raw_unlock_vseq)
`uvm_object_new
/... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_lc_volatile_raw_unlock_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.315 | false | false | 4,432 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Bound into the otbn_mac_bignum and used to help collect ISPR information for coverage.
interface otbn_mac_bignum_if (
input clk_i,
... | opentitan/hw/ip/otbn/dv/uvm/env/otbn_mac_bignum_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.277 | false | false | 2,022 | -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 module.
//
`include "prim_assert.sv"
module spi_device
import spi_device_reg_pkg::*;
#(
parameter... | opentitan/hw/ip/spi_device/rtl/spi_device.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.134 | false | false | 66,832 | -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_OTTF_CONSOLE_UART_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_CONSOLE_UAR... | opentitan/sw/device/lib/testing/test_framework/ottf_console_uart.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.839 | false | false | 2,562 | -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 timer_core #(
parameter int N = 1
) (
input clk_i,
input rst_ni,
input active,
input [11:0] prescaler,
input [ 7:0] st... | opentitan/hw/ip/rv_timer/rtl/timer_core.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.135 | false | false | 1,138 | -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/penetrationtests/firmware/fi/boot_fi.h"
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/base/csr.h"
#incl... | opentitan/sw/device/tests/penetrationtests/firmware/fi/boot_fi.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.165 | false | false | 9,101 | -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_env_cfg #(type RAL_T = chip_ral_pkg::chip_reg_block) extends cip_base_env_cfg #(
.RAL_T(RAL_T)
);
// Testbench settings
uart_ag... | opentitan/hw/top_earlgrey/dv/env/chip_env_cfg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.362 | false | false | 26,942 | -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_CFI_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_CFI_H_
#include "sw/device/lib/base/hardened.... | opentitan/sw/device/silicon_creator/lib/cfi.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.847 | false | false | 10,175 | -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 csrng_common_vseq extends csrng_base_vseq;
`uvm_object_utils(csrng_common_vseq)
constraint num_trans_c {
num_trans inside {[1:2]};
}... | opentitan/hw/ip/csrng/dv/env/seq_lib/csrng_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 519 | -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_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(chip_env_cfg),
.COV_T(chip_env_cov)
);
`uvm_component_utils(chi... | opentitan/hw/top_darjeeling/dv/env/chip_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.208 | false | false | 1,129 | -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 rv_dm_rom_read_access_vseq extends rv_dm_base_vseq;
`uvm_object_utils(rv_dm_rom_read_access_vseq)
`uvm_object_new
task body();
strin... | opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_rom_read_access_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.125 | false | false | 977 | -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_FIRMWARE_LIB_CRYPTOLIB_SYM_H_
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_LIB_CRYP... | opentitan/sw/device/tests/penetrationtests/firmware/lib/cryptolib_sym.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.611 | false | false | 1,564 | -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_TESTS_TEST_WAFER_AUTH_SECRET_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_TESTS_TEST_WAFER_... | opentitan/sw/device/silicon_creator/manuf/tests/test_wafer_auth_secret.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.615 | false | false | 756 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// FIFO interface to SRAM interface
/*
This module accepts FIFO interface and converts it into SRAM write
interface. This module does not have ... | opentitan/hw/ip/spi_device/rtl/spid_fifo2sram_adapter.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.198 | false | false | 3,417 | -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_cfg extends dv_reactive_agent_cfg;
// enable monitor collection and checker
bit en_monitor = 1'b1;
bit en_monitor_checks = 1'b... | opentitan/hw/dv/sv/spi_agent/spi_agent_cfg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.181 | false | false | 9,872 | -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 designed to exercise all endpoint configurations and see that every type of endpoint
// encounters each of the possible transaction typ... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_endpoint_types_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.462 | false | false | 650 | -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 interface samples alerts to enable coverage of alerts triggered.
interface alerts_if (
input logic clk,
input logic rst_ni,
input logic... | opentitan/hw/top_darjeeling/dv/env/alerts_if.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.308 | false | false | 459 | -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_FREESTANDING_LIMITS_H_
#define OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_LIMITS_H_
#include <stdint.h>
/**
* ... | opentitan/sw/device/lib/base/freestanding/limits.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 1 | false | false | 2,017 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Escalation receiver driver
class esc_receiver_driver extends dv_base_driver#(esc_seq_item, esc_agent_cfg);
`uvm_component_utils(esc_receiver_d... | opentitan/hw/dv/sv/esc_agent/esc_receiver_driver.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.202 | false | false | 8,005 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.