v2025-10-23 or later
This tutorial explains how to use file I/O in the RVX SoCs.
An RTL simulator with mixed-language support
An FPGA board connected to your computer - Manual
Any part starting with # should be replaced or modified according to your environment.
On Linux, use the bash shell for command-line operations.
On Windows, use the Windows Power Shell for command-line operations.
#(cloned directory)/rvx_platform_example/test_fileio
This directory will hereafter be referred to as #(example dir).
cmd) cd #(example dir)
cmd) make syn
cmd) ./util/fakefile
cmd) make allcmd) cd #(example dir)
cmd) make sim_rtl
cmd) cd sim_rtl
cmd) make test_fileio_sim
inst) Check the generated files in ./dumpcmd) cd #(example dir)
cmd) make arty-100t // or the FPGA board you have
cmd) cd imp_arty-100t_XXXX // referred to as #(fpga dir)
cmd) make impinst) Connect the FPGA board to your computer.
cmd) cd #(fpga dir)
cmd) make program
cmd) make printf
cmd) make hello.allcmd) cd #(fpga dir)
cmd) make test_fileio.allcmd) cd #(fpga dir)
cmd) make dump
inst) Check the generated files in #(fpga dir)/dumpTry running the ‘test_matrix_file’ application on both RTL simulation and FPGA prototype.
Refer to the ‘File I/O Porting’ section in the manual below:
SW - Standard Library
Porting.
Make sure to uncomment ‘USE_FAKEFILE=true’ in #(app dir)/rvx_each.mh.