Charles.Forsyth20060303-partialeea662d19 years agoHistory
97 lines · 2.4 KB · Text
RawDownload
.TH FPGA 3.SH NAMEfpga \- interface to on-board FPGA.SH SYNOPSIS.B "bind -a #F /dev".PP.B /dev/fpgaclk.br.B /dev/fpgactl.br.B /dev/fpgamemb.br.B /dev/fpgamemw.br.B /dev/fpgaprog.br.B /dev/fpgastatus.SH DESCRIPTION.I Fpgaallows configuration of an on-board FPGA (eg, the Altera Flex6000 on the Bright Star Engineering ip-Engine),control of its clocks and environment, and raw access to any devices presented in the FPGA address space.On booting, the FPGA subsystem is normally left powered down and the system's external clocks are not directed tothe processor's output pins, to conserve power if the subsystem is unused..PPThe control file.B fpgactlaccepts the following requests:.TF "power off".TP.BI bclk " n"Set BCLK output to.I nMHz,where.I nmust be a divisor of the system clock frequency (eg, of 48 if the system is running at 48 MHz)..TP.BI powerPower up the FPGA subsystem (that is automatically done when.B fpgaprogis accessed)..TP.B "power off"Power down the FPGA subsystem..TP.B resetReset the FPGA, forcing it into configuration mode (automatically done when.B fpgaprogis accessed)..TP.BI vclk " n m v r"Program the clock synthesiser with the given parameters, and enable its output as VCLK..TP.B "vclk off"Disable output from the clock synthesiser..PD.PPThe files.B fpgamemband.B fpgamemwgive 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.BR fpgamemw .The interpretation of the data, including the data format andwhether byte or word access is required, is completely determinedby the program configured into the FPGA..PPThe write-only file.B fpgaprogconfigures 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 thedevice is configured with the data written.The write returns an error if configuration fails..PPThe read-only file.B fpgastatuscontains a single line of text giving the state of the two status bits in the FPGA interface.The word.B configappears if.B CONFIG_DONEis set, and.B !configotherwise; the word.B statusappears if.B nSTATUSis set, and.B !statusotherwise..SH SOURCE.B /os/ipengine/devfpga.c.SH SEE ALSO.IR fpgaload (8)