Rebuilding the Software Driver - 5.0 English - PG318

Ternary CAM Search v5.0 LogiCORE IP Product Guide (PG318)

Document ID
PG318
Release Date
2025-11-26
Version
5.0 English

For a cam instance cam_0 the driver is available in the directory: cam_0_ex.gen/sources_1/ip/cam_0/sw/dpi/

Follow the instructions in the README file to rebuild the driver for the target platform, and then use the following command to update the driver binary:

make DPI_PATH="top_cam_tb.AXM"

The driver binary is now up to date: cam_0_ex.gen/sources_1/ip/cam_0/sw/dpi/cam_dpi.so

Next, use the following command to copy the driver to the imports directory used by simulation

cp cam_0_ex.gen/sources_1/ip/cam_0/sw/dpi.cam_dpi.so  imports

Alternatively, modify the reference in the elaborate script. For xsim simulation, it is located in the directory: cam_0_ex.sim/sim_1/behav/xsim/

elaborate.sh: xelab -sv_root ../../../../imports -sv_lib cam_dpi (original)

elaborate.sh: xelab -sv_root ../../../../cam_0_ex.gen/sources_1/ip/cam_0/sw/dpi -sv_lib cam_dpi (updated)