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
//
// ROM wrapper with rvalid register
`include "prim_assert.sv"
module prim_rom_adv import prim_rom_pkg::*; #(
// Parameters passed on the ROM pr... | opentitan/hw/ip/prim/rtl/prim_rom_adv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.238 | false | false | 1,207 | -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_cfg #(parameter int HostDataWidth = 32,
parameter int DeviceDataWidth = HostDataWidth)
extends dv... | opentitan/hw/dv/sv/push_pull_agent/push_pull_agent_cfg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.256 | false | false | 8,573 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// MIO Pads connection
// -------------------
//
// In this test, the vseq should assert the designated PAD to wake the device
// up from the sleep/ ... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sleep_pin_wake_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.433 | false | false | 6,013 | -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/flash_ctrl.h"
#include "hw/top/flash_ctrl_regs.h"
#define INFO_PAGE_STRUCT_(name_, bank_, page_) ... | opentitan/sw/device/silicon_creator/lib/drivers/flash_ctrl_info_pages.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.438 | false | false | 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_RESCUE_MOCK_XMODEM_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_RESCUE_MOCK_XMODEM_H_
#include... | opentitan/sw/device/silicon_creator/lib/rescue/mock_xmodem.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.375 | false | false | 1,144 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/runtime/ibex.h"
#include "sw/device/lib/base/csr.h"
uint32_t ibex_mcause_read(void) {
uint32_t mtval;
CSR_READ(CSR_REG_... | opentitan/sw/device/lib/runtime/ibex.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.259 | false | false | 972 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// SHA3 padding logic
`include "prim_assert.sv"
module sha3pad
import sha3_pkg::*;
#(
parameter bit EnMasking = 0,
localparam int Share = ... | opentitan/hw/ip/kmac/rtl/sha3pad.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.366 | false | false | 35,020 | -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_timer_common_vseq extends rv_timer_base_vseq;
`uvm_object_utils(rv_timer_common_vseq)
`uvm_object_new
constraint num_trans_c {
nu... | opentitan/hw/ip/rv_timer/dv/env/seq_lib/rv_timer_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.231 | false | false | 439 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <assert.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/memory.h"
#include "s... | opentitan/sw/device/tests/i2c_host_override_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.202 | false | false | 4,538 | -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/usb_testutils.h"
#include "sw/device/lib/dif/dif_usbdev.h"
#include "sw/device/lib/testing/test_framework/check.h"
... | opentitan/sw/device/lib/testing/usb_testutils.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.238 | false | false | 18,795 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class rv_dm_sba_debug_disabled_vseq extends rv_dm_base_vseq;
`uvm_object_utils(rv_dm_sba_debug_disabled_vseq)
`uvm_object_new
// This override... | opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_sba_debug_disabled_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.238 | false | false | 768 | -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/context.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.824 | false | false | 1,202 | -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_ec_rst_l_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_sysrst_ctrl_ec_rst_l_vseq)
`uvm_object_new
local... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sysrst_ctrl_ec_rst_l_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.138 | false | false | 6,281 | -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/entropy.h"
#include "hw/top/dt/csrng.h"
#include "hw/top/dt/edn.h"
#include "hw/top/dt/entropy_src.h"
#includ... | opentitan/sw/device/lib/crypto/drivers/entropy.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.263 | false | false | 56,296 | -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 reads all CSRs and checks their values against the reset value provided in the RAL
// specification. Note that this does not suffici... | opentitan/hw/dv/sv/csr_utils/csr_hw_reset_seq.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.288 | false | false | 2,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
#define UJSON_SERDE_IMPL 1
#include "sw/device/lib/testing/json/mem.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/testing/test_f... | opentitan/sw/device/lib/testing/json/mem.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.17 | false | false | 1,695 | -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/api.h" // Generated
#include "hw/top/dt/rv_plic.h" // Generated
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/devic... | opentitan/sw/device/tests/plic_sw_irq_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.432 | false | false | 3,355 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Verifies that an NDM reset request after the CPU has been halted resets the original haltreq.
class chip_sw_rv_dm_ndm_reset_when_cpu_halted_vseq e... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_rv_dm_ndm_reset_when_cpu_halted_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.157 | false | false | 6,640 | -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: AES-based block encrypt module for CSRNG
//
module csrng_block_encrypt import csrng_pkg::*; #(
parameter aes_pkg::sbox_impl_e SB... | opentitan/hw/ip/csrng/rtl/csrng_block_encrypt.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.255 | false | false | 3,771 | -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 i3c_env extends cip_base_env #(
.CFG_T (i3c_env_cfg),
.COV_T (i3c_env_cov),
.VIRTUAL_SEQUENCER_T(i3c_virt... | opentitan/hw/ip/i3c/dv/env/i3c_env.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.094 | false | false | 1,559 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class i3c_env_cov extends cip_base_env_cov #(.CFG_T(i3c_env_cfg));
`uvm_component_utils(i3c_env_cov)
`uvm_component_new
endclass
| opentitan/hw/ip/i3c/dv/env/i3c_env_cov.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.429 | false | false | 306 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class aon_timer_common_vseq extends aon_timer_base_vseq;
`uvm_object_utils(aon_timer_common_vseq)
extern constraint num_trans_c;
extern funct... | opentitan/hw/ip/aon_timer/dv/env/seq_lib/aon_timer_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | false | false | 649 | -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_virtual_sequencer extends cip_base_virtual_sequencer #(
.CFG_T(soc_dbg_ctrl_env_cfg),
.COV_T(soc_dbg_ctrl_env_cov)
);
... | opentitan/hw/ip/soc_dbg_ctrl/dv/env/soc_dbg_ctrl_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 631 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// We are enclosing generic covergroups inside class so that we can
// take avoid tool limitation of not allowing arrays of covergroup
// Refer to Is... | opentitan/hw/top_englishbreakfast/ip_autogen/gpio/dv/env/gpio_env_cov.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.267 | false | false | 8,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
class aes_config_error_test extends aes_base_test;
`uvm_component_utils(aes_config_error_test)
`uvm_component_new
virtual function void buil... | opentitan/hw/ip/aes/dv/tests/aes_config_error_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.087 | false | false | 1,912 | -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_RRAM_CTRL_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_RRAM_CTRL_TESTUTILS_H_
#include <stdint.h>
#... | opentitan/sw/device/lib/testing/rram_ctrl_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.75 | false | false | 8,717 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/**
* Mock EDN end point that returns a fixed value after a fixed delay used for
* OTBN simulation purposes.
*/
module otbn_mock_edn
import edn_... | opentitan/hw/ip/otbn/dv/verilator/otbn_mock_edn.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.123 | false | false | 2,088 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Description:
// Power manager coverage bindings for multi bus input
module pwrmgr_cov_bind;
bind pwrmgr cip_lc_tx_cov_if u_lc_dft_en_mubi_cov... | opentitan/hw/top_darjeeling/ip_autogen/pwrmgr/dv/cov/pwrmgr_cov_bind.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.136 | false | false | 1,630 | -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_rv_core_ibex.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "sw/device/lib/base/memory.h"... | opentitan/sw/device/lib/dif/dif_rv_core_ibex.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.11 | false | false | 14,410 | -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 Transmit Module
//
module uart_tx (
input clk_i,
input rst_ni,
input tx_enab... | opentitan/hw/ip/uart/rtl/uart_tx.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.091 | false | false | 1,928 | -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"
/**
* 32b General Purpose Register File (GPRs) with integrity code detecting triple bit errors.
*
* This wraps two impl... | opentitan/hw/ip/otbn/rtl/otbn_rf_base.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.292 | false | false | 9,059 | -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 key_sideload_if #(
parameter type KEY_T = keymgr_dpe_pkg::hw_key_req_t
) (
input logic clk_i,
input logic rst_ni,
// This struct co... | opentitan/hw/dv/sv/key_sideload_agent/key_sideload_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.324 | false | false | 1,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
//
// Binds entropy_src functional coverage interface to the top-level entropy_src module.
module entropy_src_cov_bind;
bind entropy_src entropy_sr... | opentitan/hw/ip/entropy_src/dv/cov/entropy_src_cov_bind.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.625 | false | false | 367 | -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_SRAM_CTRL_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_SRAM_CTRL_TESTUTILS_H_
#include <stdbool.h>
#... | opentitan/sw/device/lib/testing/sram_ctrl_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.756 | false | false | 1,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
//
// Synchronous single-port SRAM model
`include "prim_assert.sv"
module prim_ram_1p import prim_ram_1p_pkg::*; #(
parameter int Width ... | opentitan/hw/ip/prim_generic/rtl/prim_ram_1p.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.328 | false | false | 3,289 | -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.h"
#include <errno.h>
#include <stdio.h>
#include <stdlib.h>
int aes_encrypt_block(const unsigned char *plain_text, const unsigned ch... | opentitan/hw/ip/aes/model/aes.c | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.227 | false | false | 26,866 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Description: sysrst_ctrl interrupt Module
//
module sysrst_ctrl_intr
import sysrst_ctrl_reg_pkg::*;
(
input clk_aon_i,
input rst_aon_ni,... | opentitan/hw/ip/sysrst_ctrl/rtl/sysrst_ctrl_intr.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.14 | false | false | 6,894 | -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_gpio_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_gpio_vseq)
bit [NUM_GPIOS-1:0] gpios_mask = {NUM_GPIOS{1'b1}};
... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_gpio_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.259 | false | false | 3,716 | -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_exit_test_unlocked_bootstrap_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_exit_test_unlocked_bootstrap_vseq)
`uvm_obj... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_exit_test_unlocked_bootstrap_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.284 | false | false | 3,203 | -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_manifest.h"
#include "sw/device/silicon_creator/lib/manifest.h"
#include "sw/device/silicon_crea... | opentitan/sw/device/silicon_creator/rom_ext/rom_ext_manifest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.471 | false | false | 714 | -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 config object for an agent
class dv_base_agent_cfg extends uvm_object;
// True if this is an active agent, so has a driver and sequen... | opentitan/hw/dv/sv/dv_base_agent/dv_base_agent_cfg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.463 | false | false | 2,226 | -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 general covergroup to track completion / alerts in an escalation interface. The status input to
// the sample() function should be an esc_handsh... | opentitan/hw/dv/sv/esc_agent/esc_agent_cov.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.205 | false | false | 1,732 | -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_keccak. Intended to be used with a formal tool.
module keccak_2share_fpv #(
parameter int Width = 1600
) (
input ... | opentitan/hw/ip/kmac/fpv/tb/keccak_2share_fpv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.057 | false | false | 5,339 | -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_RSTMGR_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_RSTMGR_TESTUTILS_H_
#include <stdint.h>
#includ... | opentitan/sw/device/lib/testing/rstmgr_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.748 | false | false | 4,189 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "adc_ctrl_base_vseq.sv"
`include "adc_ctrl_smoke_vseq.sv"
`include "adc_ctrl_common_vseq.sv"
`include "adc_ctrl_channel_ramp_vseq.sv"
`inclu... | opentitan/hw/ip/adc_ctrl/dv/env/seq_lib/adc_ctrl_vseq_list.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 730 | -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 chip_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import ast_pkg::AstRegsNum, ast_pkg::AstLastRegOffset;
import... | opentitan/hw/top_darjeeling/dv/env/chip_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.13 | false | false | 6,297 | -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_base_test extends cip_base_test #(
.CFG_T(entropy_src_env_cfg),
.ENV_T(entropy_src_env)
);
`uvm_component_utils(entrop... | opentitan/hw/ip/entropy_src/dv/tests/entropy_src_base_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 2,795 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_RSA_RSA_SIGNATURE_H_
#define OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_RSA_RSA_SIGNATURE_H_
#include <stddef.h... | opentitan/sw/device/lib/crypto/impl/rsa/rsa_signature.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.808 | false | false | 5,032 | -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 class
// ---------------------------------------------
class tl_agent_env ex... | opentitan/hw/dv/sv/tl_agent/dv/env/tl_agent_env.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.175 | false | false | 2,922 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class flash_ctrl_rand_ops_vseq extends flash_ctrl_rand_ops_base_vseq;
`uvm_object_utils(flash_ctrl_rand_ops_vseq)
`uvm_object_new
// Configur... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/seq_lib/flash_ctrl_rand_ops_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 1,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
/**
* Covergroups that are dependent on run-time parameters that may be available
* only in build_phase can be defined here
* Covergroups may also... | opentitan/hw/ip/aon_timer/dv/env/aon_timer_env_cov.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.185 | false | false | 5,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
// Contains code that is common to deep, normal, and random sleep for
// pwrmgr all_wake_ups test.
#include "sw/device/tests/pwrmgr_sleep_all_wake_u... | opentitan/sw/device/tests/pwrmgr_sleep_all_wake_ups_impl.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.242 | false | false | 18,137 | -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 requesnt randomly assert reset or wakeup 10 times
// each time sequence waits for 'ready for power down' log from c test
// then execute rese... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_repeat_reset_wkup_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.221 | false | false | 2,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
// Stall_priority_over_nak vseq
class usbdev_stall_priority_over_nak_vseq extends usbdev_base_vseq;
`uvm_object_utils(usbdev_stall_priority_over_na... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_stall_priority_over_nak_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.476 | false | false | 933 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// AES counter FSM for CTR mode
//
// This module contains the AES counter FSM operating on and producing the negated values of
// important contro... | opentitan/hw/ip/aes/rtl/aes_ctr_fsm_n.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.258 | false | false | 4,377 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A sequence to insert 1 or 2 bit flips to base register file read outputs.
// Time it so that only when a registers gets used, data corruption happ... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_rf_base_intg_err_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.293 | false | false | 5,593 | -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 sec_cm_pkg;
// dep packages
import uvm_pkg::*;
import prim_alert_pkg::*;
// macro includes
`include "uvm_macros.svh"
`include "d... | opentitan/hw/dv/sv/sec_cm/sec_cm_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.226 | false | false | 2,224 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Which of rram_ctrl_otp_key_if's two independent DUT key-request lines a
// rram_ctrl_otp_key_driver instance answers.
typedef enum bit {
RramCtr... | opentitan/hw/ip/rram_ctrl/dv/env/rram_ctrl_otp_key_driver.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.282 | false | false | 4,765 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// This module implements the ping mechanism. Once enabled, this module uses an
// LFSR-based PRNG to
//
// a) determine the next peripheral index ... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/rtl/alert_handler_ping_timer.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.427 | false | false | 17,492 | -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/api.h"
#include "hw/top/dt/rstmgr.h"
#include "sw/device/lib/base/abs_mmio.h"
#include "sw/device/lib/testing/test_framework/chec... | opentitan/sw/device/silicon_creator/rom/e2e/shutdown_alert/rom_e2e_shutdown_alert_config_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.366 | false | false | 1,626 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Synchronous dual-port SRAM register model
`include "prim_assert.sv"
module prim_ram_2p import prim_ram_2p_pkg::*; #(
parameter int Width ... | opentitan/hw/ip/prim_xilinx/rtl/prim_ram_2p.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.133 | false | false | 3,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
//
module tb;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import aes_env_pkg::*;
import aes_test_pkg::*;
// macro includes... | opentitan/hw/ip/aes/dv/tb/tb.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.131 | false | false | 3,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
class uart_item extends uvm_sequence_item;
// start and stop bits
rand bit start_bit = 1'b0;
rand bit stop_bit = 1'b1;
// byte of data sent... | opentitan/hw/dv/sv/uart_agent/uart_item.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.314 | false | false | 1,357 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// flash_ctrl_host_ctrl_arb Test
// Pseudo Code
// Initialise (All)
// Loop (2) {
// Initialize Flash Regions (Enable All MP Regions)
// Number ... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_host_ctrl_arb_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.292 | false | false | 9,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 <assert.h>
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/memory.h"
#include "sw... | opentitan/sw/device/tests/pmod/i2c_host_compass_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.238 | false | false | 5,099 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This is base class for on the fly mode test sequence.
// On the fly mode test checks data integrity per transaction (program or read),
// and does... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_otf_base_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.115 | false | false | 64,679 | -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_FREERTOSCONFIG_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_FREERTOSCONFIG_H_
//... | opentitan/sw/device/lib/testing/test_framework/FreeRTOSConfig.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 1 | false | false | 2,186 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// An parameterised interface that is bound into the top-level of rom_ctrl.
//
// The rom_ctrl module is parameterised and there's not really a conve... | opentitan/hw/ip/rom_ctrl/dv/tb/rom_ctrl_bound_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.338 | false | false | 7,240 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
/*
DMA 'memory-to-memory' smoke test
- Generic operation through Mailbox initiated via FW
- FW parses CMD object in Mailbox
- FW saniti... | opentitan/hw/ip/dma/dv/env/seq_lib/dma_memory_smoke_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.241 | false | false | 2,531 | -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 wakeup test randomly enables wakeups, info capture, and interrupts,
// and sends wakeups at random times.
class pwrmgr_wakeup_vseq extends pwr... | opentitan/hw/top_englishbreakfast/ip_autogen/pwrmgr/dv/env/seq_lib/pwrmgr_wakeup_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 4,671 | -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 ROM checker FSM module
//
// This is an FSM that controls the interaction with KMAC to calculate a digest from the ROM
// contents.
//
// T... | opentitan/hw/ip/rom_ctrl/rtl/rom_ctrl_fsm.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.427 | false | false | 14,037 | -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_common_vseq extends entropy_src_base_vseq;
`uvm_object_utils(entropy_src_common_vseq)
constraint num_trans_c {
num_trans i... | opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.176 | false | false | 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
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/crc32.h"
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/dif/... | opentitan/sw/device/silicon_creator/lib/drivers/rnd_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.171 | false | false | 10,861 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/silicon_creator/manuf/base/perso_tlv_data.h"
#include "sw/device/silicon_creator/lib/cert/cert.h"
#include "sw/device/silicon_cr... | opentitan/sw/device/silicon_creator/manuf/base/perso_tlv_data.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.101 | false | false | 14,039 | -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/otbn.h" // Generated
#include "hw/top/dt/rv_plic.h" // Generated
#include "sw/device/lib/dif/dif_otbn.h"
#include "sw/device... | opentitan/sw/device/tests/otbn_ecdsa_op_irq_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.443 | false | false | 13,367 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// SPI Device Flash/ Passthrough mode Command Parser
//
// This module decodes the incoming SPI Flash commands. Then activates proper
// downstream... | opentitan/hw/ip/spi_device/rtl/spi_cmdparse.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.263 | false | false | 14,387 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package tl_agent_test_pkg;
// dep packages
import uvm_pkg::*;
import dv_lib_pkg::*;
import tl_agent_env_pkg::*;
// macro includes
`inclu... | opentitan/hw/dv/sv/tl_agent/dv/tests/tl_agent_test_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.429 | false | false | 435 | -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_controller and used to help collect ISPR information for coverage.
interface otbn_controller_if
import otbn_pkg::*;
(
i... | opentitan/hw/ip/otbn/dv/uvm/env/otbn_controller_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.261 | false | false | 1,985 | -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_alert_rxtx_bind_fpv;
bind prim_alert_rxtx_tb
prim_alert_rxtx_assert_fpv prim_alert_rxtx_assert_fpv (
.clk_i,
.rst_n... | opentitan/hw/ip/prim/fpv/tb/prim_alert_rxtx_bind_fpv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | false | false | 632 | -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_clock_mux2 #(
parameter bit NoFpgaBufG = 1'b0 // this parameter serves no function in the generic model
) (
... | opentitan/hw/ip/prim_generic/rtl/prim_clock_mux2.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.423 | false | false | 1,052 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/crypto/include/config.h"
#include "sw/device/lib/crypto/include/cryptolib_build_info.h... | opentitan/sw/device/tests/crypto/rsa_4096_encryption_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.284 | false | false | 15,107 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <assert.h>
#include "hw/top/dt/api.h" // Generated
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "... | opentitan/sw/device/tests/pmod/spi_host_macronix128Mb_flash_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.244 | false | false | 3,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
#include <string.h>
#include "sw/device/lib/base/csr.h"
#include "sw/device/lib/crypto/impl/kats.h"
#include "sw/device/lib/crypto/include/config.h"... | opentitan/sw/device/tests/crypto/kats_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.381 | false | false | 1,741 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/macros.h"
#include "sw/device/silicon_creator/lib/base/boot_measurements.h"
// Boot measurements.
//
// This is placed ... | opentitan/sw/device/silicon_creator/lib/base/static_critical_boot_measurements.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.818 | false | false | 574 | -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_sender_driver extends alert_base_driver;
`uvm_component_utils(alert_sender_driver)
// An event that can be triggered (by functio... | opentitan/hw/dv/sv/alert_agent/alert_sender_driver.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.295 | false | false | 8,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
// RAL /////////////////////////////////////////////////////////////////////////
//
// The tb's RAL model, similar to most other OpenTitan testbenche... | opentitan/hw/ip/i2c/dv/env/i2c_reference_model.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.447 | false | false | 31,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
//
// This is a wrapper module that instantiates two prim_arbiter_tree modules.
// The reason for two is similar to modules such as prim_count/prim_lf... | opentitan/hw/ip/prim/rtl/prim_arbiter_tree_dup.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.205 | false | false | 4,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
`include "ac_range_check_base_vseq.sv"
`include "ac_range_check_smoke_vseq.sv"
`include "ac_range_check_smoke_racl_vseq.sv"
`include "ac_range_check_... | opentitan/hw/top_darjeeling/ip_autogen/ac_range_check/dv/env/seq_lib/ac_range_check_vseq_list.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 522 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Custom intr_test with the intent of hitting cross-coverage for intr_test/intr_state/enables
class aon_timer_custom_intr_vseq extends aon_timer_bas... | opentitan/hw/ip/aon_timer/dv/env/seq_lib/aon_timer_custom_intr_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.135 | false | false | 1,654 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// basic fifo_full test vseq
class i2c_host_fifo_full_vseq extends i2c_rx_tx_vseq;
`uvm_object_utils(i2c_host_fifo_full_vseq)
`uvm_object_new
... | opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_host_fifo_full_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.28 | false | false | 3,788 | -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_ping_timer_bind_fpv;
bind alert_handler_ping_timer
alert_handler_ping_timer_assert_fpv i_alert_handler_ping_timer_a... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/fpv/tb/alert_handler_ping_timer_bind_fpv.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | 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
// Transmit a stream of maximum length packets to the DUT, aiming to achieve maximal 'Bit Stuffing'
// throughout at least some of those OUT packets.... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_stream_len_max_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.455 | false | false | 2,433 | -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_ECDSA_DEV_KEY_0_ECDSA_P256_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_KEYS_FAKE_ECD... | opentitan/sw/device/silicon_creator/rom/keys/fake/ecdsa/dev_key_0_ecdsa_p256.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.583 | false | false | 844 | -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/sca/sha3_sca.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/base/status.h"
#i... | opentitan/sw/device/tests/penetrationtests/firmware/sca/sha3_sca.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.46 | false | false | 19,197 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// datapath_stress sequence will generate all message with size 1 and hmac_en
// thus will have 2 hashes (one for key, one for msg) with the shortest... | opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_datapath_stress_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.179 | false | false | 1,310 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Adaptive Proportion Symbol Test
//
// This module implements the Adaptive Proportion Symbol Test according to NIST SP 800-90B.
//
// For details... | opentitan/hw/ip/entropy_src/rtl/entropy_src_adaptps_ht.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 3,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_sw_power_idle_load_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_power_idle_load_vseq)
uint timeout_ns = 1;
localparam ... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_power_idle_load_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.171 | false | false | 1,494 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Created for AST domain separation - primary partition for Main Domain
//
//#####################################################################... | opentitan/hw/top_earlgrey/ip/ast/rtl/ast_part_primary.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.17 | false | false | 16,891 | -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_env extends cip_base_env #(
.CFG_T (entropy_src_env_cfg),
.COV_T (entropy_src_env_cov),
.VIRT... | opentitan/hw/ip/entropy_src/dv/env/entropy_src_env.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.225 | false | false | 7,256 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// smoke test with minimum threshold - helps close FCOV corner cases
class aon_timer_smoke_min_thold_vseq extends aon_timer_smoke_vseq;
`uvm_object... | opentitan/hw/ip/aon_timer/dv/env/seq_lib/aon_timer_smoke_min_thold_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.235 | false | false | 726 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.