-
Change directory to
TySOM-2-7Z100orTySOM-3-ZU7:cd TySOM-2-7Z100or
cd TySOM-3-ZU7 -
Set paths to tools (Vivado, PetaLinux, Riviera-Pro) in
config.sh. -
Set the proper option of line-ends conversion for used git application
git config --global core.autocrlf input -
Prepare example by running the script:
./prepare_hardware.sh ./prepare_linux.sh ./prepare_sim_files.sh
-
Start the example:
./run_example_cosim.sh
-
After starting the example using previous steps, add waveform in Riviera, by typing the following command in its console:
wave sim:/design_1_wrapper/design_1_i/core_0/*
-
After Linux prompt shows up in QEMU use following commands:
cd /home/patalinux/pgmpa ./pgmpa powernn/powernn_100
7.1. After Linux prompt shows up in QEMU, start GDB using commands:
cd /home/patalinux/pgmpa
gdb --args ./pgmpa powernn/powernn_1007.2. Once GDB finishes loading, insert a breakpoint. For example, let's place breakpoint at the end of the register clearing loop:
break 1447.3. Now, run the program:
run7.4. The program should print names of the cleared registers and stop at the breakpoint. Switch to Riviera and pause the simulation using the "STOP" button or the Ctrl+Shift+C key combination. This should generate the waveform of the operation.
NOTE Until the the simulation is resumed, Linux running inside QEMU will be frozen and keyboard input will not be processed.
7.5. Press the green "play" button in Riviera, or press the Shift+F5 key combination to resume the simulation. Switch to the QEMU window again continue running the program:
continue- When
Finish PROGappears on the screen, press any key. The program should print the result and finish. On the waveform in Riviera,m00_axis_tdataport should now display the transferred data.