The L2 cache component uses the XS3 swmem feature to handle reads from external flash. It has the advantage of read caching using on-chip RAM for additional performance and provides memory mapped access.
The CHANGELOG contains information about the current and previous versions. For a list of direct dependencies, look for DEPENDENT_MODULES in lib_random/module_build_info.
See: https://github.com/xmos/xcore_sdk/blob/develop/documents/quick_start/installation.rst
Make a directory for the build.
$ mkdir build
$ cd buildTo configure and build the firmware, run:
$ cmake ../
$ make -jTo flash the SwMem section, run:
$ make flashTo run the firmware with hardware, run:
$ make runThe L2 cache has a debug mode which will track and printout some useful metrics, like hit rate. Note that this mode will make the timing metrics unreliable so those are not printed. To configure and build with the L2 cache in debug mode, run:
$ cmake ../ -DL2_CACHE_DEBUG=1
$ make -jThe flash handler has a debug mode which will track and printout some useful metrics, like the number of flash reads and throughput. To configure and build with the flash handler in debug mode, run:
$ cmake ../ -DFLASH_DEBUG=1
$ make -jTo configure and build the firmware, placing all benchmark code and data in SRAM, run:
$ cmake ../ -DUSE_SWMEM=0
$ make -j