DE3 User Manual
59
FPGA
SOPC
PIO
Controller
S
y
st
em
I
n
te
rc
o
n
n
ec
t
F
a
b
ri
c
NIOS II
JTAG
Timer
On-Chip
Memory
PIO
Controller
Button
LED
50MHz
PLL
ISP1761
Controller
ISP1761
Usb Chip
Port1
Port2
Port3
Figure 5.1. Hardware Block Diagram of the USB-Host Demonstration
Figure 5.2
shows the NIOS II software stack of this demonstration. NIOS PIO block is provided by
NIOS II System. The block provides basic IO functions IORD and IOWR to access hardware
directly. The function prototypes are defined in the header file <io.h>. The ISP 1761 HAL block
implements functions to access internal registers and memories of the USB chip ISP 1761, and
high/full/low speed transfer functions for isochronous, interrupt, control, and bulk transfers. USB
Host controller block implements control functions for ISP1761 Host Controller. USB protocol
block implements USB protocol, including USB-Hub protocol. The USB-Mouse Class Driver
implements functions to communicate with HID USB-Mouse. The USB mass-storage Class Driver
implements functions to communicate with Bulk-Only Transport USB mass-storage based on “USB
Floppy Interface” (UFI) Command Set. UFI is defined based on the SCSI-2 and SFF-8070i
command set. The FAT File System block implements reading functions for FAT16 and FAT 32 file
system. Long filename is supported in this function block.
The workflow of the main block is shown in
Figure 5.3
. The standard output of this program is
JTAG-URAT. In the demo batch file, the output message will be display in nios2-terminal. When
the program detects an USB mass-storage device, it will list the files in root directory. If a file
Summary of Contents for Altera DE3
Page 1: ...Altera DE3 Board ...
Page 67: ...DE3 User Manual 64 Figure 5 5 Plug USB Devices into DE3 Figure 5 6 Display Device Information ...
Page 75: ...DE3 User Manual 72 Figure 5 14 Display SD Card Information for the SD Card Demonstration ...
Page 79: ...DE3 User Manual 76 Figure 5 19 Parameter Settings in DDR2 Controller ...
Page 114: ...DE3 User Manual 111 Figure D 5 The reported message of the invalid I O pins ...