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 "sw/device/lib/base/macros.h" #include "sw/device/silicon_creator/lib/attestation.h" #include "sw/device/silicon_creator/lib/nvm_ctrl.h" OT...
opentitan/hw/top_earlgrey/sw/device/silicon_creator/lib/otbn_boot_services.c
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.529
false
false
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 entropy_src_fw_ov_contiguous_vseq extends entropy_src_base_vseq; `uvm_object_utils(entropy_src_fw_ov_contiguous_vseq) `uvm_object_new p...
opentitan/hw/ip/entropy_src/dv/env/seq_lib/entropy_src_fw_ov_contiguous_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.2
false
false
1,642
-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 phy module package // package flash_phy_pkg; // flash phy parameters parameter int unsigned NumBanks = flash_ctrl_top_specific...
opentitan/hw/top_englishbreakfast/ip_autogen/flash_ctrl/rtl/flash_phy_pkg.sv
arch_code
opentitan
opentitan/hw/top_englishbreakfast
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.191
false
false
5,846
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Always On USB wake detect // `include "prim_assert.sv" module usbdev_aon_wake import usbdev_pkg::*;( input logic clk_aon_i, input logic ...
opentitan/hw/ip/usbdev/rtl/usbdev_aon_wake.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.197
false
false
6,626
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_disable_endpoint_vseq extends usbdev_spray_packets_vseq; `uvm_object_utils(usbdev_disable_endpoint_vseq) `uvm_object_new // Keep...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_disable_endpoint_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.246
false
false
2,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 #include <stdbool.h> #include <stdint.h> #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/abs_mmio.h" #include "sw/device/lib/bas...
opentitan/sw/device/silicon_creator/lib/irq_asm_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.516
false
false
2,581
-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_host_dummy_seq extends spi_base_seq; `uvm_object_utils(spi_host_dummy_seq) `uvm_object_new rand bit [CSB_WIDTH-1:0] csb_sel; rand ...
opentitan/hw/dv/sv/spi_agent/seq_lib/spi_host_dummy_seq.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.148
false
false
1,289
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 package clkmgr_test_pkg; // dep packages import uvm_pkg::*; import cip_base_pkg::*; import clkmgr_env_pkg::*; // macro includes `include...
opentitan/hw/top_darjeeling/ip_autogen/clkmgr/dv/tests/clkmgr_test_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.5
false
false
466
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class hmac_base_vseq extends cip_base_vseq #(.CFG_T (hmac_env_cfg), .RAL_T (...
opentitan/hw/ip/hmac/dv/env/seq_lib/hmac_base_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.211
false
false
34,497
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_SIGVERIFY_KEYS_SPX_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_ROM_SIGVERIFY_KEYS_SPX_H_ #include...
opentitan/sw/device/silicon_creator/rom/sigverify_keys_spx.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.804
false
false
2,098
-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_packer. Intended to be used with a formal tool. // To reduce the runtime for prim_packer, we limited the width paramet...
opentitan/hw/ip/prim/fpv/tb/prim_packer_tb.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.102
false
false
1,631
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class chip_sw_lc_walkthrough_vseq extends chip_sw_base_vseq; `uvm_object_utils(chip_sw_lc_walkthrough_vseq) `uvm_object_new // LC sends two 6...
opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_lc_walkthrough_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.156
false
false
4,422
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // First-order masked modular adder: computes inp1 + inp2 mod modulus on two Width-bit Boolean // sharings, producing a Width-bit Boolean sharing res...
opentitan/hw/ip/otbn/rtl/otbn_sec_add_mod.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.446
false
false
11,450
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // General Purpose Input/Output module `include "prim_assert.sv" module gpio import gpio_pkg::*; import gpio_reg_pkg::*; #( parameter logic...
opentitan/hw/top_darjeeling/ip_autogen/gpio/rtl/gpio.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.185
false
false
15,792
-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 otp_ctrl_bind; bind otp_ctrl tlul_assert #( .EndpointType("Device") ) core_tlul_assert_device ( .clk_i, .rst_ni, .h2d (c...
opentitan/hw/top_darjeeling/ip_autogen/otp_ctrl/dv/sva/otp_ctrl_bind.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.111
false
false
687
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Macros and helper code for using assertions. // - Provides default clk and rst options to simplify code // - Provides boiler plate template for ...
opentitan/hw/ip/prim/rtl/prim_assert.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.542
false
false
9,966
-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_TEST_CONFIG_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_OTTF_TEST_CONFIG_H_...
opentitan/sw/device/lib/testing/test_framework/ottf_test_config.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.831
false
false
6,003
-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/pinmux.h" // Generated #include "hw/top/dt/sysrst_ctrl.h" // Generated #include "sw/device/lib/base/mmio.h" #include "sw/d...
opentitan/sw/device/tests/sysrst_ctrl_outputs_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.181
false
false
7,388
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // CRC32 calculator // // This module takes in n-bits data words (n defined by BytePerWord parameter) and updates an // internally stored CRC with ...
opentitan/hw/ip/prim/rtl/prim_crc32.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.045
false
false
14,225
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 `include "prim_assert.sv" module prim_flop_no_rst #( parameter int Width = 1 ) ( input clk_i, input [Width-1:0] d_i,...
opentitan/hw/ip/prim_generic/rtl/prim_flop_no_rst.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.2
false
false
424
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Trivium and Bivium stream cipher primitives // // This module implements the Trivium [1] and its reduced variant Bivium [2] (more precisely // Biv...
opentitan/hw/ip/prim/rtl/prim_trivium.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.397
false
false
16,010
-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 jtag_id_pkg; // lowRISC JEDEC Manufacturer ID, bank 13 0xEF localparam logic [10:0] JEDEC_MANUFACTURER_ID = {4'd12, 7'b110_1111}; l...
opentitan/hw/top_darjeeling/rtl/jtag_id_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.429
false
false
972
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 /** * OTBN's interface to the KMAC HWIP dynamic application interface. * * This module manages how OTBN SW can interact with the OTBN-KMAC interfa...
opentitan/hw/ip/otbn/rtl/otbn_kmac_if.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.268
false
false
37,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 class rom_ctrl_base_vseq extends cip_base_vseq #( .RAL_T (rom_ctrl_regs_reg_block), .CFG_T (rom_ctrl_env_cfg), ...
opentitan/hw/ip/rom_ctrl/dv/env/seq_lib/rom_ctrl_base_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.261
false
false
9,961
-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 i3c_test_pkg; // dep packages import uvm_pkg::*; import cip_base_pkg::*; import i3c_env_pkg::*; // macro includes `include "uvm_...
opentitan/hw/ip/i3c/dv/tests/i3c_test_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.429
false
false
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 `include "rv_timer_base_vseq.sv" `include "rv_timer_random_vseq.sv" `include "rv_timer_min_vseq.sv" `include "rv_timer_max_vseq.sv" `include "rv_time...
opentitan/hw/ip/rv_timer/dv/env/seq_lib/rv_timer_vseq_list.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.25
false
false
501
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "aes_model_dpi.h" #include <assert.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include "aes.h" #include "crypto.h" #inc...
opentitan/hw/ip/aes/dv/aes_model_dpi/aes_model_dpi.c
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.171
false
false
13,288
-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 "hw/top/dt/edn.h" #include "sw/device/lib/base/memory.h" #include "sw/device/lib/base/mmio.h" #includ...
opentitan/sw/device/tests/aes_masking_off_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.446
false
false
7,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 #ifndef OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_STATUS_H_ #define OPENTITAN_SW_DEVICE_LIB_TESTING_TEST_FRAMEWORK_STATUS_H_ /** * Indicates t...
opentitan/sw/device/lib/testing/test_framework/status.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.887
false
false
3,069
-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 mbx_bind; // Bind assertion module to RoT-side SRAM interface bind mbx tlul_assert #( .EndpointType("Host") ) sram_tlul_assert_core...
opentitan/hw/ip/mbx/dv/sva/mbx_bind.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.174
false
false
1,259
-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 triggers std_fault_status.lcmgr_intg_err by force class flash_ctrl_lcmgr_intg_vseq extends flash_ctrl_err_base_vseq; `uvm_object_u...
opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_lcmgr_intg_vseq.sv
arch_code
opentitan
opentitan/hw/ip_templates
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.263
false
false
1,716
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Copyright Luke Valenty (TinyFPGA project, https://github.com/tinyfpga/TinyFPGA-Bootloader). // USB Full Speed Non-Buffered Protocol Engine for IN ...
opentitan/hw/ip/usbdev/rtl/usb_fs_nb_in_pe.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.23
false
false
15,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 class uart_tx_rx_vseq extends uart_base_vseq; `uvm_object_utils(uart_tx_rx_vseq) rand uint num_tx_bytes; rand uint num_rx_bytes; rand uint d...
opentitan/hw/ip/uart/dv/env/seq_lib/uart_tx_rx_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.113
false
false
7,593
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 package soc_dbg_ctrl_pkg; // Encoding generated with: // $ ./util/design/sparse-fsm-encode.py -d 4 -m 8 -n 7 \ // -s 29565098 --language=sv...
opentitan/hw/ip/soc_dbg_ctrl/rtl/soc_dbg_ctrl_pkg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.6
false
false
2,377
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Write random size of fraction the page. // fraction size : [1:16] buswords (4byte). // Start address is 4byte aligned. class flash_ctrl_write_rnd_...
opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_write_rnd_wd_vseq.sv
arch_code
opentitan
opentitan/hw/ip_templates
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.269
false
false
919
-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 alert sender/receiver pair. Intended to use with // a formal tool. module prim_alert_rxtx_fatal_tb import prim_alert_pkg...
opentitan/hw/ip/prim/fpv/tb/prim_alert_rxtx_fatal_tb.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.139
false
false
2,144
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // module pinmux_bind_fpv; bind pinmux pinmux_assert_fpv #( .TargetCfg(TargetCfg), .AlertAsyncOn(AlertAsyncOn), .SecVolatileRawUnlock...
opentitan/hw/top_darjeeling/ip_autogen/pinmux/fpv/tb/pinmux_bind_fpv.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.075
false
false
1,147
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/silicon_creator/rom_ext/rom_ext_boot_policy.h" #include "sw/device/silicon_creator/lib/boot_data.h" #include "sw/device/silicon_...
opentitan/sw/device/silicon_creator/rom_ext/rom_ext_boot_policy.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.179
false
false
3,595
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Hardened counter primitive: // // This internally uses a cross counter scheme with primary and a secondary counter, where the // secondary count...
opentitan/hw/ip/prim/rtl/prim_count.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.297
false
false
12,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 #include <stdint.h> #include "sw/device/lib/dif/dif_gpio.h" #include "sw/device/lib/dif/dif_pinmux.h" #include "sw/device/lib/runtime/log.h" #includ...
opentitan/sw/device/silicon_creator/manuf/tests/ujson_msg_padding_functest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.252
false
false
4,567
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #if defined(OPENTITAN_IS_EARLGREY) #include "hw/top/dt/usbdev.h" // Generated #include "sw/device/lib/dif/dif_usbdev.h" // Generated #...
opentitan/sw/device/tests/rstmgr_sw_rst_ctrl_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.39
false
false
14,281
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Running `write_test_phase` from SV causes the C side to perform // the checks for the new phase, so any preparation from SV needs to be // done pr...
opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_sysrst_ctrl_ulp_z3_wakeup_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.295
false
false
4,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 "sw/device/silicon_creator/lib/ownership/owner_verify.h" #include "sw/device/silicon_creator/lib/base/util.h" #include "sw/device/silicon_c...
opentitan/sw/device/silicon_creator/lib/ownership/owner_verify.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.289
false
false
6,362
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Interface for verifying the reseed activity of the masking PRNG inside AES. This interface // can only be used if masking is enabled via compile-t...
opentitan/hw/ip/aes/dv/sva/aes_masking_reseed_if.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.255
false
false
2,520
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Randomly set dut.ram_cfg_i and check this value is propagated to prim_generic_ram_1p. class sram_ctrl_ram_cfg_vseq extends sram_ctrl_base_vseq; ...
opentitan/hw/ip/sram_ctrl/dv/env/seq_lib/sram_ctrl_ram_cfg_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.238
false
false
934
-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/sha3.h" #include <stdbool.h> #include "sw/device/lib/base/hardened_memory.h" #include "sw/device/lib/crypto/...
opentitan/sw/device/lib/crypto/impl/sha3.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.189
false
false
17,602
-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 check if the bitrate of data transfer matches the bitrate specified for each mode of I2C // Sequence: // > Constrain the mode of I2C (Stan...
opentitan/hw/ip/i2c/dv/env/seq_lib/i2c_host_perf_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.216
false
false
8,344
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include <stdbool.h> #include <stdint.h> #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/macros.h" #include "sw/device/lib/dif/d...
opentitan/sw/device/tests/keymgr_dpe_sideload_otbn_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.404
false
false
8,134
-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/alert_handler.h" // Generated. #include "hw/top/dt/aon_timer.h" // Generated. #include "hw/top/dt/i2c.h" // Gene...
opentitan/sw/device/tests/rstmgr_alert_info_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.198
false
false
34,514
-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 reset test randomly introduces external resets, ndm resets, power glitches, and escalation // resets. class pwrmgr_reset_vseq extends pwrmgr_b...
opentitan/hw/ip_templates/pwrmgr/dv/env/seq_lib/pwrmgr_reset_vseq.sv
arch_code
opentitan
opentitan/hw/ip_templates
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.188
false
false
2,978
-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/sigverify/rsa_key.h" // `extern` declarations for `inline` functions in the header. extern uint32_t sigverify...
opentitan/sw/device/silicon_creator/lib/sigverify/rsa_key.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.833
false
false
376
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 interface usb20_block_if ( input clk_i, input rst_ni, output wire usb_vbus, inout wire usb_p, inout wire usb_n ); // Data Inputs pins ...
opentitan/hw/dv/sv/usb20_agent/usb20_block_if.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.255
false
false
1,766
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class gpio_base_vseq extends cip_base_vseq #( .CFG_T (gpio_env_cfg), .RAL_T (gpio_reg_block), .CO...
opentitan/hw/top_englishbreakfast/ip_autogen/gpio/dv/env/seq_lib/gpio_base_vseq.sv
arch_code
opentitan
opentitan/hw/top_englishbreakfast
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.22
false
false
4,555
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 /** * @file * @brief Plain software implementation of Triple DES (TDES). * * WARNING: This implementation is a plain software implementation and ...
opentitan/sw/device/lib/crypto/impl/tdes.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.228
false
false
26,644
-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 Masked Canright SBox with Mask Re-Use // // For details, see the following paper: // Canright, "A very compact 'perfectly masked' S-box for ...
opentitan/hw/ip/aes/rtl/aes_sbox_canright_masked.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.322
false
false
16,916
-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/dif/dif_base.h" #include "sw/device/lib/dif/dif_clkmgr.h" #include "sw/device/lib/test...
opentitan/sw/device/tests/clkmgr_jitter_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.327
false
false
2,641
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // class : gpio_filter_stress_vseq // This gpio random test sequence performs random no. of iteration such that // each iteration will the following ...
opentitan/hw/top_earlgrey/ip_autogen/gpio/dv/env/seq_lib/gpio_filter_stress_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.283
false
false
9,534
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/macros.h" #include "sw/device/silicon_creator/lib/epmp_state.h" // In-memory copy of the ePMP register configuration. /...
opentitan/sw/device/silicon_creator/lib/base/static_critical_epmp_state.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.818
false
false
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 "hw/top/dt/api.h" #include "hw/top/dt/uart.h" #include "sw/device/lib/arch/device.h" #include "sw/device/lib/base/mmio.h" #include "sw/devic...
opentitan/sw/device/tests/example_test_from_rom.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.5
false
false
2,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 // // Ascon duplex testbench module prim_ascon_duplex_tb ( input logic clk_i, input logic rst_ni, output logic test_done_o, output logic t...
opentitan/hw/ip/prim/pre_dv/prim_ascon/prim_ascon_duplex_tb/rtl/prim_ascon_duplex_tb.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.077
false
false
12,069
-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_KEYMGR_DPE_H_ #define OPENTITAN_SW_DEVICE_LIB_DIF_DIF_KEYMGR_DPE_H_ /** * @file * @brief <a href="/book/hw...
opentitan/sw/device/lib/dif/dif_keymgr_dpe.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.728
false
false
12,806
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 package gpio_pkg; typedef struct packed { logic valid; logic [31:0] data; } gpio_straps_t; endpackage : gpio_pkg
opentitan/hw/top_darjeeling/ip_autogen/gpio/rtl/gpio_pkg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.333
false
false
305
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // basic smoke test vseq class pattgen_smoke_vseq extends pattgen_base_vseq; `uvm_object_utils(pattgen_smoke_vseq) `uvm_object_new endclass : pa...
opentitan/hw/ip/pattgen/dv/env/seq_lib/pattgen_smoke_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.5
false
false
337
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class otbn_model_agent_cfg extends dv_base_agent_cfg; // interface handle used by driver, monitor & the sequencer, via cfg handle virtual otbn_m...
opentitan/hw/ip/otbn/dv/uvm/otbn_model_agent/otbn_model_agent_cfg.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.357
false
false
601
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Derived from code in the SPHINCS+ reference implementation (CC0 license): // https://github.com/sphincs/sphincsplus/blob/ed15dd78658f63288c7492c...
opentitan/sw/device/silicon_creator/lib/sigverify/sphincsplus/fors.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.446
false
false
3,249
-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 C test (sw/device/tests/sim_dv/keymgr_dpe_key_derivation.c) and // performs the checks on digest data. See the c...
opentitan/hw/top_darjeeling/dv/env/seq_lib/chip_sw_keymgr_dpe_key_derivation_vseq.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.172
false
false
34,344
-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/spi_flash_emulator.h" #include <stdalign.h> #include <stdint.h> #include "sw/device/lib/base/bitfield.h" #include "...
opentitan/sw/device/lib/testing/spi_flash_emulator.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.226
false
false
7,201
-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_agent_cfg extends dv_reactive_agent_cfg; virtual esc_if vif; virtual esc_probe_if probe_vif; bit is_async = 0; bit en_pi...
opentitan/hw/dv/sv/esc_agent/esc_agent_cfg.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.294
false
false
2,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_SILICON_CREATOR_MANUF_BASE_PERSO_TLV_DATA_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_MANUF_BASE_PERSO_TLV_DATA_H_ #i...
opentitan/sw/device/silicon_creator/manuf/base/perso_tlv_data.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.728
false
false
12,283
-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_virtual_sequencer extends cip_base_virtual_sequencer #( .CFG_T(usbdev_env_cfg), .COV_T(usbdev_env_cov) ); `uvm_component_utils(usb...
opentitan/hw/ip/usbdev/dv/env/usbdev_virtual_sequencer.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.273
false
false
413
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // This virtual sequence triggers OTP macro and check fatal errors by backdoor injecting ECC errors // and read back the injected error via DAI inter...
opentitan/hw/top_earlgrey/dv/env/seq_lib/chip_sw_otp_ctrl_escalation_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.41
false
false
2,328
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // Directed test to check flash_ctrl.single_err_cnt // Use low error injection pct to avoid counter saturation. // Counter can be saturated but not a...
opentitan/hw/ip_templates/flash_ctrl/dv/env/seq_lib/flash_ctrl_serr_counter_vseq.sv
arch_code
opentitan
opentitan/hw/ip_templates
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.375
false
false
711
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class usbdev_rx_crc_err_vseq extends usbdev_base_vseq; `uvm_object_utils(usbdev_rx_crc_err_vseq) `uvm_object_new task body(); // Configur...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_rx_crc_err_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.289
false
false
1,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 class usbdev_common_vseq extends usbdev_base_vseq; `uvm_object_utils(usbdev_common_vseq) constraint num_trans_c { num_trans inside {[1:2]}; ...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_common_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.238
false
false
726
-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/rram_ctrl/dv/env/rram_ctrl_env_cov.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.522
false
false
1,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 // // Testbench module for rv_plic. Intended to use with a formal tool. module rv_plic_tb import rv_plic_reg_pkg::*; #( // test all implementations...
opentitan/hw/top_earlgrey/ip_autogen/rv_plic/fpv/tb/rv_plic_tb.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.27
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 chip_env_cfg #(type RAL_T = chip_ral_pkg::chip_reg_block) extends cip_base_env_cfg #( .RAL_T(RAL_T) ); // Testbench settings uart_ag...
opentitan/hw/top_darjeeling/dv/env/chip_env_cfg.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.338
false
false
23,790
-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_handler_lpg_vseq extends alert_handler_entropy_vseq; `uvm_object_utils(alert_handler_lpg_vseq) `uvm_object_new constraint sig_int...
opentitan/hw/top_earlgrey/ip_autogen/alert_handler/dv/env/seq_lib/alert_handler_lpg_vseq.sv
arch_code
opentitan
opentitan/hw/top_earlgrey
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.1
false
false
1,254
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/silicon_creator/rom/rom_state.h" #include "sw/device/silicon_creator/lib/cfi.h" #include "sw/device/silicon_creator/lib/shutdown...
opentitan/sw/device/silicon_creator/rom/rom_state.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.246
false
false
3,315
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Testbench module for prim_count. // Intended to be used with a formal tool. `include "prim_assert.sv" module prim_count_tb #( parameter int ...
opentitan/hw/ip/prim/fpv/tb/prim_count_tb.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.143
false
false
947
-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_BITFIELD_H_ #define OPENTITAN_SW_DEVICE_LIB_BASE_BITFIELD_H_ #include <stdbool.h> #include <stdint.h> #include...
opentitan/sw/device/lib/base/bitfield.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.735
false
false
9,683
-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/i2c_testutils.h" #include <assert.h> #include <stdbool.h> #include <stdint.h> #include "hw/top/dt/i2c.h" #include "...
opentitan/sw/device/lib/testing/i2c_testutils.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.249
false
false
14,344
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // FIFO RST sequence // // Since the FIFO RST functionality can only be employed safely whilst the USB device is not // connected to the USB, the ver...
opentitan/hw/ip/usbdev/dv/env/seq_lib/usbdev_fifo_rst_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.25
false
false
3,447
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_APP_DEV_ECDSA_P256_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_K...
opentitan/sw/device/silicon_creator/lib/ownership/keys/fake/app_dev_ecdsa_p256.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.538
false
false
894
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #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_entropy_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.357
false
false
4,129
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // This class is a bundle that contains all the configuration parameters for the DUT. This avoids // repeating the variable declaration multiple time...
opentitan/hw/ip_templates/ac_range_check/dv/env/ac_range_check_dut_cfg.sv
arch_code
opentitan
opentitan/hw/ip_templates
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.238
false
false
2,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 #include "sw/device/lib/base/abs_mmio.h" // `extern` declarations to give the inline functions in the corresponding // header a link location. exter...
opentitan/sw/device/lib/base/abs_mmio.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.5
false
false
667
-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 module to collects SDR bytes and HDR-DDR Data Words into 32-bit DWORDs for writing // into the Target Rx Data Queue. // // - the data uni...
opentitan/hw/ip/i3c/rtl/i3c_dword_collector.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.203
false
false
2,436
-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/spi_host_smoketest.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.375
false
false
2,170
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/lib/base/status.h" #include "sw/device/lib/runtime/log.h" #include "sw/device/lib/testing/test_framework/check.h" #include "sw/de...
opentitan/sw/device/silicon_creator/rom_ext/e2e/boot_svc/boot_svc_enter_rescue_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.283
false
false
1,833
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 module alert_handler_bind; bind alert_handler tlul_assert #( .EndpointType("Device") ) tlul_assert_device ( .clk_i, .rst_ni, .h2...
opentitan/hw/top_darjeeling/ip_autogen/alert_handler/dv/sva/alert_handler_bind.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.158
false
false
511
-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: vcc_pgd // *Module Description: VCC Power Good //###########...
opentitan/hw/top_darjeeling/ip/ast/rtl/vcc_pgd.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.348
false
false
1,444
-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/nv_counter_testutils.h" #include <assert.h> #include <stdbool.h> #include <stdint.h> #include "sw/device/lib/base/m...
opentitan/sw/device/lib/testing/nv_counter_testutils.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.234
false
false
6,933
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class rv_dm_progbuf_read_write_execute_vseq extends rv_dm_base_vseq; `uvm_object_utils(rv_dm_progbuf_read_write_execute_vseq) `uvm_object_new ...
opentitan/hw/ip/rv_dm/dv/env/seq_lib/rv_dm_progbuf_read_write_execute_vseq.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.296
false
false
1,355
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 class uart_logger extends uvm_component; `uvm_component_utils(uart_logger) int logs_output_fd = 0; uart_agent_cfg cfg; uvm_tlm_analysis_fif...
opentitan/hw/dv/sv/uart_agent/uart_logger.sv
arch_code
opentitan
opentitan/hw/dv
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.116
false
false
3,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 // // Alert handler top `include "prim_assert.sv" module alert_handler import alert_handler_pkg::*; import prim_alert_pkg::*; import prim_esc_...
opentitan/hw/top_darjeeling/ip_autogen/alert_handler/rtl/alert_handler.sv
arch_code
opentitan
opentitan/hw/top_darjeeling
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.231
false
false
12,800
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 // // Binds functional coverage interface to the top level sram_ctrl module. module sram_ctrl_cov_bind; bind sram_ctrl cip_mubi_cov_if #(.Width(4))...
opentitan/hw/ip/sram_ctrl/dv/cov/sram_ctrl_cov_bind.sv
arch_code
opentitan
opentitan/hw/ip
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
other
false
0.263
false
false
680
-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 all 'spi_host' CIP interrupts // This includes both 'error' and 'spi_event' interrupts, as well as all of the // different event components t...
opentitan/sw/device/tests/spi_host_irq_test.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.255
false
false
16,478
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #include "sw/device/tests/penetrationtests/firmware/sca/otbn_sca.h" #include "ecc256_keygen_sca.h" #include "hkdf_otbn_sca.h" #include "sha2_otbn_sc...
opentitan/sw/device/tests/penetrationtests/firmware/sca/otbn_sca.c
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.188
false
false
41,137
-1
// Copyright lowRISC contributors (OpenTitan project). // Licensed under the Apache License, Version 2.0, see LICENSE for details. // SPDX-License-Identifier: Apache-2.0 #ifndef OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_KEYS_FAKE_ACTIVATE_ECDSA_P256_H_ #define OPENTITAN_SW_DEVICE_SILICON_CREATOR_LIB_OWNERSHIP_...
opentitan/sw/device/silicon_creator/lib/ownership/keys/fake/activate_ecdsa_p256.h
arch_code
opentitan
opentitan/sw/device
Apache-2.0
Apache-2.0
41049e9deb40e0602cd5272c40398be380ae2637
c
false
0.538
false
false
897
-1