Re: Initialize array using file i/o procedure/function?
Well, the DUT is a filter, and I've already tested it with a general
constant array. Instead, I'm trying to get familiar with text i/o
because I would like my design to be able to load different coefficient
data from the text file. Depending on the application, it might be
necessary to change the coefficient set used by the filter.
For now, I'd like to just stick with one set of coefficients. The
test-bench would have a method to read the text file during
elaboration, parse through to get the values, and store them in a
constant array, which I can then access during my event process to load
the new filter coefficients.
|