3.6.7 Temperature Sensor ........................................................................................................................ 35
3.7 Interface on Hard Processor System (HPS) ....................................................................................... 35
3.7.1 User Push-buttons, Switches and LED on HPS ............................................................................. 36
3.7.2 Gigabit Ethernet ............................................................................................................................. 36
3.7.3 UART ............................................................................................................................................. 38
3.7.4 DDR3 Memory on HPS ................................................................................................................. 39
3.7.5 QSPI Flash ..................................................................................................................................... 40
3.7.6 Micro SD ........................................................................................................................................ 41
3.7.7 USB 2.0 OTG PHY ........................................................................................................................ 42
3.7.8 G-Sensor ......................................................................................................................................... 43
3.7.9 128x64 Dots LCD .......................................................................................................................... 44
3.7.10 LTC Connector ............................................................................................................................... 45
CHAPTER 4 SOCKIT SYSTEM BUILDER ........................................................................................... 47
4.1 Introduction ........................................................................................................................................ 47
4.2 General Design Flow .......................................................................................................................... 47
4.3 Using SoCKit System Builder ............................................................................................................ 48
CHAPTER 5 EXAMPLES FOR FPGA .................................................................................................. 53
5.1 Audio Recording and Playing............................................................................................................. 53
5.2 A Karaoke Machine ............................................................................................................................ 56
5.3 DDR3 SDRAM Test ........................................................................................................................... 59
5.4 DDR3 SDRAM Test by Nios II .......................................................................................................... 61
5.5 IR Receiver Demonstration ................................................................................................................ 63
5.6 Temperature Demonstration ............................................................................................................... 68
CHAPTER 6 EXAMPLES FOR HPS SOC.............................................................................................. 71
6.1 Hello Program .................................................................................................................................... 71
6.2 Users LED, Switch and Button .......................................................................................................... 73
6.3 I2C Interfaced G-sensor ..................................................................................................................... 81
6.4 SPI Interfaced Graphic LCD .............................................................................................................. 84