The control file fpgactl accepts the following requests:
The files fpgamemb and fpgamemw give 8-bit and 16-bit access respectively to the address space interpreted by the FPGA. The file offset is the address read or written within that space; offset and count must both be even for fpgamemw. The interpretation of the data, including the data format and whether byte or word access is required, is completely determined by the program configured into the FPGA.
The write-only file fpgaprog configures the device. A single write provides an FPGA configuration in raw binary format. The FPGA subsystem is given power, the processor's clocks are made visible externally, and the device is configured with the data written. The write returns an error if configuration fails.
The read-only file fpgastatus contains a single line of text giving the state of the two status bits in the FPGA interface. The word config appears if CONFIG_DONE is set, and !config otherwise; the word status appears if nSTATUS is set, and !status otherwise.
|FPGA(3 )||Rev: Thu Feb 15 14:43:36 GMT 2007|