From: Joris v. R. <jor...@jo...> - 2012-02-12 18:01:00
|
Hello Mirko, On 2012-02-12, Mirko Ciecinski wrote: > I realized, that we are using a special patched xc3sprog version 0.5 > with a new file progalgxcfxxp.cpp, based on progalgxcf.cpp. Are you saying that this special version of XC3SPROG programs your board successfully, while the main version of XC3SPROG does not? Just out of curiosity, where did you get the special version? > If you won't include mode pin set-up in xc3sprog, could you give me a > hint, how to add it. It is not so much a matter of pin set-up. XCFP devices can be used in a number of modes, including either serial or parallel, and either master or slave. The PROM contains a CCB register which determines the mode for which it is configured. This register is documented in Xilinx ug161: CCB<0> 1 = external clock, 0 = internal PROM clock CCB<2:1> 11 = serial output, 00 = parallel output CCB<3> 1 = PROM slave (FPGA master), 0 = PROM master CBC<5:4> 11 = 40 MHz clock, 01 = 20 MHz clock Currently, XC3SPROG programs XCFP devices in FPGA Master Serial mode (CCB=0xffff). XCFS devices don't have a CCB register; they always operate in FPGA Master Serial mode. It would be a good idea to add support for different modes. This could be done by adding an XCFP-specific command-line option which then gets translated into the proper value for the CCB register. Regards, Joris. |