-
Notifications
You must be signed in to change notification settings - Fork 33
MPF RTL Import
MPF follows the general BBB convention for importing hardware sources and timing constraints.
Include BBB_cci_mpf/hw/sim/cci_mpf_sim_addenda.txt using relative includes (-F):
## Include MPF
-F $FPGA_BBB_CCI_SRC/BBB_cci_mpf/hw/sim/cci_mpf_sim_addenda.txt
Include BBB_cci_mpf/hw/par/qsf_cci_mpf_PAR_files.qsf:
## Include MPF
source $::env(FPGA_BBB_CCI_SRC)/BBB_cci_mpf/hw/par/qsf_cci_mpf_PAR_files.qsf
The sample CCI-P AFU platform interface, cci_afu_with_mpf.sv, instantiates MPF. This module is shared among multiple examples, so MPF options are passed in as preprocessor variables. The variables are set in application-specific code, such as samples/tutorial/03_linked_list/hw/rtl/cci_mpf_app_conf.vh.
The example imports MPF into simulation in base_addenda.txt and into Quartus in cci_examples_base_PAR_files.qsf. Both import modules depend on the environment variable "FPGA_BBB_CCI_SRC", which must point to the root of the BBB source tree.