text
stringlengths
183
150k
path
stringlengths
15
112
bucket
stringclasses
4 values
source
stringclasses
14 values
group
stringclasses
121 values
spdx
stringclasses
11 values
repo_license
stringclasses
11 values
commit
stringclasses
13 values
lang
stringclasses
4 values
def_heavy
bool
1 class
comment_ratio
float64
0
1
restricted
bool
2 classes
fresh
bool
1 class
n_bytes
int64
183
150k
n_tokens
int64
-1
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <stdbool.h> #include "hw/top/dt/rv_core_ibex.h" #include "sw/device/lib/arch/device.h" #include "hw/top/rv_core_ibex_regs.h" // Use the f...
opentitan/sw/device/lib/arch/device_sim_dv.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.265
false
false
2,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 /** * This template serves as a starting point for writing software top-level * tests that use the OpenTitan Test Framework (OTTF), and run at the ...
opentitan/sw/device/tests/example_test_from_flash.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.943
false
false
4,115
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Simple parameterizable gate generator. Used to fill up the netlist with gates that cannot be // optimized away. // // The module leverages 4bit ...
opentitan/hw/ip/prim/rtl/prim_gate_gen.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.457
false
false
3,791
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/drivers/kmac.h" #include "sw/device/lib/crypto/include/config.h" #include "sw/device/lib/crypto/include/integrity.h" #...
opentitan/sw/device/tests/crypto/mldsa87_verify_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.306
false
false
2,794
-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_SENSOR_CTRL_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_DRIVERS_SENSOR_CTRL_H_ #includ...
opentitan/sw/device/silicon_creator/lib/drivers/sensor_ctrl.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.744
false
false
1,293
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // --------------------------------------------- // Xbar environment virtual sequencer // --------------------------------------------- class xbar_vi...
opentitan/hw/ip/tlul/generic_dv/env/xbar_virtual_sequencer.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.462
false
false
619
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/bitfield.h" #include "sw/device/lib/base/status.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/testin...
opentitan/sw/device/tests/penetrationtests/firmware/testdata/bl0_owner_rollback.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.378
false
false
2,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 #include "sw/device/silicon_creator/lib/drivers/stdusb.h" #include "sw/device/lib/base/macros.h" #include "sw/device/silicon_creator/lib/drivers/usb...
opentitan/sw/device/silicon_creator/lib/drivers/stdusb.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.204
false
false
4,487
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class alert_sequencer extends dv_reactive_sequencer #(alert_seq_item, alert_agent_cfg); `uvm_component_utils(alert_sequencer) extern function new...
opentitan/hw/dv/sv/alert_agent/alert_sequencer.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.3
false
false
474
-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_GPIODPI_GPIODPI_H_ #define OPENTITAN_HW_DV_DPI_GPIODPI_GPIODPI_H_ #include <svdpi.h> #ifdef __cplusplus extern "C" { #e...
opentitan/hw/dv/dpi/gpiodpi/gpiodpi.h
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.809
false
false
1,762
-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/impl/status.h" #include "sw/device/lib/crypto/include/config.h" #include "sw/device/lib/crypto/include/entropy_src.h" ...
opentitan/sw/device/tests/crypto/sha384_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.288
false
false
6,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 // Target-side handling of Common Command Codes. module i3c_target_ccc import i3c_consts_pkg::*; import i3c_pkg::*; import i3c_reg_pkg::*; im...
opentitan/hw/ip/i3c/rtl/i3c_target_ccc.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.234
false
false
26,868
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Attempt second transition before reset class lc_ctrl_state_post_trans_vseq extends lc_ctrl_errors_vseq; `uvm_object_utils(lc_ctrl_state_post_tra...
opentitan/hw/ip/lc_ctrl/dv/env/seq_lib/lc_ctrl_state_post_trans_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.318
false
false
753
-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 rv_dm_mode_agent_pkg; import uvm_pkg::*; `include "uvm_macros.svh" import dv_base_agent_pkg::dv_base_agent_cfg; import dv_base_agent...
opentitan/hw/ip/rv_dm/dv/rv_dm_mode_agent/rv_dm_mode_agent_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.136
false
false
920
-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/sha384.c
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.444
false
false
1,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 // // High-level goal // --------------- // - Exercises the *range-locking* feature for AC_RANGE_CHECK. // - Confirms that once RANGE_REGWEN_x is clea...
opentitan/hw/top_darjeeling/ip_autogen/ac_range_check/dv/env/seq_lib/ac_range_check_lock_range_vseq.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.365
false
false
11,646
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_ASSERT_H_ #define OPENTITAN_SW_DEVICE_LIB_BASE_FREESTANDING_ASSERT_H_ /** * @file * @brief C lib...
opentitan/sw/device/lib/base/freestanding/assert.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.962
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 // // Description: Pattgen Core Module module pattgen_core import pattgen_reg_pkg::*; import pattgen_ctrl_pkg::*; ( input clk...
opentitan/hw/ip/pattgen/rtl/pattgen_core.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.07
false
false
3,502
-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_agent_cov extends dv_base_agent_cov #(uart_agent_cfg); `uvm_component_utils(uart_agent_cov) covergroup uart_cg with function sample(u...
opentitan/hw/dv/sv/uart_agent/uart_agent_cov.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.179
false
false
1,204
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // A ramp virtual sequence that controls an ADC channel, ramping between two values. This is a // virtual sequence because it works entirely by contr...
opentitan/hw/ip/adc_ctrl/dv/env/seq_lib/adc_ctrl_channel_ramp_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.328
false
false
3,031
-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 LUT-based SBox module aes_sbox_lut ( input aes_pkg::ciph_op_e op_i, input logic [7:0] data_i, output logic [7:0] data...
opentitan/hw/ip/aes/rtl/aes_sbox_lut.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.083
false
false
4,503
-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_MEM_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_JSON_MEM_H_ #include "sw/device/lib/ujson/ujson_derive.h...
opentitan/sw/device/lib/testing/json/mem.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.5
false
false
1,810
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class sram_ctrl_scoreboard #(parameter int MemDepth = 1024) extends cip_base_scoreboard #( .CFG_T(sram_ctrl_env_cfg#(MemDepth)), .RAL_T(sram_...
opentitan/hw/ip/sram_ctrl/dv/env/sram_ctrl_scoreboard.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.269
false
false
31,794
-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 (templated) environment package for a specialised instance of racl_ctrl. Most of the // work normally done by an env_pkg is performed ...
opentitan/hw/top_darjeeling/ip_autogen/racl_ctrl/dv/racl_ctrl_env_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.545
false
false
527
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Life cycle controller top. // `include "prim_assert.sv" module lc_ctrl import lc_ctrl_pkg::*; import lc_ctrl_reg_pkg::*; import lc_ctrl_...
opentitan/hw/ip/lc_ctrl/rtl/lc_ctrl.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.197
false
false
40,256
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Test to encrypt/decrypt NIST test vectors. // The output of the DUT is compared both against the output of the golden model // and against the kno...
opentitan/hw/ip/aes/dv/env/seq_lib/aes_nist_vectors_gcm_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.222
false
false
14,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 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_AES_GCM_H_ #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_AES_GCM_H_ #include "datatypes.h" /** * @...
opentitan/sw/device/lib/crypto/include/aes_gcm.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.854
false
false
13,737
-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_test_pkg; // dep packages import uvm_pkg::*; import dv_utils_pkg::*; import cip_base_pkg::*; import pattgen_env_pkg::*; ...
opentitan/hw/ip/pattgen/dv/tests/pattgen_test_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.471
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 // // Package partition metadata. // package otp_ctrl_part_pkg; import prim_util_pkg::vbits; import otp_ctrl_reg_pkg::*; import otp_ctrl_pkg::*...
opentitan/hw/top_earlgrey/ip_autogen/otp_ctrl/rtl/otp_ctrl_part_pkg.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.151
false
false
17,437
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_EXT_SIVAL_KEYS_OWNERSHIP_OWNER_KEY_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_EXT_SIVAL_KEYS_...
opentitan/sw/device/silicon_creator/rom_ext/sival/keys/ownership_owner_key.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.583
false
false
838
-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/aes_testutils.h" #include "hw/ip/aes/model/aes_modes.h" #include "hw/top/dt/alert_handler.h" #include "sw/device/lib...
opentitan/sw/device/lib/testing/aes_testutils.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.306
false
false
12,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 class chip_sw_soc_proxy_external_wakeup_vseq extends chip_sw_base_vseq; `uvm_object_utils(chip_sw_soc_proxy_external_wakeup_vseq) `uvm_object_ne...
opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_soc_proxy_external_wakeup_vseq.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.292
false
false
1,324
-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 operation state control // `include "prim_assert.sv" module keymgr_dpe_op_state_ctrl import keymgr_dpe_pkg::*; import keymgr_d...
opentitan/hw/ip/keymgr_dpe/rtl/keymgr_dpe_op_state_ctrl.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.311
false
false
3,324
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/memory.h" #include "sw/device/lib/base/status.h" #include "sw/device/lib/dif/dif_lc_ctrl.h" #include "sw/device/lib/dif/...
opentitan/sw/device/tests/penetrationtests/firmware/fi/lc_ctrl_fi.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.308
false
false
4,469
-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 gpiodpi #( parameter string NAME = "gpio0", parameter int N_GPIO = 32 )( input logic clk_i, input logic ...
opentitan/hw/dv/dpi/gpiodpi/gpiodpi.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.082
false
false
2,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 // A sequence to drive instruction and / or the data register via JTAG. class jtag_base_seq extends dv_base_seq #( .REQ (jtag_item), ...
opentitan/hw/dv/sv/jtag_agent/jtag_seq_lib.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.111
false
false
1,538
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/drivers/kmac.h" #include "sw/device/lib/crypto/include/config.h" #include "sw/device/lib/crypto/include/cryptolib_buil...
opentitan/sw/device/tests/crypto/kmac_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.23
false
false
24,834
-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 has some assertions that check clock and main pd behavior at the top-level, // especially as it relates to the ast and pwrmgr interaction. in...
opentitan/hw/top_darjeeling/dv/sva/clk_ctrl_and_main_pd_sva_if.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.211
false
false
3,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 class spi_device_flash_seq extends dv_base_seq #( .REQ (spi_item), .CFG_T (spi_agent_cfg), .SEQUENCER_T (spi_sequencer) )...
opentitan/hw/dv/sv/spi_agent/seq_lib/spi_device_flash_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.289
false
false
1,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 // // JTAG DTM to TL-UL Converter. // This implements a JTAG DTM according to the RISC-V external debug v0.13 specification and // uses the TL-UL prot...
opentitan/hw/ip/tlul/rtl/tlul_jtag_dtm.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.174
false
false
5,187
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_COVERAGE_API_H_ #define OPENTITAN_SW_DEVICE_LIB_COVERAGE_API_H_ #include <stdint.h> #include "sw/device/lib/base/ma...
opentitan/sw/device/lib/coverage/api.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.82
false
false
1,573
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/macros.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_km...
opentitan/sw/device/tests/kmac_endianess_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.382
false
false
5,761
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "hw/ip/aes/model/aes_modes.h" #include "sw/device/lib/base/memory.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/base/multi...
opentitan/sw/device/tests/aes_prng_reseed_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.272
false
false
8,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 #ifndef OPENTITAN_SW_DEVICE_LIB_UJSON_EXAMPLE_H_ #define OPENTITAN_SW_DEVICE_LIB_UJSON_EXAMPLE_H_ #include "sw/device/lib/ujson/ujson_derive.h" #ifde...
opentitan/sw/device/lib/ujson/example.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.762
false
false
4,016
-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/top_memory.h" #include "sw/device/lib/base/abs_mmio.h" #include "sw/device/lib/base/hardened.h" #include "sw/device/lib/base/macros....
opentitan/sw/device/silicon_creator/rom/e2e/immutable_rom_ext_section/immutable_rom_ext_section_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.329
false
false
3,310
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/crypto/impl/mldsa/mldsa.h" #include "sw/device/lib/base/hardened.h" #include "sw/device/lib/base/hardened_memory.h" #include...
opentitan/sw/device/lib/crypto/impl/mldsa/mldsa.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.282
false
false
9,482
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <assert.h> #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/macros.h" #include "sw/device/lib/base/memory.h" #include "sw...
opentitan/sw/device/tests/pmod/i2c_host_irq_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.254
false
false
11,987
-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_alert_test extends csrng_base_test; `uvm_component_utils(csrng_alert_test) `uvm_component_new function void configure_env(); ...
opentitan/hw/ip/csrng/dv/tests/csrng_alert_test.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.231
false
false
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 csrng_cmds_vseq extends csrng_base_vseq; `uvm_object_utils(csrng_cmds_vseq) `uvm_object_new csrng_item cs_item, cs_item_q[][$]; uint...
opentitan/hw/ip/csrng/dv/env/seq_lib/csrng_cmds_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.142
false
false
7,557
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Target Extension interface, for low-latency protocols that must be implemented in hardware. module i3c_target_ext import i3c_targ_ext_pkg::*;...
opentitan/hw/ip/i3c/rtl/i3c_target_ext.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.341
false
false
1,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 // // AES MixColumns module aes_mix_columns ( input aes_pkg::ciph_op_e op_i, input logic [3:0][3:0][7:0] data_i, output logic [3:0][3:0][7...
opentitan/hw/ip/aes/rtl/aes_mix_columns.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.28
false
false
863
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Flash invalid operation test. All partitions are exercised // with final check that invalid operation does not affect flash // memory content. cla...
opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/dv/env/seq_lib/flash_ctrl_invalid_op_vseq.sv
arch_code
opentitan
opentitan/hw/top_englishbreakfast
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.119
false
false
8,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 // #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_CONSOLE_TYPES_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_CONSOLE_TY...
opentitan/sw/device/lib/testing/test_framework/ottf_console_types.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.75
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 // This sequence will assert the ec_rst_out_l and raise an interrupt // when certain combos are detected. class sysrst_ctrl_combo_detect_ec_rst_vseq ...
opentitan/hw/ip/sysrst_ctrl/dv/env/seq_lib/sysrst_ctrl_combo_detect_ec_rst_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.271
false
false
2,886
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_SVC_BOOT_SVC_NEXT_BOOT_BL0_SLOT_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_BOOT_SVC_BOOT...
opentitan/sw/device/silicon_creator/lib/boot_svc/boot_svc_next_boot_bl0_slot.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.618
false
false
3,182
-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_common_vseq extends uart_base_vseq; `uvm_object_utils(uart_common_vseq) constraint num_trans_c { num_trans inside {[1:2]}; } ...
opentitan/hw/ip/uart/dv/env/seq_lib/uart_common_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.231
false
false
427
-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_pwrmgr.h" #include "sw/device/lib/runtime/irq.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/testi...
opentitan/sw/device/tests/pwrmgr_deep_sleep_all_wake_ups.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.344
false
false
2,246
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "hw/ip/aes/model/aes_modes.h" #include "sw/device/lib/base/memory.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_ae...
opentitan/sw/device/tests/aes_smoketest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.389
false
false
1,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 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_NVM_TESTUTILS_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_NVM_TESTUTILS_H_ #include <stddef.h> #include <stdi...
opentitan/sw/device/lib/testing/nvm_testutils.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.802
false
false
10,124
-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/kmac_testutils.h" #include "sw/device/lib/dif/dif_kmac.h" #include "sw/device/lib/testing/test_framework/check.h" s...
opentitan/sw/device/lib/testing/kmac_testutils.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.31
false
false
3,604
-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_PINMUX_TESTUTILS_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_PINMUX_TESTUTILS_H_ #include <stdint.h> #includ...
opentitan/sw/device/lib/testing/pinmux_testutils.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.793
false
false
4,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/silicon_creator/lib/base/sec_mmio.h" #include <assert.h> #include "sw/device/lib/base/abs_mmio.h" #include "sw/device/lib/base/...
opentitan/sw/device/silicon_creator/lib/base/sec_mmio.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.199
false
false
6,603
-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 usb20_agent_pkg; // dep packages import uvm_pkg::*; import dv_base_agent_pkg::*; import dv_utils_pkg::*; import dv_lib_pkg::*; /...
opentitan/hw/dv/sv/usb20_agent/usb20_agent_pkg.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.3
false
false
3,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 "dmidpi.h" #include <assert.h> #include <pthread.h> #include <stdbool.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #inclu...
opentitan/hw/dv/dpi/dmidpi/dmidpi.c
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.234
false
false
11,012
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_phy_config_pinflip_vseq extends usbdev_smoke_vseq; `uvm_object_utils(usbdev_phy_config_pinflip_vseq) `uvm_object_new virtual tas...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_phy_config_pinflip_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.429
false
false
1,233
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_SHA3_H_ #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_SHA3_H_ #include "datatypes.h" /** * @file ...
opentitan/sw/device/lib/crypto/include/sha3.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.813
false
false
20,026
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Link state detection // `include "prim_assert.sv" module usbdev_linkstate ( input logic clk_48mhz_i, input logic rst_ni, input logic ...
opentitan/hw/ip/usbdev/rtl/usbdev_linkstate.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.194
false
false
12,148
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <stddef.h> #include <stdint.h> #include "sw/device/lib/coverage/printer.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/r...
opentitan/sw/device/lib/coverage/ottf_runtime.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.333
false
false
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 // // Module to manage TX & RX FIFO windows for Serial Peripheral Interface (SPI) host IP. // `include "prim_assert.sv" module spi_host_window #( ...
opentitan/hw/ip/spi_host/rtl/spi_host_window.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.103
false
false
4,187
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class flash_phy_prim_agent_cfg extends dv_base_agent_cfg; // interface handle used by driver, monitor & the sequencer, via cfg handle virtual fl...
opentitan/hw/dv/sv/flash_phy_prim_agent/flash_phy_prim_agent_cfg.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.333
false
false
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 // Test processes several AES-GCM messages. During each message, at a random // item, the GCM save and restore feature is tested. Here, before the ne...
opentitan/hw/ip/aes/dv/env/seq_lib/aes_gcm_save_restore_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.227
false
false
15,918
-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_reactive_sequencer #(type ITEM_T = uvm_sequence_item, type CFG_T = dv_reactive_agent_cfg, ...
opentitan/hw/dv/sv/dv_base_agent/dv_reactive_sequencer.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.3
false
false
1,772
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_SHA2_H_ #define OPENTITAN_SW_DEVICE_LIB_CRYPTO_INCLUDE_SHA2_H_ #include "datatypes.h" /** * @file ...
opentitan/sw/device/lib/crypto/include/sha2.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.8
false
false
5,391
-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/status_report_unittest_c.h" #include "sw/device/lib/testing/test_framework/check.h" #include "sw/d...
opentitan/sw/device/tests/status_report_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.6
false
false
608
-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" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/mmio.h" #include "sw/device/lib/dif/dif_kmac.h" #incl...
opentitan/sw/device/tests/kmac_smoketest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.252
false
false
12,985
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // prim_diff_to_alert: This module receives a differentially encoded alert request and translates // that to an alert signal with the alert protoco...
opentitan/hw/ip/prim/rtl/prim_diff_to_alert.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.215
false
false
2,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 #include "sw/device/lib/crypto/include/aes_gcm.h" #include "sw/device/lib/base/hardened.h" #include "sw/device/lib/base/hardened_memory.h" #include ...
opentitan/sw/device/lib/crypto/impl/aes_gcm.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.311
false
false
26,628
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // speed test vseq class spi_host_speed_vseq extends spi_host_smoke_vseq; `uvm_object_utils(spi_host_speed_vseq) `uvm_object_new constraint sp...
opentitan/hw/ip/spi_host/dv/env/seq_lib/spi_host_speed_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.211
false
false
1,704
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class sysrst_ctrl_env extends cip_base_env #( .CFG_T (sysrst_ctrl_env_cfg), .COV_T (sysrst_ctrl_env_cov), .VIRT...
opentitan/hw/ip/sysrst_ctrl/dv/env/sysrst_ctrl_env.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.226
false
false
1,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 #include <string.h> #include "sw/device/lib/base/csr.h" #include "sw/device/lib/crypto/impl/state.h" #include "sw/device/lib/crypto/include/aes.h" #...
opentitan/sw/device/tests/crypto/stateful_kats_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.179
false
false
14,549
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Write-once ePMP/CHERIoT execution mode switch. // // The FSM resets unlocked and advances on the first write to the lock register. Once locked i...
opentitan/hw/ip/rv_core_ibex/rtl/rv_core_ibex_cheriot_switch.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.386
false
false
3,369
-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 kmac_smoke_vseq extends kmac_base_vseq; `uvm_object_utils(kmac_smoke_vseq) `uvm_object_new bit kmac_done = 0; // ...
opentitan/hw/ip/kmac/dv/env/seq_lib/kmac_smoke_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.231
false
false
14,079
-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_adc_ctrl.h" #include <assert.h> #include "sw/device/lib/base/bitfield.h" #include "sw/device/lib/base/macros.h" #in...
opentitan/sw/device/lib/dif/dif_adc_ctrl.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.099
false
false
19,902
-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 Load-Store Unit * * Read and write data from/to the data memory (DMEM). Used by the base and the BN instruct...
opentitan/hw/ip/otbn/rtl/otbn_lsu.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.243
false
false
5,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 #ifndef OPENTITAN_HW_DV_VERILATOR_CPP_SCRAMBLED_ECC32_MEM_AREA_H_ #define OPENTITAN_HW_DV_VERILATOR_CPP_SCRAMBLED_ECC32_MEM_AREA_H_ #include <vector...
opentitan/hw/dv/verilator/cpp/scrambled_ecc32_mem_area.h
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.448
false
false
2,675
-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-side handling of Common Command Codes. module i3c_controller_ccc import i3c_controller_pkg::*; import i3c_ctrl_ccc_pkg::*; import...
opentitan/hw/ip/i3c/rtl/i3c_controller_ccc.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.344
false
false
8,113
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "hw/top/dt/kmac.h" // Generated #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/macros.h" #include "sw/device/lib/dif/d...
opentitan/sw/device/tests/kmac_save_restore_smoketest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.311
false
false
8,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 #include "hw/top/dt/rstmgr.h" // Generated #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/testing/rstmgr_testutils.h" #include "sw/d...
opentitan/sw/device/tests/rv_dm_access_after_hw_reset.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.312
false
false
1,714
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class aes_common_vseq extends aes_base_vseq; `uvm_object_utils(aes_common_vseq) constraint num_trans_c { num_trans inside {[1:2]}; } `uv...
opentitan/hw/ip/aes/dv/env/seq_lib/aes_common_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.175
false
false
8,126
-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_ctrl_env extends cip_base_env #(.CFG_T (racl_ctrl_base_env_cfg), .COV_T ...
opentitan/hw/ip/racl_ctrl/dv/env/racl_ctrl_env.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.159
false
false
2,627
-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_gpio.h" #include "sw/device/lib/dif/dif_p...
opentitan/sw/device/tests/sim_dv/gpio_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.466
false
false
10,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 //############################################################################ // *Name: ast_pkg // *Module Description: AST Package //###############...
opentitan/hw/top_darjeeling/ip/ast/rtl/ast_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.13
false
false
6,671
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_HW_IP_OTBN_DV_MEMUTIL_SV_UTILS_H_ #define OPENTITAN_HW_IP_OTBN_DV_MEMUTIL_SV_UTILS_H_ #include <svdpi.h> // Utility function that ...
opentitan/hw/ip/otbn/dv/memutil/sv_utils.h
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.406
false
false
1,183
-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 sec_cm_prim_sparse_fsm_flop_bind (); `ifndef GATE_LEVEL bind prim_sparse_fsm_flop prim_sparse_fsm_flop_if #( .Width(Width), .CustomF...
opentitan/hw/dv/sv/sec_cm/sec_cm_prim_sparse_fsm_flop_bind.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.273
false
false
399
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // module prim_fifo_sync_bind_fpv; localparam int unsigned Width = 4; // need to instantiate by hand since bind statements inside // generate...
opentitan/hw/ip/prim/fpv/tb/prim_fifo_sync_bind_fpv.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.054
false
false
4,029
-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 Decoder */ module otbn_decoder import otbn_pkg::*; ( // For assertions only. input logic cl...
opentitan/hw/ip/otbn/rtl/otbn_decoder.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.157
false
false
41,245
-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_ctrl_otp: A FSM that performs the read-set-write algorithm and supports all commands issued // by otp_ctrl. // // It bridges two clock doma...
opentitan/hw/ip/rram_ctrl/rtl/rram_ctrl_otp.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.211
false
false
26,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 // This sequence asserts 'fifo_ctrl.acqrst' at the end of transaction. // Upon asserting 'fifo_ctrl.acqrst', dut has to be 'target idle' state. // Be...
opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_target_fifo_reset_acq_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.364
false
false
1,610
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class spi_device_base_vseq extends cip_base_vseq #( .CFG_T (spi_device_env_cfg), .RAL_T (spi_device_reg_b...
opentitan/hw/ip/spi_device/dv/env/seq_lib/spi_device_base_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.126
false
false
4,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 class rram_ctrl_base_test extends cip_base_test #( .CFG_T(rram_ctrl_env_cfg), .ENV_T(rram_ctrl_env) ); `uvm_component_utils(rram_ctrl_ba...
opentitan/hw/ip/rram_ctrl/dv/tests/rram_ctrl_base_test.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.474
false
false
858
-1