Skip to content
This repository has been archived by the owner on Sep 17, 2024. It is now read-only.

MPF RTL Import

Michael Adler edited this page Sep 19, 2017 · 2 revisions

Importing MPF Into a Project

MPF follows the general BBB convention for importing hardware sources and timing constraints.

Simulation

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

Synthesis

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

Example

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.

Clone this wiki locally