Help: ICE_ICELIB_PIC_LOADFILE

Loads code from file onto SHARC, PPC, IOC, etc.

Function PIC_LOADFILE - Loads code from file onto SHARC, PPC, IOC, etc.

PIC	p	Handle to Device 
string	filename Name of file in the ICE DAT subdirectory
int	flags	Run-time modifiers (FLG_SHARC, FLG_IOC, FLG_MOD, etc.)

Loads a program from a file into one of the chips on the card, according 
to the flags argument:  

  FLG_SHARC  -  the SHARC DSP code
  FLG_PPC    -  the PowerPC DSP code
  FLG_JVM    -  the FPGA JVM code
  FLG_IOC    -  the Altera IOC controller code
  FLG_MOD    -  the Altera code on an I/O Module
  FLG_PM     -  the Xilinx code on a Processor Module
  FLG_FC     -  the filter coefficients on a tuner chip

It must be a Midas file in the DAT subdirectory of the ICE tree. 
A * in the filename is replaced by the card name.  For example:

   pic_loadfile (p, "*", FLG_SHARC);

loads the file $ICEROOT/dat/icepic3.prm into the SHARC chip if "p" is
opened to an ICEPIC3 card.

   pic_loadfile (p, "*_t1", FLG_IOC);

loads the file $ICEROOT/dat/icembt3_t1.prm into the IOC chip if "p" is
opened to an ICEMBT3 card.

   pic_loadfile (p, "icecxd", FLG_MOD|0x2);

loads the file $ICEROOT/dat/icecxd.prm into the 2nd I/O Module's chip.

   pic_loadfile (p, "fc_damps", FLG_FC|0x5);

loads the filter file $ICEROOT/dat/fc_damps.prm onto tuner #5.

This function ends up calling PIC_LOADSHARC, PIC_LOADPPC, PIC_LOADIOC, 
PIC_LOADMOD, or PIC_LOADFC.  See the help on these routines for more 
specific information.