By default, a platform port attribute is a string name used to construct an
attribute of type
FileIO. The string specifies the
name of an input or output file relative to the current directory that will source
or sink the platform data. The explicit form is specified in the following example
FileIO *in = new FileIO(“input.txt”); FileIO *out = new FileIO(“output.txt”); simulation::platform<1,1> platform(in,out);
FileIO ports are solely for
the purpose of application simulation in the absence of an actual hardware platform.
They are provided as a matter of convenience to test out a data flow graph in
isolation before it is connected to a real platform. An actual hardware platform
exports either stream or memory ports.