Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chipsalliance/caliptra-sw
/ functions
Functions
8,212 in github.com/chipsalliance/caliptra-sw
⨍
Functions
8,212
◇
Types & classes
2,319
↓ 3,355 callers
Function
new
Constructs an HwModel based on the cargo features and environment variables, and boot it to the point where CPU execution can occur. This includes pro
hw-model/src/lib.rs:139
↓ 731 callers
Method
len
(&self)
x509/src/cert_bldr.rs:221
↓ 507 callers
Method
read
(&self)
ureg/src/lib.rs:443
↓ 478 callers
Method
try_into
(self)
drivers/src/hand_off.rs:85
↓ 469 callers
Method
clone
(&self)
drivers/src/bounded_address.rs:77
↓ 451 callers
Method
as_bytes
(&self)
runtime/tests/runtime_integration_tests/common.rs:655
↓ 445 callers
Method
iter
(&self)
sw-emulator/lib/bus/src/register_array.rs:46
↓ 436 callers
Method
mailbox_execute
Executes `cmd` with request data `buf`. Returns `Ok(Some(_))` if the uC responded with data, `Ok(None)` if the uC indicated success without data, Err(
hw-model/src/lib.rs:1097
↓ 363 callers
Method
expect
(&mut self, expected: Token)
systemrdl/src/token_iter.rs:128
↓ 342 callers
Method
soc_ifc
A register block that can be used to manipulate the soc_ifc peripheral over the simulated SoC->Caliptra APB bus.
api/src/soc_mgr.rs:174
↓ 318 callers
Method
get
(&self, index: usize)
ureg/src/lib.rs:697
↓ 317 callers
Function
bytes_to_words_6
Converts a byte array to word arrays as used in the LMS types. Intended for use at compile-time or in tests / host utilities; not optimized for use in
lms-types/src/lib.rs:469
↓ 313 callers
Method
as_bytes
(&self)
api/src/mailbox.rs:347
↓ 262 callers
Method
as_bytes
Returns the byte representation of the packet's payload
runtime/src/packet.rs:75
↓ 241 callers
Method
populate_chksum
Calculate and set the checksum for a response payload Takes into account the size override for variable-length payloads
api/src/mailbox.rs:475
↓ 210 callers
Method
write
Write the string to UART # Arguments `str` - String to write to UART
drivers/src/uart.rs:37
↓ 199 callers
Method
at
(&self, index: usize)
ureg/src/lib.rs:688
↓ 190 callers
Function
run_rt_test
Run a test which boots ROM -> FMC -> test_bin. If test_bin_name is None, run the production runtime image.
runtime/tests/runtime_integration_tests/common.rs:323
↓ 179 callers
Method
to_bytes
(&self)
image/types/src/lib.rs:420
↓ 171 callers
Method
as_mut_bytes
(&mut self)
api/src/mailbox.rs:410
↓ 171 callers
Method
modify
(&self, f: impl FnOnce(TReg::WriteVal) -> TReg::WriteVal)
ureg/src/lib.rs:588
↓ 164 callers
Method
len
(&self)
common/eat/src/cbor.rs:77
↓ 164 callers
Method
regs_mut
(&mut self)
hw/latest/registers/src/dv.rs:39
↓ 161 callers
Method
step_until
Execute until the result of `predicate` becomes true.
hw-model/src/lib.rs:869
↓ 154 callers
Method
get_mut
(&mut self)
drivers/src/persistent.rs:589
↓ 150 callers
Method
regs
(&self)
hw/latest/registers/src/dv.rs:30
↓ 148 callers
Method
set
(&self, idx: u8, val: bool)
sw-emulator/lib/cpu/src/pic.rs:334
↓ 144 callers
Method
push
(&mut self, ch: u8)
hw-model/src/output.rs:108
↓ 140 callers
Method
step_until_boot_status
( &mut self, expected_status_u32: u32, ignore_intermediate_status: bool, )
hw-model/src/lib.rs:1009
↓ 135 callers
Method
val
(&self)
systemrdl/src/bits.rs:34
↓ 128 callers
Method
update
(&mut self, bytes: &[u8])
runtime/src/dpe_crypto.rs:350
↓ 124 callers
Method
write
(&self, f: impl FnOnce(TReg::WriteVal) -> TReg::WriteVal)
ureg/src/lib.rs:506
↓ 121 callers
Function
calc_checksum
Calculate the checksum 0 - (SUM(command code bytes) + SUM(request/response bytes))
api/src/checksum.rs:10
↓ 120 callers
Method
len
(&self)
sw-emulator/lib/periph/src/csrng.rs:561
↓ 118 callers
Function
bytes_to_words_8
Converts a byte array to word arrays as used in the LMS types. Intended for use at compile-time or in tests / host utilities; not optimized for use in
lms-types/src/lib.rs:487
↓ 110 callers
Method
write
(&mut self, size: RvSize, addr: AxiAddr, val: RvData)
sw-emulator/lib/periph/src/dma/axi_root_bus.rs:282
↓ 109 callers
Method
read
(&mut self, size: RvSize, addr: AxiAddr)
sw-emulator/lib/periph/src/dma/axi_root_bus.rs:245
↓ 108 callers
Function
build_firmware_rom
(id: &FwId<'static>)
builder/src/lib.rs:535
↓ 106 callers
Method
write
Write data and wait for ACK (blocking).
hw-model/src/model_fpga_subsystem.rs:345
↓ 98 callers
Method
get
(&self, idx: u8)
sw-emulator/lib/cpu/src/pic.rs:331
↓ 94 callers
Method
status
(&self)
drivers/src/mailbox.rs:253
↓ 93 callers
Method
finalize
Finalize the digest operations
drivers/src/hmac.rs:693
↓ 91 callers
Function
build_and_sign_image
( fmc: &FwId<'static>, app: &FwId<'static>, opts: ImageOptions, )
builder/src/lib.rs:633
↓ 91 callers
Function
build_hw_model_and_image_bundle
( fuses: Fuses, image_options: ImageOptions, )
rom/dev/tests/rom_integration_tests/helpers.rs:207
↓ 84 callers
Method
read
Receive data (blocking).
hw-model/src/model_fpga_subsystem.rs:297
↓ 82 callers
Method
iter_mut
(&mut self)
sw-emulator/lib/bus/src/register_array.rs:49
↓ 79 callers
Method
step_until_ready_for_runtime
Step until the system is ready to receive runtime mailbox commands.
hw-model/src/lib.rs:893
↓ 78 callers
Method
is_empty
(&self)
common/eat/src/cbor.rs:82
↓ 76 callers
Function
assert_fatal_fw_load
( hw: &mut DefaultHwModel, pqc_key_type: FwVerificationPqcKeyType, data: &[u8], err: CaliptraE
rom/dev/tests/rom_integration_tests/helpers.rs:175
↓ 71 callers
Method
to_big_endian
(&mut self)
sw-emulator/lib/crypto/src/helpers.rs:19
↓ 70 callers
Method
soc_mbox
A register block that can be used to manipulate the mbox peripheral over the simulated SoC->Caliptra APB bus.
api/src/soc_mgr.rs:196
↓ 69 callers
Method
len
(self, val: u32)
hw/latest/registers/src/spi_host.rs:256
↓ 69 callers
Method
set_device_lifecycle
(&mut self, val: DeviceLifecycle)
api/types/src/lib.rs:98
↓ 66 callers
Method
add
(&'a self, s: String)
systemrdl/src/string_arena.rs:16
↓ 66 callers
Method
set_debug_locked
(&mut self, val: bool)
api/types/src/lib.rs:86
↓ 65 callers
Method
cptra_flow_status
( &self, )
hw/latest/registers/src/soc_ifc.rs:254
↓ 65 callers
Method
write
(&mut self, size: RvSize, addr: RvAddr, val: RvData)
sw-emulator/lib/bus/src/mem.rs:136
↓ 64 callers
Method
execute
This function executes the Known Answer Tests (aka KAT) for LMS.
kat/src/lms_kat.rs:27
↓ 63 callers
Method
encode_int
Encode integer (automatically choose positive or negative)
common/eat/src/cbor.rs:155
↓ 63 callers
Function
execute_dpe_cmd
( model: &mut DefaultHwModel, dpe_cmd: &mut Command, expected_result: DpeResult, )
runtime/tests/runtime_integration_tests/common.rs:381
↓ 63 callers
Function
read
Same as [`std::fs::read`] but with more informative errors.
sw-emulator/compliance-test/src/fs.rs:33
↓ 62 callers
Function
report_boot_status
(val: u32)
drivers/src/soc_ifc.rs:28
↓ 62 callers
Method
schedule_poll_in
Schedules a future call to [`Bus::poll()`] at `self.now() + time`, and returns a `ActionHandle` that can be used with [`Timer::cancel`] or [`Timer::fi
sw-emulator/lib/bus/src/clock.rs:108
↓ 61 callers
Method
as_bytes_partial
(&self)
api/src/mailbox.rs:983
↓ 61 callers
Function
cfi_launder
Launder the value to prevent compiler optimization # Arguments `val` - Value to launder # Returns `T` - Same value
cfi/lib/src/cfi.rs:97
↓ 61 callers
Function
execute
(env: &mut Drivers)
runtime/src/fips.rs:142
↓ 61 callers
Method
to_little_endian
(&mut self)
sw-emulator/lib/crypto/src/helpers.rs:23
↓ 60 callers
Function
bit_range
(val: u16, msb: usize, lsb: usize)
sw-emulator/lib/cpu/src/instr/compression.rs:358
↓ 60 callers
Function
build_fw_image
(image_options: ImageOptions)
test/tests/fips_test_suite/fw_load.rs:46
↓ 59 callers
Method
regs
(&self)
hw-model/src/xi3c/controller.rs:194
↓ 59 callers
Method
update
Update the digest with data # Arguments `data` - Data to used to update the digest
drivers/src/hmac.rs:653
↓ 57 callers
Method
cptra_boot_status
( &self, )
hw/latest/registers/src/soc_ifc.rs:238
↓ 57 callers
Function
dump_caliptra_error_codes
libcaliptra/examples/generic/test.c:234
↓ 56 callers
Method
extend
(&mut self, data: &[u8], pcr_entry_id: PcrLogEntryId)
rom/dev/src/pcr.rs:44
↓ 55 callers
Method
as_bytes_partial_mut
(&mut self)
api/src/mailbox.rs:991
↓ 52 callers
Method
ctrl
(&self)
hw/latest/registers/src/doe.rs:94
↓ 52 callers
Function
write
(path: P, contents: C)
sw-emulator/compliance-test/src/fs.rs:27
↓ 50 callers
Function
rom_from_env
()
rom/dev/tests/rom_integration_tests/helpers.rs:192
↓ 50 callers
Method
sign
( &mut self, priv_key: Ecc384PrivKeyIn, pub_key: &Ecc384PubKey, data: &Ecc384S
drivers/src/ecc384.rs:617
↓ 50 callers
Method
status
(drivers: &mut Drivers, resp: &mut [u8])
runtime/src/cryptographic_mailbox.rs:413
↓ 49 callers
Method
increment_and_process_timer_actions
( &self, delta: u64, bus: &mut impl Bus, )
sw-emulator/lib/bus/src/clock.rs:167
↓ 49 callers
Method
take
Take at most `limit` characters from the output
hw-model/src/output.rs:341
↓ 48 callers
Function
handle_fatal_error
(code: u32)
common/src/error_handler.rs:8
↓ 48 callers
Method
peek
(&mut self, lookahead: usize)
systemrdl/src/token_iter.rs:112
↓ 47 callers
Function
bytes_from_words_le
(arr: &A)
sw-emulator/lib/periph/src/helpers.rs:95
↓ 47 callers
Method
write
Write data of specified size to given address
sw-emulator/lib/periph/src/soc_reg.rs:446
↓ 46 callers
Method
cptra_fw_extended_error_info
( &self, )
hw/latest/registers/src/soc_ifc.rs:218
↓ 46 callers
Function
fw_load_error_flow
( fw_image: Option<ImageBundle>, fuses: Option<Fuses>, exp_error_code: u32, pqc_key_type: FwVe
test/tests/fips_test_suite/fw_load.rs:144
↓ 46 callers
Method
subsystem_mode
(&self)
drivers/src/soc_ifc.rs:561
↓ 45 callers
Function
assert_error
( model: &mut DefaultHwModel, expected_err: CaliptraError, actual_err: ModelError, )
runtime/tests/runtime_integration_tests/common.rs:753
↓ 45 callers
Method
next
(&mut self)
systemrdl/src/token_iter.rs:119
↓ 44 callers
Method
step
Called once every clock cycle by the emulator so the BMC can do work
hw-model/src/bmc.rs:44
↓ 43 callers
Method
as_str
Access the contents of the log without modifying it.
sw-emulator/lib/bus/src/testing/log.rs:53
↓ 42 callers
Method
finish
(self)
runtime/src/dpe_crypto.rs:356
↓ 42 callers
Method
fuse_bank
(&self)
drivers/src/soc_ifc.rs:304
↓ 41 callers
Method
write_csr_machine
Write the specified Configuration status register as if we were in M mode # Arguments `reg` - Configuration status register to write `val` - Value
sw-emulator/lib/cpu/src/cpu.rs:508
↓ 40 callers
Method
encode_bytes
Major type 2: Byte string
common/eat/src/cbor.rs:164
↓ 40 callers
Function
pack_and_execute_command
* pack_and_execute_command * * HELPER - Create the caliptra buffer structs and call caliptra_mailbox_send * * @param[in] parcel struct with tx and
libcaliptra/src/caliptra_api.c:759
↓ 40 callers
Method
regs
(&self)
hw-model/src/model_fpga_subsystem.rs:192
↓ 39 callers
Method
offset
(&self)
sw-emulator/lib/cpu/src/instr/compression.rs:628
next →
1–100 of 8,212, ranked by callers