Forum Discussion
Altera_Forum
Honored Contributor
10 years agoYou can create VHDL BFMs using two main techniques;
1. An array of global signals, eg., see the Altera Avalon-MM BFM source code and tutorial I wrote (link to PDF and source on this page) https://www.ovro.caltech.edu/~dwh/correlator/cobra_docs.html 2. Use a resolved signal and pass that as an extra argument Download https://www.ovro.caltech.edu/~dwh/correlator/pdf/esc-104code_hawkins_2015.zip and look at the Avalon-MM BFM code I wrote in ESC-104Code_Hawkins_2015.zip\dsp_tutorial\vhdl\lib\packages\test ESC-104Code_Hawkins_2015.zip\dsp_tutorial\vhdl\lib\altera_avalon\test If you've ever written "object-oriented C code" you'll appreciate that the resolved signal is acting like a reference to the BFM. Cheers, Dave