RV32 SoC DS UG
High-Perf RV32 SoC DS UG
RV64 SoC DS UG API and Examples
Embedded IDE UG
Loading...
Searching...
No Matches
APB3 Slave Demo

This demo (apb3Demo directory) shows how to use an APB3 slave peripheral where APB3 slave is attached to a pseudorandom number generator. When user run the application, the Sapphire SoC programs the APB3 slave to stop generating a new random number and reads the last random number generated. The test passes if the returned data is a non-zero value.

Note
The structure of apb3_instance_t (app/apb3_slave.h) is based on the Demo only! User might need to modify the structure of apb3_instance_t based on custom APB3 slave module.

Newlib

By default, newlib-nano is used for this demo.

See also
User Debug Configuration - To learn more about User Debug Configuration.

Execution Sequence:

The following shows the expected execution sequence:

APB3 Slave 0 Demo!
Random number: 0x23857a30
Passed!