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 // package prim_ram_1r1w_pkg; // The SPI device can be switched to either use 1r1w or true 2p memories. To ensure // a compatibility between the...
opentitan/hw/ip/prim_generic/rtl/prim_ram_1r1w_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.467
false
false
856
-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_target_base_seq extends i2c_base_seq; `uvm_object_utils(i2c_target_base_seq) `uvm_object_new virtual task body(); // A sequence ...
opentitan/hw/dv/sv/i2c_agent/seq_lib/i2c_target_base_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.455
false
false
992
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 /** * Non-synthesizable mock EDN end point that returns a fixed value after a fixed * delay used for OTBN simulation purposes. This instance is ada...
opentitan/hw/ip/otbn/dv/verilator/otbn_mock_edn_bivium.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.16
false
false
1,429
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class csrng_base_seq extends dv_base_seq #( .REQ (csrng_item), .CFG_T (csrng_agent_cfg), .SEQUENCER_T (csrng_sequencer) )...
opentitan/hw/dv/sv/csrng_agent/seq_lib/csrng_base_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.214
false
false
500
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_HW_DV_DPI_SPIDPI_SPIDPI_H_ #define OPENTITAN_HW_DV_DPI_SPIDPI_SPIDPI_H_ #include <svdpi.h> #ifdef __cplusplus extern "C" { #endif...
opentitan/hw/dv/dpi/spidpi/spidpi.h
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.704
false
false
882
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_STDARG_H_ #define OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_STDARG_H_ /** * @file * @brief C lib...
opentitan/sw/device/lib/base/freestanding/stdarg.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.909
false
false
1,050
-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 edn_alert_test extends edn_base_test; `uvm_component_utils(edn_alert_test) `uvm_component_new function void configure_env(); super....
opentitan/hw/ip/edn/dv/tests/edn_alert_test.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.227
false
false
920
-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 "sram_ctrl_base_vseq.sv" `include "sram_ctrl_smoke_vseq.sv" `include "sram_ctrl_common_vseq.sv" `include "sram_ctrl_throughput_vseq.sv" `inc...
opentitan/hw/ip/sram_ctrl/dv/env/seq_lib/sram_ctrl_vseq_list.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.167
false
false
774
-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 "ascon_model_dpi.h" #include <assert.h> #include <inttypes.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "svdpi.h...
opentitan/hw/ip/prim/dv/prim_ascon/ascon_model_dpi/ascon_model_dpi.c
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.147
false
false
4,808
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class rom_ctrl_corrupt_sig_fatal_chk_vseq extends rom_ctrl_base_vseq; `uvm_object_utils(rom_ctrl_corrupt_sig_fatal_chk_vseq) `uvm_object_new ...
opentitan/hw/ip/rom_ctrl/dv/env/seq_lib/rom_ctrl_corrupt_sig_fatal_chk_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.343
false
false
18,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 "sw/device/lib/runtime/log.h" #include "sw/device/lib/testing/test_framework/check.h" #include "sw/device/lib/testing/test_framework/ottf_ma...
opentitan/sw/device/tests/example_sival.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.5
false
false
2,023
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // RRAM Phy Read Buffers // // This module implements the read buffers // These buffers are straightforward flip flop storage. // There are four in...
opentitan/hw/ip/rram_ctrl/rtl/rram_phy_rd_buffer.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.254
false
false
5,321
-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_earlgrey/dv/env/seq_lib/chip_sw_gpio_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.234
false
false
4,227
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/hardened_memory.h" #include "sw/device/lib/crypto/drivers/otbn.h" #include "sw/device/lib/crypto/impl/keyblob.h" #includ...
opentitan/sw/device/tests/crypto/ecdh_p384_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.146
false
false
15,397
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class esc_sequencer extends dv_reactive_sequencer #(esc_seq_item, esc_agent_cfg); `uvm_component_utils(esc_sequencer) extern function new (strin...
opentitan/hw/dv/sv/esc_agent/esc_sequencer.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.3
false
false
488
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 package uart_test_pkg; // dep packages import uvm_pkg::*; import cip_base_pkg::*; import uart_env_pkg::*; // macro includes `include "uv...
opentitan/hw/ip/uart/dv/tests/uart_test_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.5
false
false
459
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Provides parameters, types and methods shared throughout the chip level testbench. package chip_common_pkg; import dv_utils_pkg::uint; // Ch...
opentitan/hw/top_earlgrey/dv/env/chip_common_pkg.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.188
false
false
6,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 // Base class for generating non-ideal RNG sequences for entropy_src // // Three major features distinguish this class from its push_pull_indefinite_...
opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_base_rng_seq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.408
false
false
7,554
-1
// Copyright 2016 Google Inc. // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // // http://www.apache.org/licenses/LICENSE-2.0 // // Unless required by applicable law or agreed to in ...
opentitan/hw/ip/hmac/dv/cryptoc_dpi/sha.c
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.195
false
false
3,164
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Based on prim_max_tree, this module implements an explicit binary tree to find the // sum of its inputs. The solution has O(N) area and O(log(N)...
opentitan/hw/ip/prim/rtl/prim_sum_tree.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.388
false
false
6,162
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Description: entropy distribution network core module // - this module will make requests to the CSRNG module // and return the genbits back...
opentitan/hw/ip/edn/rtl/edn_core.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.149
false
false
39,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/testing/randomness_quality.h" #include "sw/device/lib/base/status.h" #include "sw/device/lib/testing/test_framework/check.h"...
opentitan/sw/device/lib/testing/randomness_quality.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.4
false
false
2,849
-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_phy_prim_base_seq extends dv_base_seq #( .REQ (flash_phy_prim_item), .CFG_T (flash_phy_prim_agent_cfg), .SEQUEN...
opentitan/hw/dv/sv/flash_phy_prim_agent/seq_lib/flash_phy_prim_base_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.214
false
false
545
-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 wrapper for FI experiments module aes_wrap import aes_pkg::*; #( parameter bit AES192Enable = 1, // Can be 0 (disable...
opentitan/hw/ip/aes/rtl/aes_wrap.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.06
false
false
17,629
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Generic asynchronous fifo for use in a variety of devices. `include "prim_assert.sv" module prim_fifo_async #( parameter int unsigned Width...
opentitan/hw/ip/prim/rtl/prim_fifo_async.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.176
false
false
9,876
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/include/key_transport.h" #include "sw/device/lib/base/hardened.h" #include "sw/device/lib/base/hardened_memory.h" #in...
opentitan/sw/device/lib/crypto/impl/key_transport.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.277
false
false
22,908
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ALERT_HANDLER_H_ #define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_ALERT_HANDLER_H_ /** * @file * @brief <a href="/b...
opentitan/sw/device/lib/dif/dif_alert_handler.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.762
false
false
26,054
-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 writes a random values to combo detect registers including // precondition settings and checks for the combo detect interrupt. class...
opentitan/hw/ip/sysrst_ctrl/dv/env/seq_lib/sysrst_ctrl_combo_detect_with_pre_cond_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.126
false
false
28,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 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_USB_TESTUTILS_STREAMS_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_USB_TESTUTILS_STREAMS_H_ #include <stdbool.h...
opentitan/sw/device/lib/testing/usb_testutils_streams.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.754
false
false
14,390
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class entropy_src_rng_test extends entropy_src_base_test; `uvm_component_utils(entropy_src_rng_test) `uvm_component_new function void configu...
opentitan/hw/ip/entropy_src/dv/tests/entropy_src_rng_test.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.219
false
false
3,273
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Generic countermeasure interface for hardened onehot_check // // This contains a proxy class and store the object in sec_cm_pkg, which can be used...
opentitan/hw/dv/sv/sec_cm/prim_onehot_check_if.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.068
false
false
8,948
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class pattgen_agent_cov extends dv_base_agent_cov #(pattgen_agent_cfg); `uvm_component_utils(pattgen_agent_cov) // the base class provides the f...
opentitan/hw/dv/sv/pattgen_agent/pattgen_agent_cov.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.538
false
false
554
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Run both flash_all and tpm_all sequence in parallel to test that spi_device receives // flash transactions interleaving with TPM transactions clas...
opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_flash_and_tpm_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.259
false
false
1,145
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 `include "prim_assert.sv" module cheriot_rmw_filter #( // TL-UL address type parameter type addr_t = logic [top_pkg::TL_AW-1:0] ) ( input log...
opentitan/hw/ip/cheriot_mem_sys/rtl/cheriot_rmw_filter.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.315
false
false
13,276
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MLDSA87_KEY_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_SIGVERIFY_MLDSA87_KEY_H_ #i...
opentitan/sw/device/silicon_creator/lib/sigverify/mldsa87_key.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.653
false
false
1,598
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class i2c_target_stretch_vseq extends i2c_target_smoke_vseq; `uvm_object_utils(i2c_target_stretch_vseq) `uvm_object_new constraint num_trans_c...
opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_target_stretch_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.2
false
false
541
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 typedef class push_pull_sub_driver; typedef class push_host_driver; typedef class pull_host_driver; typedef class push_device_driver; typedef class p...
opentitan/hw/dv/sv/push_pull_agent/push_pull_driver_lib.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.167
false
false
8,880
-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/crypto/otcrypto_interface.h" volatile otcrypto_interface_t otcrypto = { // Configuration. .security_config_check =...
opentitan/sw/device/tests/crypto/otcrypto_interface.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.198
false
false
13,485
-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/csrng_testutils.h" #include "sw/device/lib/base/memory.h" #include "sw/device/lib/dif/dif_csrng.h" #include "sw/devi...
opentitan/sw/device/lib/testing/csrng_testutils.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.32
false
false
15,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 #include <stdbool.h> #include "sw/device/lib/base/abs_mmio.h" #include "sw/device/lib/testing/test_framework/ottf_main.h" #include "sw/device/silico...
opentitan/sw/device/silicon_creator/rom/e2e/sram/sram_readback_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.423
false
false
1,102
-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_darjeeling/ip_autogen/clkmgr/rtl/clkmgr.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.187
false
false
18,100
-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 pwm_monitor_pkg; // dep packages import uvm_pkg::*; import dv_utils_pkg::*; import dv_base_agent_pkg::*; import dv_lib_pkg::*; /...
opentitan/hw/dv/sv/pwm_monitor/pwm_monitor_pkg.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.4
false
false
860
-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 interacts with the test (sw/device/tests/keymgr_dpe_key_derivation_test.c) // and performs the checks on digest data. // Detailed t...
opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_keymgr_dpe_key_derivation_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.217
false
false
41,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 #include "sw/device/lib/dif/dif_rv_dm.h" #include "sw/device/lib/base/multibits.h" #include "hw/top/rv_dm_regs.h" // Generated. static bool late_...
opentitan/sw/device/lib/dif/dif_rv_dm.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.149
false
false
1,799
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Passthrough base sequence class spi_device_pass_base_vseq extends spi_device_base_vseq; // only enable this in 1-2 tests bit allow_set_cmd_inf...
opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_pass_base_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.155
false
false
36,208
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_in_rand_trans_vseq extends usbdev_base_vseq; `uvm_object_utils(usbdev_in_rand_trans_vseq) `uvm_object_new task body(); bit [...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_in_rand_trans_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.243
false
false
1,625
-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 Target core. `include "prim_assert.sv" module i3c_target import i3c_consts_pkg::*; import i3c_pkg::*; import i3c_reg_pkg::*; impor...
opentitan/hw/ip/i3c/rtl/i3c_target.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.263
false
false
27,392
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/arch/device.h" #include "sw/device/lib/coverage/printer.h" #include "sw/device/silicon_creator/lib/dbg_print.h" #include "sw/...
opentitan/sw/device/lib/coverage/uart_runtime.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.281
false
false
1,057
-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_smoke_vseq extends entropy_src_base_vseq; `uvm_object_utils(entropy_src_smoke_vseq) `uvm_object_new int seed_cnt; push_p...
opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_smoke_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.208
false
false
2,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 #include "sw/device/lib/base/status.h" #include "sw/device/lib/dif/dif_otp_ctrl.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/tes...
opentitan/sw/device/silicon_creator/rom_ext/e2e/lockdown/otp_creator_lockdown.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.343
false
false
1,452
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/drivers/alert.h" #include "sw/device/lib/base/bitfield.h" #include "sw/device/lib/base/hardened.h" #include "sw/devic...
opentitan/sw/device/lib/crypto/drivers/alert.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.202
false
false
5,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/lib/arch/device.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_flash_ctrl.h" #include "sw/device/lib/dif...
opentitan/sw/device/tests/sim_dv/flash_init_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.072
false
false
14,423
-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_DATATYPES_H_ #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_IMPL_RSA_RSA_DATATYPES_H_ #include <stddef.h...
opentitan/sw/device/lib/crypto/impl/rsa/rsa_datatypes.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.623
false
false
4,818
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Tests multiple WFI instructions executed back to back. class otbn_wfi_back_to_back_vseq extends otbn_base_vseq; `uvm_object_utils(otbn_wfi_back...
opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_wfi_back_to_back_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.207
false
false
2,836
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_BASE_LZ4_H_ #define OPENTITAN_SW_DEVICE_LIB_BASE_LZ4_H_ #include <stddef.h> #ifdef __cplusplus extern "C" { #endif ...
opentitan/sw/device/lib/base/lz4.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.857
false
false
1,044
-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 mbx_seq_item extends uvm_sequence_item; rand bit [top_pkg::TL_AW-1:0] ibmbx_base_addr; rand bit [top_pkg::TL_AW-1:0] ibmbx_limit_addr; r...
opentitan/hw/ip/mbx/dv/env/mbx_seq_item.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.183
false
false
3,009
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // HDR Restart and HDR Exit Pattern detector for I3C Target. It does not have a free-running clock // of its own, but responds directly to the Contro...
opentitan/hw/ip/i3c/rtl/i3c_patt_detector.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.63
false
false
4,215
-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_env extends cip_base_env #(.CFG_T (uart_env_cfg), .COV_T (uart_env_cov),...
opentitan/hw/ip/uart/dv/env/uart_env.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.111
false
false
1,330
-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 top level // `include "prim_assert.sv" module keymgr_dpe import keymgr_dpe_pkg::*; import keymgr_dpe_reg_pkg::*; import ...
opentitan/hw/ip/keymgr_dpe/rtl/keymgr_dpe.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.179
false
false
40,304
-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 hmac_env_pkg; // dep packages import uvm_pkg::*; import top_pkg::*; import dv_utils_pkg::*; import csr_utils_pkg::*; import tl_ag...
opentitan/hw/ip/hmac/dv/env/hmac_env_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.107
false
false
9,123
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // This module decodes a differentially encoded signal and detects // incorrectly encoded differential states. // // In case the differential pair ...
opentitan/hw/ip/prim/rtl/prim_diff_decode.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.348
false
false
12,048
-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 i2c_fifos import i2c_pkg::*; import i2c_reg_pkg::FifoDepth; import i2c_reg_pkg::AcqFifoDepth; #( localparam int u...
opentitan/hw/ip/i2c/rtl/i2c_fifos.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.092
false
false
12,468
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_tx_rx_disruption_vseq extends usbdev_smoke_vseq; `uvm_object_utils(usbdev_tx_rx_disruption_vseq) `uvm_object_new // The type of ...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_tx_rx_disruption_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.306
false
false
6,370
-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 that forces internal variables, triggering internal FSM state transition to // AcquireStart or Idle states // Check if the state transiti...
opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_glitch_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.276
false
false
22,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 // // --------------------------------------------- // Configuration class for TileLink agent // --------------------------------------------- class ...
opentitan/hw/dv/sv/tl_agent/tl_agent_cfg.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.528
false
false
12,600
-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 "hw/top/dt/kmac.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/macros.h" #...
opentitan/sw/device/tests/keymgr_dpe_key_derivation_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.177
false
false
18,181
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // package rstmgr_pkg; // Power domain parameters parameter int PowerDomains = 2; parameter int DomainAonSel = 0; parameter int DomainMainSe...
opentitan/hw/top_earlgrey/ip_autogen/rstmgr/rtl/rstmgr_pkg.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.135
false
false
4,411
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Test sequence to check both RND.RNG.DIGEST and RND.BUS.CONSISTENCY security countermeasures. // The main skeleton is otbn_multi test in which we r...
opentitan/hw/ip/otbn/dv/uvm/env/seq_lib/otbn_rnd_sec_cm_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.455
false
false
3,277
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/hardened_memory.h" #include "sw/device/lib/crypto/drivers/otbn.h" #include "sw/device/lib/crypto/impl/keyblob.h" #includ...
opentitan/sw/device/tests/crypto/ecdh_p256_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.135
false
false
15,274
-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 generates random resets but when HMAC is doing some operations and mostly // with long messages. class hmac_stress_reset_vseq extend...
opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_stress_reset_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.364
false
false
957
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // smoke test vseq class rv_dm_smoke_vseq extends rv_dm_base_vseq; `uvm_object_utils(rv_dm_smoke_vseq) `uvm_object_new // Check that the IDCOD...
opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_smoke_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.336
false
false
7,049
-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: ast_clks_byp_secondary // *Module Description: AST Clocks ...
opentitan/hw/top_earlgrey/ip/ast/rtl/ast_clks_byp_secondary.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.402
false
false
3,264
-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 racl_error_log_agent extends dv_base_agent#(.CFG_T (racl_error_log_agent_cfg), .DRIVER_T...
opentitan/hw/ip/racl_ctrl/dv/env/racl_error_log_agent/racl_error_log_agent.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.154
false
false
1,880
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Behavioral model of SPI Flash program spiflash #( parameter int unsigned FlashSize = 1024*1024, // 1MB parameter int unsigned PageSize = 25...
opentitan/hw/ip/spi_device/pre_dv/program/spiflash.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.17
false
false
18,278
-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_fifo_sram_async module prim_fifo_async_sram_adapter_tb #( parameter int unsigned Width = 32, parameter int unsign...
opentitan/hw/ip/prim/fpv/tb/prim_fifo_async_sram_adapter_tb.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.048
false
false
5,317
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class i2c_acqdata_item extends uvm_sequence_item; rand bit [7:0] abyte; rand i2c_acq_byte_id_e signal; `uvm_object_utils_begin(i2c_acqdata_it...
opentitan/hw/dv/sv/i2c_agent/i2c_acqdata_item.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.25
false
false
548
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_rx_pid_err_vseq extends usbdev_base_vseq; `uvm_object_utils(usbdev_rx_pid_err_vseq) `uvm_object_new task body(); uvm_reg_dat...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_rx_pid_err_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.286
false
false
1,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 // Observation of the writes to the message buffer memory of the I3C block. // // The message buffer is written both by software, through the BUFFER ...
opentitan/hw/ip/i3c/dv/env/i3c_buf_mon_if.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.364
false
false
997
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 `uvm_analysis_imp_decl(_kmac_req) `uvm_analysis_imp_decl(_kmac_txn) class rom_ctrl_scoreboard extends cip_base_scoreboard #( .CFG_T(rom_ctrl_env...
opentitan/hw/ip/rom_ctrl/dv/env/rom_ctrl_scoreboard.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.296
false
false
22,565
-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_HEXSTR_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_HEXSTR_H_ #include <stdint.h> #include "sw/device/lib/bas...
opentitan/sw/device/lib/testing/hexstr.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.857
false
false
1,276
-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 for SPI_HOST RX and TX queues // `include "prim_assert.sv" module spi_host_data_fifos #( parameter int TxDepth = 72, para...
opentitan/hw/ip/spi_host/rtl/spi_host_data_fifos.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.106
false
false
3,907
-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 requires to define following variable in c test. // static volatile const uint8_t kExternalClockEnable; // Default is 0. // If this ...
opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_lc_ctrl_transition_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.305
false
false
6,969
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // The scoreboard does not model I3C behaviour yet. It keeps the RAL mirror up to date with the // register accesses, so that sequences can use the m...
opentitan/hw/ip/i3c/dv/env/i3c_scoreboard.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.242
false
false
7,948
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class lc_ctrl_base_vseq extends cip_base_vseq #( .RAL_T (lc_ctrl_regs_reg_block), .CFG_T (lc_ctrl_env_cfg), .COV_T ...
opentitan/hw/ip/lc_ctrl/dv/env/seq_lib/lc_ctrl_base_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.147
false
false
9,401
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class jtag_riscv_base_seq extends dv_base_seq #( .REQ (jtag_riscv_item), .CFG_T (jtag_riscv_agent_cfg), .SEQUENCER_T (jtag_...
opentitan/hw/dv/sv/jtag_riscv_agent/seq_lib/jtag_riscv_base_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.1
false
false
1,560
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // program prog_passthrough_host import spid_common::*; ( input logic clk, input logic rst_n, spi_if sif ); // Tracked Flash variables ...
opentitan/hw/ip/spi_device/pre_dv/program/prog_passthrough_host.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.125
false
false
13,084
-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/silicon_c...
opentitan/sw/device/silicon_creator/lib/rescue/rescue_usb.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.371
false
false
6,008
-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_ADV_MACROS_H_ #define OPENTITAN_SW_DEVICE_LIB_BASE_ADV_MACROS_H_ #include "sw/device/lib/base/macros.h" // The...
opentitan/sw/device/lib/base/adv_macros.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
1
false
false
1,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 // A lightweight interface to sample idle signal. interface hmac_if(input clk_i, input rst_ni); prim_mubi_pkg::mubi4_t idle; function automatic ...
opentitan/hw/ip/hmac/dv/env/hmac_if.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.4
false
false
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 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_PROVISIONING_DATA_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_PROVISIONING_DATA_H_ #include "sw/dev...
opentitan/sw/device/lib/testing/json/provisioning_data.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.632
false
false
5,223
-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_sequencer #(parameter int HostDataWidth = 32, parameter int DeviceDataWidth = HostDataWidth) extends dv...
opentitan/hw/dv/sv/push_pull_agent/push_pull_sequencer.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.25
false
false
590
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // N:1 arbiter module // // Verilog parameter // N: Number of request ports // DW: Data width // DataPort: Set to 1 to ...
opentitan/hw/ip/prim/rtl/prim_arbiter_ppc.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.339
false
false
7,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 package ibex_pmp_reset_pkg; import ibex_pkg::*; // Default reset values for PMP CSRs. Where the number of regions // (PMPNumRegions) is less t...
opentitan/hw/top_earlgrey/rtl/ibex_pmp_reset_pkg.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.245
false
false
2,946
-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/7ec789ace6874d875f4bb84...
opentitan/sw/device/silicon_creator/lib/sigverify/sphincsplus/sha2.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.444
false
false
1,232
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class entropy_src_xht_monitor extends dv_reactive_monitor #( .ITEM_T (entropy_src_xht_item), .CFG_T (entropy_src_xht_agent_cfg), .COV_T (dv_b...
opentitan/hw/dv/sv/entropy_src_xht_agent/entropy_src_xht_monitor.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.224
false
false
3,042
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Trigger KeyNotValid error by not providing valid keymgr key during kmac transaction. class kmac_key_error_vseq extends kmac_app_vseq; `uvm_obje...
opentitan/hw/ip/kmac/dv/env/seq_lib/kmac_key_error_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.198
false
false
3,579
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Open-source pad orientation definitions. // This is only relevant for the ASIC target. package pad_orient_pkg; import prim_pad_wrapper_pkg::...
opentitan/hw/top_darjeeling/rtl/pad_orient_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.059
false
false
6,241
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 /** * 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/keymgr_dpe/dv/env/keymgr_dpe_env_cov.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.13
false
false
7,784
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Copyright Luke Valenty (TinyFPGA project, https://github.com/tinyfpga/TinyFPGA-Bootloader). module usb_fs_tx_mux ( // interface to IN Protocol E...
opentitan/hw/ip/usbdev/rtl/usb_fs_tx_mux.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.389
false
false
749
-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/kmac/dv/env/kmac_env_cov.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.095
false
false
17,738
-1