Module load_sram_program

Source

Structs§

SramProgramInfo
Information about the loaded SRAM program
SramProgramParams
Command-line parameters.

Enums§

ExecutionError
Detail of execution error of a SRAM program.
ExecutionMode
Execution mode for a SRAM program.
ExecutionResult
Result of execution of a SRAM program.
LoadSramProgramError
Errors related to loading an SRAM program.
SramProgramFile
Describe a file to load to SRAM.

Functions§

execute_sram_program
Execute an already loaded SRAM program. It takes care of setting up the ePMP.
load_and_execute_sram_program
Loads and execute a SRAM program. It takes care of setting up the ePMP.
load_elf_sram_program
Load a program into SRAM using JTAG (ELF files).
load_sram_program
Load a program into SRAM using JTAG. Returns the address of the entry point.
load_vmem_sram_program
Load a program into SRAM using JTAG (VMEM files).
prepare_epmp
Set up the ePMP to enable read/write/execute from SRAM and read/write access to the full MMIO region. Specifically, this function will:
prepare_sram_ctrl
Set up the sram_ctrl to execute code.