Chapter 4: Simulating the H. 264 Motion Estimation Engine Core
R
4.Testbench source file:
/HDL/LowCost_MotionEstimation/MotionEstimation/Testbench/ MotionEstimation_TB.vhd
Running the Test Bench
To run the test bench:
1.
If the the following error is received, the user needs to run the refresh command, vcom
#**Error:
2.In the ModelSim environment, enter run
The stimulus data for this simulation is held in the
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\stimul i directory, consisting of several input text files and some expected output text files. The stimulus data files and expected output files provided contain data extracted from the reference C model (see [Ref 1]).
The simulation generates these output files:
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ MotionEstimation_MVs.out.txt
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ MotionEstimation_ParamsMB.out.txt
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ MotionEstimation_SADs.out.txt
that are directly comparable to the reference expected output.
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ stimuli\MotionEstimation_MVs.out.txt
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ stimuli\MotionEstimation_ParamsMB.out.txt
\HDL\LowCost_MotionEstimation\MotionEstimation\Testbench\ stimuli\MotionEstimation_SADs.out.txt
Note: Xilinx has provided a .vho source file as an example of how to instantiate the Motion Estimation Engine core. It is not provided as compilable source code for ModelSim. All simulations are to be run using the precompiled libraries provided.
In Chapter 5, “Verifying the System,” of this document, the process by which stimulus and expected results are generated from the reference code is described. The generated files may be used in place of the default simulation files provided with the release, but must reside in the locations mentioned above during simulation.
22 | www.xilinx.com | H.264 Motion Estimation Engine |
|
| UG453 (v1.1) April 22, 2008 |