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_ROM_KEYS_FAKE_SPX_DEV_KEY_0_SPX_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_KEYS_FAKE_SPX_DEV_KEY_... | opentitan/sw/device/silicon_creator/rom/keys/fake/spx/dev_key_0_spx.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.368 | false | false | 704 | -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 counter module that drives the ROM accesses from the checker.
//
// This module doesn't need state hardening: an attacker that glitches its b... | opentitan/hw/ip/rom_ctrl/rtl/rom_ctrl_counter.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.357 | false | false | 4,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
#include "sw/device/silicon_creator/rom_ext/rom_ext_verify.h"
#include <string.h>
#include "sw/device/silicon_creator/lib/base/boot_measurements.h"... | opentitan/sw/device/silicon_creator/rom_ext/rom_ext_verify.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.365 | false | false | 5,206 | -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 sends read traffic with error injection at the output of read_buffer,
// and checks the read response will trigger fatal_err.storage... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/seq_lib/flash_ctrl_rd_path_intg_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.195 | false | false | 3,615 | -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_PWM_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_PWM_H_
/**
* @file
* @brief <a href="/book/hw/ip/pwm/">PWM<... | opentitan/sw/device/lib/dif/dif_pwm.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.827 | false | false | 10,349 | -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_buf #(
// The following options allow a user to choose the type of buffer
// associated with this cell.
// NoFpgaBuf -> No fp... | opentitan/hw/ip/prim_xilinx/rtl/prim_clock_buf.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.324 | false | false | 1,121 | -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 hmac_scoreboard extends cip_base_scoreboard #(.CFG_T (hmac_env_cfg),
.RAL_T (hmac_reg_block... | opentitan/hw/ip/hmac/dv/env/hmac_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.192 | false | false | 50,234 | -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 gpio_bind;
bind gpio tlul_assert #(
.EndpointType("Device")
) tlul_assert_device (
.clk_i,
.rst_ni,
.h2d (tl_i),
.d2... | opentitan/hw/top_earlgrey/ip_autogen/gpio/dv/sva/gpio_bind.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.158 | false | false | 466 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Prevent Vivado from performing optimizations on/across this module.
(* DONT_TOUCH = "yes" *)
module prim_buf #(
parameter int Width = 1
) (
in... | opentitan/hw/ip/prim_xilinx/rtl/prim_buf.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.308 | false | false | 413 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "aes_example.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "aes.h"
#include "crypto.h"
#defin... | opentitan/hw/ip/aes/model/aes_example.c | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.218 | false | false | 9,060 | -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 entropy_src_xht_sequencer extends dv_reactive_sequencer #(
.ITEM_T (entropy_src_xht_item),
.CFG_T (entropy_src_xht_agent_cfg)
);
`uv... | opentitan/hw/dv/sv/entropy_src_xht_agent/entropy_src_xht_sequencer.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.3 | false | false | 396 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_rom_ctrl.h"
#include <stdint.h>
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_base.h"
#incl... | opentitan/sw/device/lib/dif/dif_rom_ctrl.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.188 | false | false | 2,130 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_IP_OTBN_PRE_DV_OTBN_TB_UTILS_H_
#define OPENTITAN_HW_IP_OTBN_PRE_DV_OTBN_TB_UTILS_H_
// Shared utilities for OTBN Verilator tes... | opentitan/hw/ip/otbn/pre_dv/otbn_tb_utils.h | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.243 | false | false | 2,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
`include "prim_assert.sv"
module prim_flop #(
parameter int Width = 1,
parameter logic [Width-1:0] ResetValue = 0
) (
input... | opentitan/hw/ip/prim_asap7/rtl/prim_flop.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.086 | false | false | 1,064 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// The sequencer used by kmac_app_device_agent, a reactive agent.
//
// The request fifo (m_req_fifo) is given items by (kmac_app_device_driver) when... | opentitan/hw/dv/sv/kmac_app_agent/kmac_app_device_sequencer.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.474 | false | false | 1,055 | -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/hardened.h"
#include "sw/device/lib/base/status.h"
#include "sw/device/lib/run... | opentitan/sw/device/lib/base/hardened_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.246 | false | false | 4,543 | -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 sysrst_ctrl_common_vseq extends sysrst_ctrl_base_vseq;
`uvm_object_utils(sysrst_ctrl_common_vseq)
constraint num_trans_c {num_trans inside... | opentitan/hw/ip/sysrst_ctrl/dv/env/seq_lib/sysrst_ctrl_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 646 | -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 "hw/top/dt/alert_handler.h"
#include "hw/top/dt/rv_plic.h"... | opentitan/sw/device/tests/alert_handler_ping_timeout_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.345 | false | false | 7,371 | -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 alert_handler_esc_timer_bind_fpv;
bind alert_handler_esc_timer
alert_handler_esc_timer_assert_fpv i_alert_handler_esc_timer_asser... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/fpv/tb/alert_handler_esc_timer_bind_fpv.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | false | false | 670 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Ascon Permutation testbench
module prim_ascon_round_tb (
input logic clk_i,
input logic rst_ni,
output logic test_done_o,
output log... | opentitan/hw/ip/prim/pre_dv/prim_ascon/prim_ascon_round_tb/rtl/prim_ascon_round_tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.11 | false | false | 2,307 | -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 ac_range_check_env extends cip_base_env #(
.CFG_T (ac_range_check_env_cfg),
.COV_T (ac_range_check_env_cov),
... | opentitan/hw/top_darjeeling/ip_autogen/ac_range_check/dv/env/ac_range_check_env.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.13 | false | false | 2,505 | -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_scoreboard extends cip_base_scoreboard #(
.CFG_T(rram_ctrl_env_cfg),
.RAL_T(rram_ctrl_core_reg_block),
.COV_T(rram_ctrl_env_cov... | opentitan/hw/ip/rram_ctrl/dv/env/rram_ctrl_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.184 | false | false | 7,413 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Extend the output with the msb of the input
`include "prim_assert.sv"
module prim_msb_extend # (
parameter int InWidth = 2,
parameter int ... | opentitan/hw/ip/prim/rtl/prim_msb_extend.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.238 | 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
// TL-UL wrapper of the TRVK revocation filter (`cheriot_trvk_core`).
// Assumes a tagged capability load always arrives downstream as exactly two co... | opentitan/hw/ip/cheriot_mem_sys/rtl/cheriot_trvk_tlul.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.318 | false | false | 6,647 | -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 aes_core.sv.
class aes_core_fi_vseq extends aes_base_vseq;
`uvm_object_utils(aes_core_... | opentitan/hw/ip/aes/dv/env/seq_lib/aes_core_fi_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.226 | false | false | 5,392 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//wrapper module to avoid having to know/write out the path from tb to bind
module fi_control_fsm_wrapper
import uvm_pkg::*;
import aes_env_pk... | opentitan/hw/ip/aes/dv/err_injection_if/fi_control_fsm_wrapper.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 681 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Scrambling key derivation module for OTP.
//
`include "prim_assert.sv"
module otp_ctrl_kdi
import otp_ctrl_pkg::*;
import otp_ctrl_reg_pkg... | opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/rtl/otp_ctrl_kdi.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.274 | false | false | 22,147 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class kmac_test_vectors_sha3_vseq extends kmac_test_vectors_base_vseq;
`uvm_object_utils(kmac_test_vectors_sha3_vseq)
`uvm_object_new
virtual... | opentitan/hw/ip/kmac/dv/env/seq_lib/kmac_test_vectors_sha3_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.07 | false | false | 1,447 | -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 rstmgr_base_vseq extends cip_base_vseq #(
.RAL_T (rstmgr_reg_block),
.CFG_T (rstmgr_env_cfg),
.COV_T ... | opentitan/hw/top_englishbreakfast/ip_autogen/rstmgr/dv/env/seq_lib/rstmgr_base_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.121 | false | false | 22,421 | -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_KMAC_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_KMAC_H_
/**
* This driver i... | opentitan/sw/device/silicon_creator/lib/drivers/kmac.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.867 | false | false | 6,315 | -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_mbx.h"
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/base/... | opentitan/sw/device/lib/dif/dif_mbx.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.179 | false | false | 4,876 | -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 class implements functionality of a simple FIFO
// with a base address, maximum allowed size and enable
class dma_handshake_mode_fifo #(int A... | opentitan/hw/ip/dma/dv/env/dma_handshake_mode_fifo.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.288 | false | false | 6,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
#include "sw/device/silicon_creator/lib/drivers/pinmux.h"
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/base/csr.h"
#include "sw/... | opentitan/sw/device/silicon_creator/lib/drivers/pinmux.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.391 | false | false | 7,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
package uart_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import csr_utils_pkg::*;
import tl_ag... | opentitan/hw/ip/uart/dv/env/uart_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.17 | false | false | 4,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
//
// Description: entropy_src top level wrapper file
`include "prim_assert.sv"
module entropy_src
import entropy_src_pkg::*;
import entropy_sr... | opentitan/hw/ip/entropy_src/rtl/entropy_src.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.127 | false | false | 19,651 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A sequence that runs sequences one after the other.
class racl_ctrl_stress_all_vseq extends racl_ctrl_base_vseq;
`uvm_object_utils(racl_ctrl_st... | opentitan/hw/ip/racl_ctrl/dv/env/seq_lib/racl_ctrl_stress_all_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 1,810 | -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 module implements a binary tree to find the maximal entry. the solution
// has O(N) area and O(log(N)) delay complexity, and thus scales wel... | opentitan/hw/ip/prim/rtl/prim_max_tree.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.381 | false | false | 6,204 | -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 otp_ctrl seqs (except below seqs) in one seq to run sequentially.
// Exception: - csr seq: requires scb to be disabled
// -... | opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/dv/env/seq_lib/otp_ctrl_stress_all_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.313 | false | false | 3,449 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`ifdef DMA_ENV_COV_32B_ADDR_BINS
`dv_fatal("Did not expect DMA_ENV_COV_32B_ADDR_BINS to be defined already!")
`else
`define DMA_ENV_COV_32B_ADDR_... | opentitan/hw/ip/dma/dv/env/dma_env_cov.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.059 | false | false | 8,976 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`define OTP_CLK_CONSTRAINT(FREQ_) \
FREQ_ dist { \
6 :/ 2, \
[24:25] :/ 2, \
[26:47] :/ 1, \
[48:50] :/ 2, \
[51:95] :/ 1... | opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/dv/env/otp_ctrl_env_cfg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.179 | false | false | 3,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
// interface : gpio_straps_if
`ifndef GPIO_STRAPS_IF_SV
`define GPIO_STRAPS_IF_SV
import gpio_pkg::*;
// Interface definition
interface gpio_straps_... | opentitan/hw/top_darjeeling/ip_autogen/gpio/dv/interfaces/gpio_straps_if.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 663 | -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 send the alert pins to the receiver
class alert_sender_seq extends alert_sender_base_seq;
`uvm_object_utils(alert_sender_seq)
... | opentitan/hw/dv/sv/alert_agent/seq_lib/alert_sender_seq.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 619 | -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 class provides knobs to set the weights for various seq random variables.
class flash_ctrl_seq_cfg extends uvm_object;
`uvm_object_utils(fl... | opentitan/hw/ip_templates/flash_ctrl/dv/env/flash_ctrl_seq_cfg.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.252 | false | false | 10,431 | -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 otbn_top_sim (
input IO_CLK,
input IO_RST_N
);
import otbn_pkg::*;
import edn_pkg::*;
import keymgr_dpe_pkg::wide_hw_key_req_t;
/... | opentitan/hw/ip/otbn/dv/verilator/otbn_top_sim.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.087 | false | false | 20,393 | -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_LIB_UTIL_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_LIB_UTIL_H_
#include <stdint.h>
#in... | opentitan/sw/device/silicon_creator/manuf/lib/util.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.843 | false | false | 2,217 | -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 edn seqs (except below seqs) in one seq to run sequentially
// 1. csr seq, which requires scb to be disabled
class edn_stress_all_vseq... | opentitan/hw/ip/edn/dv/env/seq_lib/edn_stress_all_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.212 | false | false | 1,398 | -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 will write a random values to combo detect registers
// and check for the combo detect interrupt.
class sysrst_ctrl_combo_detect_vse... | opentitan/hw/ip/sysrst_ctrl/dv/env/seq_lib/sysrst_ctrl_combo_detect_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 12,909 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Description: edn csrng application request state machine module
//
// does hardware-based csrng app interface command requests
`include "prim... | opentitan/hw/ip/edn/rtl/edn_main_sm.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.083 | false | false | 8,282 | -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/status.h"
#include "sw/device/lib/runtime/log.h"
#include "sw/device/lib/testing/json/command.h"
#include "sw/device/lib... | opentitan/sw/device/tests/spi_device_ujson_console_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | false | false | 2,689 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`define KMAC_APP_VALID_TRANS(mode) \
(cfg.m_kmac_app_agent_cfg[``mode``].vif.mon_cb.req_valid && \
cfg.m_kmac_app_agent_cfg[``mode``].vif.mo... | opentitan/hw/ip/kmac/dv/env/kmac_scoreboard.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.227 | false | false | 75,065 | -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 alert_ping_with_lpg_cg_wrap;
covergroup alert_ping_with_lpg_cg(string name) with function sample (bit lpg_en);
option.per_instance = 1;
... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/dv/env/alert_handler_env_cov.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.045 | false | false | 6,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
class jtag_riscv_monitor extends dv_base_monitor #(
.ITEM_T(jtag_riscv_item),
.CFG_T (jtag_riscv_agent_cfg),
.COV_T (jtag_riscv_agent_cov)
);
... | opentitan/hw/dv/sv/jtag_riscv_agent/jtag_riscv_monitor.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | false | false | 3,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
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_aon_timer.h"
#include "sw/device/lib/dif/... | opentitan/sw/device/tests/pwrmgr_lowpower_cancel_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.158 | false | false | 5,590 | -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_JSON_COMMAND_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_COMMAND_H_
#include "sw/device/lib/ujson/ujson_d... | opentitan/sw/device/lib/testing/json/command.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.286 | false | false | 1,609 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Implements functional coverage for LC_CTRL FSM
// Need this or the "->" causes a lint syntax error
// verilog_syntax: parse-as-module-body
inte... | opentitan/hw/ip/lc_ctrl/dv/cov/lc_ctrl_fsm_cov_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.105 | false | false | 3,830 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_OWNER_BLOCK_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_OWNER_BLOCK_H_
#i... | opentitan/sw/device/silicon_creator/lib/ownership/owner_block.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.784 | false | false | 7,701 | -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_otf_item extends uvm_object;
`uvm_object_utils(flash_otf_item)
flash_op_t cmd;
data_q_t dq;
fdata_q_t raw_fq, fq;
bit[flash_... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/flash_otf_item.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.101 | false | false | 10,487 | -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_ROM_EPMP_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_ROM_EPMP_H_
#include <stdint.h>
#includ... | opentitan/sw/device/silicon_creator/rom/rom_epmp.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.918 | false | false | 2,943 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Description:
// This test asserts glitch to power_reset and see
// dut can recover gracefully.
class pwrmgr_glitch_vseq extends pwrmgr_base_vseq;
... | opentitan/hw/top_earlgrey/ip_autogen/pwrmgr/dv/env/seq_lib/pwrmgr_glitch_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.171 | false | false | 1,411 | -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 package that models a RISC-V JTAG debugger.
//
// These utilities are semi-compliant with RISCV debug specification 0.13.2:
// https://github.co... | opentitan/hw/dv/sv/jtag_dmi_agent/jtag_rv_debugger_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.208 | false | false | 6,895 | -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 <stdio.h>
#include <stdlib.h>
#define TESTING_CRC
#include "usb_crc.c"
unsigned char buf[1024];
int main(int argc, char *argv[]) {
int ... | opentitan/hw/dv/dpi/usbdpi/test_crc.c | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.22 | false | false | 1,113 | -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/kmac_kdf.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/base/hardened_memory.h"
#include... | opentitan/sw/device/lib/crypto/impl/kmac_kdf.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.366 | false | false | 8,030 | -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_RV_PLIC_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_RV_PLIC_H_
/**
* @file
* @brief <a href="/book/hw/ip/rv... | opentitan/sw/device/lib/dif/dif_rv_plic.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.805 | false | false | 9,704 | -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 csr_utils_pkg;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import dv_base_reg_pkg::*;
export dv_base_reg_pkg::csr_fi... | opentitan/hw/dv/sv/csr_utils/csr_utils_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.132 | false | false | 39,111 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Report catcher/demoter
class dv_report_catcher extends uvm_report_catcher;
// Stores a new severity indexed by the ID and
// the regular expre... | opentitan/hw/dv/sv/dv_utils/dv_report_catcher.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.3 | false | false | 1,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
// One chip level interface to rule them all, and in the IOs, bind them...
//
// The top_darjeeling SoC provides a bunch of fixed-function and muxed I... | opentitan/hw/top_darjeeling/dv/env/chip_if.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.229 | false | false | 43,317 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Power Manager CDC handling
//
`include "prim_assert.sv"
module pwrmgr_cdc import pwrmgr_pkg::*; import pwrmgr_reg_pkg::*;
(
// Clocks and re... | opentitan/hw/top_earlgrey/ip_autogen/pwrmgr/rtl/pwrmgr_cdc.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.115 | false | false | 8,120 | -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 scoreboard checks the jitter_an_o output, and processes CSR checks.
// It also samples most functional coverage groups.
class clkmgr_scoreboar... | opentitan/hw/top_englishbreakfast/ip_autogen/clkmgr/dv/env/clkmgr_scoreboard.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.057 | false | false | 14,449 | -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 base agent class
//
// CFG_T: The type of the configuration object. This should be a subclass of
// dv_base_agent_c... | opentitan/hw/dv/sv/dv_base_agent/dv_base_agent.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.306 | false | false | 3,206 | -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_dmi_item extends uvm_sequence_item;
// JTAG DMI accesses are driven / monitored by writing to JTAG DTM register called DMI. Please see
... | opentitan/hw/dv/sv/jtag_dmi_agent/jtag_dmi_item.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.444 | false | false | 1,380 | -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/hmac.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/base/hardened_memory.h"
#include "sw... | opentitan/sw/device/lib/crypto/impl/hmac.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.227 | false | false | 24,970 | -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/uart.h"
#include "sw/device/lib/dif/dif_uart.h"
#include "sw/device/lib/testing/test_framework/check.h"
#include "sw/device/lib/t... | opentitan/sw/device/tests/ottf_alert_catch_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.378 | false | false | 2,156 | -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/abs_mmio.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/testing/test_framewor... | opentitan/sw/device/silicon_creator/rom/e2e/sram/sram_renew_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.393 | false | false | 1,085 | -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/base/mmio.h"
#include "sw/device/lib/dif/dif_entropy_src.h"
#include "sw/device/lib/ru... | opentitan/sw/device/tests/entropy_src_ast_rng_req_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | false | false | 2,219 | -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 SETUP RX test
//
// Test basic reception of SETUP token packet and associated DATA packet from
// the USB host.
//
// 1. Check for the prese... | opentitan/sw/device/tests/usbdev_setuprx_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.36 | false | false | 8,513 | -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_host_driver extends csrng_driver;
`uvm_component_utils(csrng_host_driver)
`uvm_component_new
// Break down the data and send it to... | opentitan/hw/dv/sv/csrng_agent/csrng_host_driver.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.348 | false | false | 854 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class uart_base_test extends cip_base_test #(.ENV_T(uart_env), .CFG_T(uart_env_cfg));
`uvm_component_utils(uart_base_test)
`uvm_component_new
... | opentitan/hw/ip/uart/dv/tests/uart_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 527 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_aon_timer.h"
#include "sw/device/lib/di... | opentitan/sw/device/tests/sim_dv/pwrmgr_b2b_sleep_reset_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.34 | false | false | 6,656 | -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 pwrmgr_env extends cip_base_env #(
.CFG_T (pwrmgr_env_cfg),
.COV_T (pwrmgr_env_cov),
.VIRTUAL_SEQUENCER_T(pwrmg... | opentitan/hw/ip_templates/pwrmgr/dv/env/pwrmgr_env.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.06 | false | false | 2,181 | -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 corresponding C file to a `ujson` header file should simply defi... | opentitan/sw/device/lib/ujson/example.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 1 | false | false | 598 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "aes_base_vseq.sv"
`include "aes_wake_up_vseq.sv"
`include "aes_nist_vectors_vseq.sv"
`include "aes_nist_vectors_gcm_vseq.sv"
`include "aes_... | opentitan/hw/ip/aes/dv/env/seq_lib/aes_vseq_list.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.136 | false | false | 797 | -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"
// Prevent Vivado from performing optimizations on/across this module.
(* DONT_TOUCH = "yes" *)
module prim_and2 #(
para... | opentitan/hw/ip/prim_xilinx/rtl/prim_and2.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.267 | false | false | 478 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Derived from code in the SPHINCS+ reference implementation (CC0 license):
// https://github.com/sphincs/sphincsplus/blob/ed15dd78658f63288c7492c... | opentitan/sw/device/silicon_creator/lib/sigverify/sphincsplus/address.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.312 | false | false | 3,561 | -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_lfsr, sweeps through all implementations
// within a certain range to check whether they are max length.
module prim_... | opentitan/hw/ip/prim/dv/prim_lfsr/prim_lfsr_tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.208 | false | false | 12,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
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_ROM_ISRS_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_ROM_ISRS_H_
#include <stdnoreturn.h>
#i... | opentitan/sw/device/silicon_creator/rom/rom_isrs.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.844 | false | false | 1,115 | -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_MACROS_H_
#define OPENTITAN_SW_DEVICE_LIB_BASE_MACROS_H_
// This file may be used in .S files, in which case st... | opentitan/sw/device/lib/base/macros.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.717 | false | false | 30,053 | -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 rng_if ();
logic clk;
logic rst_n;
// interface pins
logic enable;
logic entropy_ok;
logic [3:0] entropy;
endinterface
| opentitan/hw/dv/sv/rng_agent/rng_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.364 | false | false | 315 | -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_RSA_KEY_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_RSA_KEY_H_
#include <... | opentitan/sw/device/silicon_creator/lib/sigverify/rsa_key.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.721 | false | false | 2,167 | -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: usb_osc
// *Module Description: USB Clock Oscillator
//######... | opentitan/hw/top_earlgrey/ip/ast/rtl/usb_osc.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.253 | false | false | 5,385 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class dma_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(dma_env_cfg),
.COV_T(dma_env_cov)
);
tl_sequencer tl_sequencer_dma_ho... | opentitan/hw/ip/dma/dv/env/dma_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 478 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Verify pinmux can select the life_cycle, RISC-V, and DFT taps after reset.
// Verify that in TEST_UNLOCKED* and RMA states, pinmux can switch betw... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_tap_straps_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.138 | false | false | 11,456 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Description: UART Receive Module
//
module uart_rx (
input clk_i,
input rst_ni,
input rx_enable,
input ... | opentitan/hw/ip/uart/rtl/uart_rx.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.109 | false | false | 2,968 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/**
* Utility functions
*/
package prim_util_pkg;
/**
* Math function: Number of bits needed to address |value| items.
*
* ... | opentitan/hw/ip/prim/rtl/prim_util_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.813 | false | false | 3,635 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SYSRST_CTRL_H_
#define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_SYSRST_CTRL_H_
/**
* @file
* @brief <a href="/book/... | opentitan/sw/device/lib/dif/dif_sysrst_ctrl.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.739 | false | false | 28,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
// Test entropy_src interrupts
class entropy_src_intr_vseq extends entropy_src_base_vseq;
`uvm_object_utils(entropy_src_intr_vseq)
`uvm_object_... | opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_intr_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.297 | false | false | 18,999 | -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_inputs_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_sysrst_ctrl_inputs_vseq)
`uvm_object_new
localpara... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sysrst_ctrl_inputs_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.085 | false | false | 2,658 | -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 otbn_bind;
bind otbn tlul_assert #(
.EndpointType("Device")
) tlul_checker (
.clk_i (clk_i),
.rst_ni (rst_ni),
.h2d (... | opentitan/hw/ip/otbn/dv/uvm/sva/otbn_bind.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.091 | false | false | 960 | -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_CMAC_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_CMAC_H_
#include "datatypes.h"
/**
* @file
... | opentitan/sw/device/lib/crypto/include/cmac.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.826 | false | false | 5,348 | -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_env_cov extends cip_base_env_cov #(.CFG_T(usbdev_env_cfg));
`uvm_component_utils(usbdev_env_cov)
// All of the Packet IDentifiers t... | opentitan/hw/ip/usbdev/dv/env/usbdev_env_cov.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.158 | false | false | 9,006 | -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_MLDSA_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_MLDSA_H_
#include "datatypes.h"
/**
* @file... | opentitan/sw/device/lib/crypto/include/mldsa.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.74 | false | false | 17,180 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.