This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:ztex_boards:ztex_fpga_boards:porting_to_1_15y [2012/05/18 09:41] – created 84.181.63.250 | en:ztex_boards:ztex_fpga_boards:porting_to_1_15y [2012/05/18 10:11] (current) – [Host software] 84.181.63.250 | ||
---|---|---|---|
Line 24: | Line 24: | ||
===== Firmware ===== | ===== Firmware ===== | ||
The EZ-USB controls the FPGA communication using the CS signals. These signals are implemented in the Firmware Kit of the SDk and can be controlled by the host software. In simplest case only the FPGA board identification macro has to be changed (to "'' | The EZ-USB controls the FPGA communication using the CS signals. These signals are implemented in the Firmware Kit of the SDk and can be controlled by the host software. In simplest case only the FPGA board identification macro has to be changed (to "'' | ||
+ | |||
+ | For more complex applications the following methods, macros and variables are available. | ||
+ | |||
+ | Variables: | ||
+ | <code c> | ||
+ | __xdata BYTE select_num; | ||
+ | __xdata BYTE prev_select_num; | ||
+ | </ | ||
+ | |||
+ | The Macro '' | ||
+ | |||
+ | <code c> | ||
+ | # | ||
+ | OLD_IOC[prev_select_num] = IOC; | ||
+ | IOC = OLD_IOC[select_num]; | ||
+ | ] | ||
+ | </ | ||
+ | |||
+ | The method | ||
+ | <code c> | ||
+ | void select_fpga ( BYTE fn ) | ||
+ | </ | ||
+ | can be used to select an FPGA. In particular this method | ||
+ | - set '' | ||
+ | - deselect previous FPGA | ||
+ | - calls macro '' | ||
+ | - select new FPGA. | ||
===== Host software ===== | ===== Host software ===== | ||
+ | The host software API contains two methods for multi-FPGA boards: | ||
+ | |||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | |||
+ | ===== Examples ===== | ||
+ | Simple examples can be found is the SDK package. A more complex application (which uses the '' | ||
+ | |||
+ | |||