
OpenLDI/FPD-LINK/LVDS Receiver Interface IP
User Guide
© 2017-2019 Lattice Semiconductor Corp. All Lattice trademarks, registered trademarks, patents, and disclaimers are as listed at
All other brand or product names are trademarks or registered trademarks of their respective holders. The specifications and information herein are subject to change without notice.
FPGA-IPUG-02021-1.1
37
5.5.
Running Functional Simulation
To run simulations using Active-HDL:
1.
Under the Tools menu, select Active-HDL.
2.
Modify the tb_params.v file located in \<project_dir>\fpdlinkrx_eval\testbench\.
Update testbench parameters to customize data size and/or other settings. For example
Modify WC value as needed in your simulation.
// WC - Number of bytes sent per line
`define WC 4320
See additional information about testbench parameters in
3.
In Active-HDL window, under the Tools tab, select Execute Macro.
4.
Select the .do file \<project_dir>\fpdlinkrx_eval\<instance_name>\sim\aldec\*run.do.
5.
Click OK.
6.
Wait for the simulation to finish.
lists the testbench directives which can be modified by setting the define in the tb_params.v file.
Table 5.2. Testbench Compiler Directives
Compiler Directive
Description
NUM_FRAMES
Sets the number of video frames
TOTAL_LINES
Sets the number of lines per frame
HFRONT
Number of cycles before HSYNC signal asserts (Horizontal Front Blanking)
HPULSE
Number of cycles HSYNC signal asserts
HBACK
Number of cycles after HSYNC signal asserts (Horizontal Rear Blanking)
VFRONT
Number of cycles before VSYNC signal asserts (Vertical Front Blanking)
VPULSE
Number of cycles VSYNC signal asserts
VBACK
Number of cycles after VSYNC signal asserts (Vertical Rear Blanking)
INIT_DRIVE_DELAY
If miscellaneous signals are disabled, driving delay should be set before testbench
starts sending data to IP
WC
Number of bytes sent per line