180 likes | 291 Views
Application of XSBase270 and FPGA. Presenter : Ming-Hsien Tsai. Outline. Introduction XSbase270 QT Linux Device Drivers Development Environment Principle FPGA Communicating with Hardware Example. Outline. Introduction XSbase270 QT Linux Device Drivers Development Environment
E N D
Application of XSBase270 and FPGA Presenter:Ming-Hsien Tsai
Outline • Introduction • XSbase270 • QT • Linux Device Drivers • Development Environment • Principle • FPGA • Communicating with Hardware • Example
Outline • Introduction • XSbase270 • QT • Linux Device Drivers • Development Environment • Principle • FPGA • Communicating with Hardware • Example
XSbase270 • XSbase270 is a embedded portable application development platform base on PXA270 processor
QT • Qt is a cross-platform application development framework, widely used for the development of GUI(Graphical User Interface) programs. • Qt uses standard C++ to build programs. • We used Qt3 to build GUI applications.
QT • The GUI programs can rapid build by QT Designer tool. Fig. 1. The example of GUI
Linux Device Drivers Fig. 2. Device driver communicating
Outline • Introduction • XSbase270 • QT • Linux Device Drivers • Development Environment • Principle • FPGA • Communicating with Hardware • Example
Development Environment • OS : Ubuntu 8.10 • Target Kernel : Linux 2.6.9 • Arm-linux-gcc version : 3.3.2 • FPGA : Quartus II 8.0 • QT : Embedded 3.3.8b
Outline • Introduction • XSbase270 • QT • Linux Device Drivers • Development environment • Principle • Communicating with Hardware • FPGA • Example
Communicating with Hardware • Programming the FPGA device driver functions: • Open() • Read() • Write() • Close()
Communicating with Hardware • FPGA register physical address define in fpga_reg_set.h • #define CS5_BASE_ADDR 0x14000000 • #define SW_PHY_ADDR CS5_BASE_ADDR+0x20000 (read) • #define LED_PHY_ADDR CS5_BASE_ADDR+0x0 (write)
FPGA • Read Cycle Fig. 3. Timing Diagram
0x0=000000000000000000 LED_PHY_ADDR : 0 FPGA wren SA[17..14] SA_CS5 rden SA_OE 0x20000=100000000000000000 SW_PHY_ADDR : 8 Fig. 4. Decoder
FPGA Fig. 5. Recorder
Outline • Introduction • XSbase270 • QT • Linux Device Drivers • Development Environment • Principle • FPGA • Communicating with Hardware • Example
Example • The example is a the action recorder that can record the buttons by clicking for you. Then it can click the replay button to release the steps.