Intel Accelerator Functional Unit (AFU) Simulation Environment (ASE) Quick Start User Guide

ID 683200
日付 12/04/2018
Public

1.4.1. Simulation in Client-Server Mode

The following example flow introduces the basic ASE scripts. All examples can be simulated with the ASE, except eth-e2e_e10 and eth-e2e_e10.

Simulation requires two software processes: one for RTL simulation and the other to run the connected software. To construct an RTL simulation environment, execute the following in $OPAE_PLATFORM_ROOT/hw/samples/hello_afu:

$ afu_sim_setup --source hw/rtl/filelist.txt build_sim

This command constructs an ASE environment in the build_sim subdirectory.

To build and execute the simulator:

$ cd build_sim
$ make
$ make sim

The simulator prints a message that it is ready for simulation. It also prints a message prompting you to set the ASE_WORKDIR environment variable.

Open another shell for software simulation. To build and run the software in the new shell:

$ cd $OPAE_PLATFORM_ROOT
$ export ASE_WORKDIR=$OPAE_PLATFORM_ROOT/hw/samples/hello_afu/build_sim/work
$ cd $OPAE_PLATFORM_ROOT/hw/samples/hello_afu/sw
$ make clean
$ make USE_ASE=1
$ ./hello_afu
注: The specific pathname for ASE_WORKDIR may vary. Use the pathname provided by the simulator prompt.

The software and simulator run, log transactions and exit.