pico2-ice
RaspberryPi Pico with an iCE40 FPGA
Loading...
Searching...
No Matches
Ice_cram

FPGA CRAM access. More...

Functions

bool ice_cram_open (const ice_fpga fpga)
 Reset the iCE40 and set it to CRAM configuration mode and prepare the incoming SPI transfer.
 
int ice_cram_write (const uint8_t *buf, size_t len)
 Send the bitstream to the iCE40 CRAM, which configures the FPGA circuitry.
 
bool ice_cram_close (void)
 Terminate the SPI transaction and prepare the FPGA to start, waiting until it finishes booting.
 

Detailed Description

FPGA CRAM access.

Function Documentation

◆ ice_cram_close()

bool ice_cram_close ( void  )

Terminate the SPI transaction and prepare the FPGA to start, waiting until it finishes booting.

Returns
true if the FPGA configuration succeeded or false if it timed out.

◆ ice_cram_write()

int ice_cram_write ( const uint8_t *  buf,
size_t  len 
)

Send the bitstream to the iCE40 CRAM, which configures the FPGA circuitry.

Parameters
bufpointer to bitstream data to flush to the iCE40
lensize of that buffer
Returns
0, or negative error