text stringlengths 183 150k | path stringlengths 15 112 | bucket stringclasses 4
values | source stringclasses 14
values | group stringclasses 121
values | spdx stringclasses 11
values | repo_license stringclasses 11
values | commit stringclasses 13
values | lang stringclasses 4
values | def_heavy bool 1
class | comment_ratio float64 0 1 | restricted bool 2
classes | fresh bool 1
class | n_bytes int64 183 150k | n_tokens int64 -1 -1 |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_alert_handler_shorten_ping_wait_cycle_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_alert_handler_shorten_ping_wait_cycle... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_alert_handler_shorten_ping_wait_cycle_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.556 | false | false | 1,035 | -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 reduced round data path
// This module is useful for formal masking verification using e.g. Alma.
// For details, see hw/ip/aes/pre_sca/alma/R... | opentitan/hw/ip/aes/rtl/aes_reduced_round.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.171 | false | false | 2,669 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Primitive block for generating CIP interrupts in peripherals.
//
// This block generates both the level-triggered wired interrupt signal intr_o ... | opentitan/hw/ip/prim/rtl/prim_intr_hw.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.433 | false | false | 4,910 | -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 overall clock manager
`include "prim_assert.sv"
module clkmgr
import clkmgr_pkg::*;
import clkmgr_reg_pkg::*;
import lc_ctr... | opentitan/hw/top_englishbreakfast/ip_autogen/clkmgr/rtl/clkmgr.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.162 | false | false | 28,534 | -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 rv_timer import rv_timer_reg_pkg::*;
#(
parameter logic [NumAlerts-1:0] AlertAsyncOn =... | opentitan/hw/ip/rv_timer/rtl/rv_timer.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.131 | false | false | 5,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
#include "sw/device/lib/base/multibits.h"
#include "sw/device/lib/dif/dif_lc_ctrl.h"
#include "sw/device/lib/dif/dif_rv_dm.h"
#include "sw/device/lib... | opentitan/sw/device/tests/rv_dm_delayed_enable.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.377 | false | false | 2,400 | -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"
OT_WEAK void coverage_transport_init(void) {}
OT_WEAK void coverage_init(void) {}
OT_WEAK void coverage_repor... | opentitan/sw/device/lib/coverage/empty_runtime.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.5 | false | false | 373 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Assertions for rv_timer TB. These properties tackle timer_core
// Intended to be used with a formal tool.
module rv_timer_core_assert_fpv # (
... | opentitan/hw/ip/rv_timer/fpv/vip/rv_timer_core_assert_fpv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.318 | false | false | 692 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// AES Canright SBox #4
//
// For details, see the technical report: Canright, "A very compact Rijndael S-box"
// available at https://hdl.handle.n... | opentitan/hw/ip/aes/rtl/aes_sbox_canright.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.356 | false | false | 2,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
// test TX override feature through uart.OVRD and check the pin
class uart_tx_ovrd_vseq extends uart_smoke_vseq;
`uvm_object_utils(uart_tx_ovrd_vse... | opentitan/hw/ip/uart/dv/env/seq_lib/uart_tx_ovrd_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.265 | false | false | 1,408 | -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 mem_model #(int AddrWidth = bus_params_pkg::BUS_AW,
int DataWidth = bus_params_pkg::BUS_DW) extends uvm_object;
localparam... | opentitan/hw/dv/sv/mem_model/mem_model.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.06 | false | false | 3,328 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// test reg uart.VAL
// 1. find the center of oversampled clock
// 2. drive 16 bits on RX pin based on 16x oversampled clk, then check the reg value
... | opentitan/hw/ip/uart/dv/env/seq_lib/uart_rx_oversample_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.32 | false | false | 4,735 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// class : gpio_full_random_vseq
// This gpio random test sequence performs random no. of iteration such that
// each iteration will do either of the... | opentitan/hw/top_earlgrey/ip_autogen/gpio/dv/env/seq_lib/gpio_full_random_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.218 | false | false | 11,597 | -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_reset test randomly enables wakeups and resets, info capture, and interrupts,
// and sends wakeups and resets in close temporal proximi... | opentitan/hw/top_darjeeling/ip_autogen/pwrmgr/dv/env/seq_lib/pwrmgr_wakeup_reset_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.256 | false | false | 5,660 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_LIB_BASE_MOCK_CRC32_H_
#define OPENTITAN_SW_DEVICE_LIB_BASE_MOCK_CRC32_H_
#include "sw/device/lib/base/crc32.h"
#include... | opentitan/sw/device/lib/base/mock_crc32.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.44 | false | false | 989 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class i2c_sequencer extends dv_base_sequencer#(i2c_item, i2c_agent_cfg);
`uvm_component_utils(i2c_sequencer)
`uvm_component_new
// These ports... | opentitan/hw/dv/sv/i2c_agent/i2c_sequencer.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.421 | false | false | 1,163 | -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 Controller generic package.
// This has no top-specific items so it is okay to use by generic IPs.
package flash_ctrl_pkg;
// Parameter... | opentitan/hw/ip/flash_ctrl/rtl/flash_ctrl_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.32 | false | false | 935 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Sequence to test DMA enabled memory region lock
//
// Make sure DMA enabled memory region registers won't get updated once locked
// and can only ... | opentitan/hw/ip/dma/dv/env/seq_lib/dma_memory_region_lock_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.342 | false | false | 7,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
#include "hw/top/dt/aes.h"
#include "hw/top/dt/alert_handler.h"
#include "hw/top/dt/csrng.h"
#include "hw/top/dt/edn.h"
#include "hw/top/dt/entropy_s... | opentitan/sw/device/tests/entropy_src_edn_reqs_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.349 | false | false | 11,158 | -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_inv #(
param... | opentitan/hw/ip/prim_xilinx_ultrascale/rtl/prim_inv.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.286 | false | false | 448 | -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/test_framework/ottf_main.h"
#include "s... | opentitan/sw/device/silicon_creator/rom_ext/e2e/ownership/flash_contents.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.333 | 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 chip_sw_rram_ctrl_lc_rw_en_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_rram_ctrl_lc_rw_en_vseq)
`uvm_object_new
localpara... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_rram_ctrl_lc_rw_en_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.179 | false | false | 2,926 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/dif/dif_rv_timer.h"
#include <assert.h>
#include <stddef.h>
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/li... | opentitan/sw/device/lib/dif/dif_rv_timer.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.238 | false | false | 8,420 | -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 pinmux_strap_sampling
import pinmux_pkg::*;
import pinmux_reg_pkg::*;
import prim_pad_wrapper_pkg::*;
import lc_ctrl_pkg::*;
#(
// T... | opentitan/hw/top_earlgrey/ip_autogen/pinmux/rtl/pinmux_strap_sampling.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.235 | false | false | 20,173 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Tests the POR stretching functionality: it directly controls the por_n_i input at the start of
// the test, and randomly glitches it for a few cyc... | opentitan/hw/top_englishbreakfast/ip_autogen/rstmgr/dv/env/seq_lib/rstmgr_por_stretcher_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.333 | false | false | 2,017 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
interface spi_passthrough_if
(
input rst_n
);
bit passthrough_en;
bit sck;
bit sck_en;
bit csb;
bit csb_en... | opentitan/hw/ip/spi_host/dv/env/spi_passthrough_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.13 | 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 chip_sw_base_vseq extends chip_base_vseq;
`uvm_object_utils(chip_sw_base_vseq)
// Default only iterate through SW code once.
constraint ... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_base_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.169 | false | false | 55,967 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Controller Core state machine for Command/Response processing and handling of bus events
// including In-Band Interrupts.
module i3c_controller... | opentitan/hw/ip/i3c/rtl/i3c_controller_fsm.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.358 | false | false | 74,095 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// This is the pinmux portion that has to be instantiated on the chip level.
// The module instantiates the technology dependent pads, and connects... | opentitan/hw/top_darjeeling/rtl/padring.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.217 | false | false | 4,231 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package rstmgr_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import tl_age... | opentitan/hw/top_earlgrey/ip_autogen/rstmgr/dv/env/rstmgr_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.159 | false | false | 2,739 | -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 kmac_cov_if
(
input logic sw_cmd_process,
input bit [5:0] keccak_st,
input bit [3:0] msgfifo_depth,
input bit msgfi... | opentitan/hw/ip/kmac/dv/cov/kmac_cov_if.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.091 | false | false | 1,092 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// A sequence which injects a fatal error whilst OTBN is paused or gets paused by a WFI
// instruction. The injection either happens whilst paused or... | opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_wfi_sec_wipe_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.29 | false | false | 5,914 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class keymgr_dpe_smoke_vseq extends keymgr_dpe_base_vseq;
`uvm_object_utils(keymgr_dpe_smoke_vseq)
`uvm_object_new
constraint gen_operation_c ... | opentitan/hw/ip/keymgr_dpe/dv/env/seq_lib/keymgr_dpe_smoke_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.409 | false | false | 7,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
#include <pthread.h>
#include <time.h>
#include "sw/device/silicon_creator/lib/drivers/ibex.h"
// These constants are used by the pwrmgr_cdc_sync f... | opentitan/sw/device/silicon_creator/lib/drivers/ibex_host.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.5 | false | false | 1,221 | -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/nonce.h"
#include "sw/device/silicon_creator/lib/drivers/rnd.h"
void nonce_new(nonce_t *nonce) {
nonce->v... | opentitan/sw/device/silicon_creator/lib/nonce.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.5 | false | false | 442 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package rram_ctrl_test_pkg;
// Dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import rram_ctrl_env_pkg::*;
// Macro includes
`i... | opentitan/hw/ip/rram_ctrl/dv/tests/rram_ctrl_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.5 | false | false | 495 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_random_power_glitch_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_random_power_glitch_vseq)
`uvm_object_new
// NumR... | opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_random_power_glitch_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.163 | false | false | 4,881 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Binds FLASH_CTRL functional coverage interface to the top level FLASH_CTRL module.
`define FLASH_COV_LC_TX_BIND(__name) \
... | opentitan/hw/ip_templates/flash_ctrl/dv/cov/flash_ctrl_cov_bind.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.161 | false | false | 1,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
// Test recoverable alerts with invalid mubi data type inputs and cs_bus_cmp_alert
class csrng_alert_vseq extends csrng_base_vseq;
`uvm_object_uti... | opentitan/hw/ip/csrng/dv/env/seq_lib/csrng_alert_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.212 | false | false | 17,720 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Key manager dpe error and fault collection
//
`include "prim_assert.sv"
module keymgr_dpe_err
import keymgr_dpe_pkg::*;
import keymgr_dpe_... | opentitan/hw/ip/keymgr_dpe/rtl/keymgr_dpe_err.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.199 | false | false | 6,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
class dv_base_virtual_sequencer #(type CFG_T = dv_base_env_cfg,
type COV_T = dv_base_env_cov) extends uvm_sequencer... | opentitan/hw/dv/sv/dv_lib/dv_base_virtual_sequencer.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.308 | false | false | 1,221 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_HW_DV_VERILATOR_SIMUTIL_VERILATOR_CPP_VERILATED_TOPLEVEL_H_
#define OPENTITAN_HW_DV_VERILATOR_SIMUTIL_VERILATOR_CPP_VERILATED_TOPLE... | opentitan/hw/dv/verilator/simutil_verilator/cpp/verilated_toplevel.h | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.636 | false | false | 4,781 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Description:
// This test checks that an escalation reset is generated when the escalation clock stops for
// enough cycles.
class pwrmgr_escalati... | opentitan/hw/ip_templates/pwrmgr/dv/env/seq_lib/pwrmgr_escalation_timeout_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.329 | false | false | 4,094 | -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_scoreboard extends cip_base_scoreboard #(
.CFG_T(ac_range_check_env_cfg),
.RAL_T(ac_range_check_reg_block),
.COV_T(a... | opentitan/hw/top_darjeeling/ip_autogen/ac_range_check/dv/env/ac_range_check_scoreboard.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.166 | false | false | 19,448 | -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 keymgr_dpe_bind;
bind keymgr_dpe tlul_assert #(
.EndpointType("Device")
) tlul_assert_device (
.clk_i,
.rst_ni,
.h2d (tl... | opentitan/hw/ip/keymgr_dpe/dv/sva/keymgr_dpe_bind.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.158 | false | false | 495 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// I3C Controller core.
module i3c_controller
import i3c_controller_pkg::*;
import i3c_fifo_pkg::*;
import i3c_pkg::*;
import i3c_reg_pkg::*;... | opentitan/hw/ip/i3c/rtl/i3c_controller.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.276 | false | false | 20,578 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include <assert.h>
#include <stdbool.h>
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/lib/base/memory.h"
#include "sw/device/lib/bas... | opentitan/sw/device/tests/sim_dv/lc_ctrl_transition_impl.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.602 | false | false | 4,694 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Send read only traffic with interrupt mode.
// No protection is applied.
class flash_ctrl_intr_rd_vseq extends flash_ctrl_legacy_base_vseq;
`uvm... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/seq_lib/flash_ctrl_intr_rd_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.136 | false | false | 1,326 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This interface is used to connect the dpi sequence to the dpi modules in tb.
interface tb_dpi_if();
// Bit default value is 0, so dpi will be ... | opentitan/hw/top_earlgrey/dv/env/tb_dpi_if.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.385 | false | false | 536 | -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 gpio_test_pkg;
// dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import gpio_env_pkg::*;
// macro includes
`include "uv... | opentitan/hw/top_englishbreakfast/ip_autogen/gpio/dv/tests/gpio_test_pkg.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.533 | false | false | 432 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_SCA_RNG_SCA_H_
#define OPENTITAN_SW_DEVICE_TESTS_PENETRATIONTESTS_FIRMWARE_SCA_RNG_SCA_H_... | opentitan/sw/device/tests/penetrationtests/firmware/sca/rng_sca.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.8 | false | false | 568 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// This simple sequence checks if the background check can be triggered once the period is set.
class otp_ctrl_background_chks_vseq extends otp_ctrl... | opentitan/hw/ip_templates/otp_ctrl/dv/env/seq_lib/otp_ctrl_background_chks_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.268 | false | false | 2,662 | -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_KMAC_TESTUTILS_H_
#define OPENTITAN_SW_DEVICE_LIB_TESTING_KMAC_TESTUTILS_H_
#include "sw/device/lib/base/sta... | opentitan/sw/device/lib/testing/kmac_testutils.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.789 | false | false | 2,489 | -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/kmac.h" // Generated
#include "sw/device/lib/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/... | opentitan/sw/device/tests/kmac_mode_cshake_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.183 | false | false | 4,982 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package sram_ctrl_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import dv_... | opentitan/hw/ip/sram_ctrl/dv/env/sram_ctrl_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.224 | false | false | 2,470 | -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 "alert_handler_base_vseq.sv"
`include "alert_handler_smoke_vseq.sv"
`include "alert_handler_common_vseq.sv"
`include "alert_handler_random_a... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/dv/env/seq_lib/alert_handler_vseq_list.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.167 | false | false | 846 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class otbn_trace_monitor extends dv_base_monitor #(
.ITEM_T (otbn_trace_item),
.CFG_T (otbn_env_cfg),
.COV_T (otbn_env_cov)
);
`uvm_... | opentitan/hw/ip/otbn/dv/uvm/env/otbn_trace_monitor.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.169 | false | false | 3,587 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class i2c_env extends cip_base_env #(
.CFG_T (i2c_env_cfg),
.COV_T (i2c_env_cov),
.VIRTUAL_SEQUENCER_T (i2... | opentitan/hw/ip/i2c/dv/env/i2c_env.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.107 | false | false | 2,913 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "prim_assert.sv"
/**
* OTBN Instruction Fetch Unit
*
* Fetch an instruction from the instruction memory.
*/
module otbn_instruction_fet... | opentitan/hw/ip/otbn/rtl/otbn_instruction_fetch.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.208 | false | false | 21,244 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/mmio.h"
#include "sw/device/lib/dif/dif_csrng.h"
#include "sw/device/lib/dif/dif_... | opentitan/sw/device/tests/sim_dv/csrng_lc_hw_debug_en_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.293 | false | false | 12,354 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
interface kmac_app_if
import kmac_pkg::app_req_t, kmac_pkg::app_rsp_t;
(
input clk_i,
input rst_ni,
inout wire app_req_t req,
inout w... | opentitan/hw/dv/sv/kmac_app_agent/kmac_app_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | false | false | 7,114 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// Core Implementation module for Serial Peripheral Interface (SPI) Host IP.
//
module spi_host_core #(
parameter int NumCS = 1,
localparam i... | opentitan/hw/ip/spi_host/rtl/spi_host_core.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.093 | false | false | 4,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
#include "sw/device/silicon_creator/lib/ownership/isfb.h"
#include "sw/device/lib/base/multibits.h"
#include "sw/device/silicon_creator/lib/error.h"
... | opentitan/sw/device/silicon_creator/lib/ownership/isfb.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.271 | false | false | 7,752 | -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 rom_ctrl_smoke_vseq extends rom_ctrl_base_vseq;
`uvm_object_utils(rom_ctrl_smoke_vseq)
`uvm_object_new
extern task body();
endclass : r... | opentitan/hw/ip/rom_ctrl/dv/env/seq_lib/rom_ctrl_smoke_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.353 | false | false | 803 | -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 spi_if
import spi_agent_pkg::*;
import uvm_pkg::*;
(
input rst_n,
inout wire [3:0] sio
);
// standard spi interface pins
logic ... | opentitan/hw/dv/sv/spi_agent/spi_if.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | false | false | 2,056 | -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_smoke_test extends aes_base_test;
`uvm_component_utils(aes_smoke_test)
`uvm_component_new
virtual function void build_phase(uvm_ph... | opentitan/hw/ip/aes/dv/tests/aes_smoke_test.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.095 | false | false | 1,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
#include "sw/device/silicon_creator/lib/drivers/epmp.h"
#include "sw/device/lib/base/bitfield.h"
#include "sw/device/lib/base/csr.h"
#include "sw/de... | opentitan/sw/device/silicon_creator/lib/drivers/epmp.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.154 | false | false | 4,523 | -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_stress_all_vseq extends rv_dm_base_vseq;
`uvm_object_utils(rv_dm_stress_all_vseq)
`uvm_object_new
constraint num_trans_c {
nu... | opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_stress_all_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.185 | 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
#include "gpiodpi.h"
#ifdef __linux__
#include <linux/limits.h>
#include <pty.h>
#elif __APPLE__
#include <util.h>
#endif
#include <assert.h>
#incl... | opentitan/hw/dv/dpi/gpiodpi/gpiodpi.c | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.257 | false | false | 9,756 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_main_power_glitch_vseq extends chip_sw_base_vseq;
`uvm_object_utils(chip_sw_main_power_glitch_vseq)
`uvm_object_new
// Cycles t... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_main_power_glitch_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.308 | false | false | 1,341 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// tlul_adapter (Host adapter) converts basic req/grant/rvalid into TL-UL interface. If
// MAX_REQS == 1 it is purely combinational logic. If MAX_R... | opentitan/hw/ip/tlul/rtl/tlul_adapter_host.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.205 | false | false | 6,340 | -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 hardware interface test for direct reading
class flash_ctrl_smoke_hw_vseq extends flash_ctrl_base_vseq;
`uvm_object_utils(flash_ctrl_smoke... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_smoke_hw_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.269 | false | false | 3,848 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// this sequence enable signal integrity fail.
class alert_handler_sig_int_fail_vseq extends alert_handler_smoke_vseq;
`uvm_object_utils(alert_han... | opentitan/hw/top_darjeeling/ip_autogen/alert_handler/dv/env/seq_lib/alert_handler_sig_int_fail_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.25 | false | false | 711 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
package dma_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import mem_model... | opentitan/hw/ip/dma/dv/env/dma_env_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.185 | false | false | 1,892 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
`include "prim_assert.sv"
/**
* Tile-Link UL adapter for SRAM-like devices
*
* - Intentionally omitted BaseAddr in case of multiple memory maps a... | opentitan/hw/ip/tlul/rtl/tlul_adapter_sram.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.228 | false | false | 27,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
package keymgr_dpe_test_pkg;
// dep packages
import uvm_pkg::*;
import cip_base_pkg::*;
import keymgr_dpe_env_pkg::*;
// macro includes
... | opentitan/hw/ip/keymgr_dpe/dv/tests/keymgr_dpe_test_pkg.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.5 | 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
//
// Testbench module for pinmux.
// Intended to be used with a formal tool.
module pinmux_chip_tb
import pinmux_pkg::*;
import pinmux_reg_pkg::... | opentitan/hw/top_earlgrey/ip_autogen/pinmux/fpv/tb/pinmux_chip_tb.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.051 | false | false | 8,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
//
// pwrmgr interface.
//
// Samples some internal signals to help coverage collection:
interface pwrmgr_if (
input logic clk,
input logic rs... | opentitan/hw/top_englishbreakfast/ip_autogen/pwrmgr/dv/env/pwrmgr_if.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.135 | false | false | 7,725 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
class chip_sw_lc_ctrl_scrap_vseq extends chip_sw_lc_base_vseq;
`uvm_object_utils(chip_sw_lc_ctrl_scrap_vseq)
`uvm_object_new
rand lc_ctrl_state... | opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_lc_ctrl_scrap_vseq.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.3 | false | false | 4,463 | -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 pattgen_agent_pkg;
// dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import dv_base_agent_pkg::*;
import dv_lib_pkg::*;
... | opentitan/hw/dv/sv/pattgen_agent/pattgen_agent_pkg.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.345 | false | false | 1,063 | -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: vcaon_pgd
// *Module Description: VCAON Power Good
//#######... | opentitan/hw/top_earlgrey/ip/ast/rtl/vcaon_pgd.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.364 | false | false | 1,458 | -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/arch/device.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/dif/d... | opentitan/sw/device/tests/keymgr_dpe_sideload_kmac_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.416 | false | false | 9,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
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_OWNER_ECDSA_P256_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEY... | opentitan/sw/device/silicon_creator/lib/ownership/keys/fake/owner_ecdsa_p256.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.538 | false | false | 888 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Directed test to detect double bit error.
class flash_ctrl_derr_detect_vseq extends flash_ctrl_otf_base_vseq;
`uvm_object_utils(flash_ctrl_derr_... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_derr_detect_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.108 | false | false | 2,253 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
#ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_GPIO_H_
#define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_GPIO_H_
#include <stddef.h>
... | opentitan/sw/device/silicon_creator/lib/drivers/gpio.h | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.824 | false | false | 2,038 | -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 "clkmgr_base_vseq.sv"
`include "clkmgr_clk_status_vseq.sv"
`include "clkmgr_common_vseq.sv"
`include "clkmgr_frequency_timeout_vseq.sv"
`inc... | opentitan/hw/top_earlgrey/ip_autogen/clkmgr/dv/env/seq_lib/clkmgr_vseq_list.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.214 | false | false | 550 | -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 SYNTHESIS
`include "prim_assert.sv"
/**
* OpenTitan Big Number Accelerator (OTBN) Core
*
* This module is the top-level of the OTBN proce... | opentitan/hw/ip/otbn/dv/model/otbn_core_model.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.18 | false | false | 20,284 | -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_common_vseq extends hmac_base_vseq;
`uvm_object_utils(hmac_common_vseq)
rand bit trig_rst_during_hash;
// Constraints
extern con... | opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_common_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.22 | false | false | 1,847 | -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 otbn_loop_controller
import otbn_pkg::*;
#(
parameter int ImemAddrWidth = 12
) (
input clk_i,
input rst_ni,... | opentitan/hw/ip/otbn/rtl/otbn_loop_controller.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.222 | false | false | 13,235 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Memory protect test. Overlapping regions with randomization.
// Send one op among program, read and erase (page) in each trans round.
// This sequ... | opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/seq_lib/flash_ctrl_mp_regions_vseq.sv | arch_code | opentitan | opentitan/hw/top_englishbreakfast | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.083 | false | false | 16,086 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Assertion checker for external clock bypass
// sec cm test
module clkmgr_sec_cm_checker_assert (
input clk_i,
input rst_ni,
input prim_mubi_... | opentitan/hw/top_earlgrey/ip_autogen/clkmgr/dv/sva/clkmgr_sec_cm_checker_assert.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.154 | 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
package pwrmgr_env_pkg;
// dep packages
import uvm_pkg::*;
import top_pkg::*;
import dv_utils_pkg::*;
import dv_lib_pkg::*;
import tl_age... | opentitan/hw/top_earlgrey/ip_autogen/pwrmgr/dv/env/pwrmgr_env_pkg.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.177 | false | false | 2,446 | -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 "otcrypto.h"
#include "sw/device/lib/base/macros.h"
#include "sw/device/lib/base/status.h"
#includ... | opentitan/sw/device/tests/crypto/otcrypto_hash_test.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.404 | false | false | 2,510 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// Description:
// This test asserts global escalation reset to dut
// and check global escalation request is handled by
// dut properly.
class pwrmgr... | opentitan/hw/top_earlgrey/ip_autogen/pwrmgr/dv/env/seq_lib/pwrmgr_global_esc_vseq.sv | arch_code | opentitan | opentitan/hw/top_earlgrey | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.182 | false | false | 1,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
#include <stdbool.h>
#include <stdint.h>
#include "sw/device/lib/base/hardened.h"
#include "sw/device/lib/base/status.h"
#include "sw/device/lib/cry... | opentitan/sw/device/tests/crypto/status_functest.c | arch_code | opentitan | opentitan/sw/device | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | c | false | 0.246 | false | false | 2,329 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
module tb;
// Dep packages
import uvm_pkg::*;
import dv_utils_pkg::*;
import ac_range_check_env_pkg::*;
import ac_range_check_test_pkg::*... | opentitan/hw/top_darjeeling/ip_autogen/ac_range_check/dv/tb/tb.sv | arch_code | opentitan | opentitan/hw/top_darjeeling | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.227 | false | false | 3,122 | -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 write traffic with or without tlul memory
// bus write path error injection.
// This test will trigger fatal_std_err so clear ... | opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_wr_path_intg_vseq.sv | arch_code | opentitan | opentitan/hw/ip_templates | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.172 | false | false | 5,019 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
//
// ---------------------------------------------
// Alert sender receiver interface monitor
// ---------------------------------------------
clas... | opentitan/hw/dv/sv/alert_agent/alert_monitor.sv | arch_code | opentitan | opentitan/hw/dv | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.295 | false | false | 20,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
`include "pattgen_base_vseq.sv"
`include "pattgen_common_vseq.sv"
`include "pattgen_smoke_vseq.sv"
`include "pattgen_perf_vseq.sv"
`include "pattgen_... | opentitan/hw/ip/pattgen/dv/env/seq_lib/pattgen_vseq_list.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.273 | false | false | 455 | -1 |
// Copyright lowRISC contributors (OpenTitan project).
// Licensed under the Apache License, Version 2.0, see LICENSE for details.
// SPDX-License-Identifier: Apache-2.0
// usbdev_pkt_sent test vseq
class usbdev_in_trans_vseq extends usbdev_base_vseq;
`uvm_object_utils(usbdev_in_trans_vseq)
`uvm_object_new
vir... | opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_in_trans_vseq.sv | arch_code | opentitan | opentitan/hw/ip | Apache-2.0 | Apache-2.0 | 41049e9deb40e0602cd5272c40398be380ae2637 | other | false | 0.31 | false | false | 2,116 | -1 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.