ocpiview
Description
The ocpiview tool displays the results of a simulation run
on an HDL (FPGA) simulator platform using
the simulation viewer provided by the simulator platform
associated with that run.
OpenCPI application developers generally run ocpiview after
application execution if they need
to examine the simulation results in detail. OpenCPI component
developers can also use ocpiview to examine the results of component unit test
executions on simulator platforms.
In a project, the results of FPGA simulator runs for OpenCPI applications
reside in the the simulations/ subdirectory of the applications/ directory.
Each time a simulator runs under ocpirun (or ocpidev run with the
--keep-simulations option), it
executes in a new subdirectory within the simulations/ subdirectory
created for that simulation run with the name
<assembly-name>.<sim-platform>.<date-time>.
Thus, running OpenCPI applications that use simulators results
in one or more subdirectories that hold the simulation
results for each simulation run.
The results of an FPGA simulator run for a component unit test
reside in a <sim-platform>/ subdirectory of the
component unit test’s run/ directory with the name
<test-case-name>.<unit-test-name>.hdl.simulation.
The <directory> argument specifies the directory that contains
a particular simulation run. If it is not used, the tool runs
the most recent simulation run in the simulations/ subdirectory.
Usage
$ ocpiview --help
The ocpiview command is a convenience script for viewing simulation results.
--------------------------------------------------------------------------------
usage: ocpiview [-h|-v] [<directory-path>]
Execute in a directory containing either a simulation run, or a "simulations"
folder (where the most recent run will be selected).
Optionally pass in the <directory-path>.
Examples
Inside a project, display the results of running an HDL assembly named
myassemblyon thexsimFPGA simulator:ocpiview simulations/myassembly.xsim.20200815143505
Inside a project, display the results of the most recent simulation run with verbose command output:
ocpiview -v
Inside the component unit test’s directory in the project, display the results of running a component unit test named
myteston thexsimFPGA simulator platform using the default test case:ocpiview run/xsim/case00.00.mytest.hdl.simulation