Features Overview ................................................................................................................................. 1–1
General Description ............................................................................................................................... 1–1
Component List ...................................................................................................................................... 2–5
Stratix II Device (U60) ........................................................................................................................... 2–7
Browsing to Your Board ...................................................................................................................... C–5
iv Altera Corporation
About this Manual
How to Find
Information
This manual provides component details about the Nios® development
board, Stratix
The following table shows the reference manual’s revision history.
July 2005Updated for the EP2S30 device.
October 2004 Updated the heat sink illustrations.
September 2004First publication of Nios Development Board Reference
■The Adobe Acrobat Find feature allows you to search the contents of
a PDF file. Click the binoculars toolbar icon to open the Find dialog
box.
■Bookmarks serve as an additional table of contents.
■Thumbnail icons, which provide miniature previews of each page,
provide a link to the pages.
■Numerous links, shown in green text, allow you to jump to related
information.
™
II Edition.
DateDescription
Manual, Stratix II Edition
Altera Corporation v
July 2005
How to Contact Altera
How to Contact
Altera
For the most up-to-date information about Altera products, go to the
Altera world-wide web site at www.altera.com. For technical support on
this product, go to www.altera.com/mysupport. For additional
information about Altera products, consult the sources shown below.
tdi, input. Active-low signals are denoted by suffix n, e.g., resetn.
Anything that must be typed exactly as it appears is shown in Courier type. For
example:
actual file, such as a Report File, references to parts of files (e.g., the AHDL
keyword
Courier.
Numbered steps are used in a list of items when the sequence of the items is
important, such as the steps listed in a procedure.
The caution indicates required information that needs special consideration and
understanding and should be read prior to starting or continuing with the
procedure or process.
The warning indicates information that should be read prior to starting or
continuing the procedure or processes
c:\qdesigns\tutorial\chiptrip.gdf. Also, sections of an
SUBDESIGN), as well as logic function names (e.g., TRI) are shown in
Altera Corporation vii
July 2005
Typographic Conventions
viii Altera Corporation
July 2005
Introduction
Features
Overview
General
Description
The Nios development board, Stratix II Edition, provides a hardware
platform for developing embedded systems based on Altera Stratix II
devices. The Nios development board, Stratix II Edition provides the
following features:
■A Stratix II FPGA with more than 13,500 adaptive logic modules
(ALM) and 1.3 million bits of on-chip memory
■16 Mbytes of flash memory
■1Mbyte of static RAM
■16 Mbytes of SDRAM
■On board logic for configuring the Stratix II device from flash
memory
■On-board Ethernet MAC/PHY device
■Two 5V-tolerant expansion/prototype headers each with access to 41
Stratix II user I/O pins
■CompactFlash
■Mictor connector for hardware and software debug
■Two RS-232 DB9 serial ports
■Four push-button switches connected to Stratix II user I/O pins
■Eight LEDs connected to Stratix II user I/O pins
■Dual 7-segment LED display
■JTAG connectors to Altera
■50 MHz oscillator and zero-skew clock distribution circuitry
■Power-on reset circuitry
The Nios development board comes pre-programmed with a Nios II
processor reference design. Hardware designers can use the reference
design as an example of how to use the features of the Nios development
board. Software designers can use the pre-programmed Nios II processor
design on the board to begin prototyping software immediately.
TM
connector for Type I CompactFlash cards
®
devices via Altera download cables
This document describes the hardware features of the Nios development
board, including detailed pin-out information, to enable designers to
create custom FPGA designs that interface with all components on the
board.
fRefer to the Nios II Development Kit, Getting Started User Guide for
instructions on setting up the Nios development board and installing
Nios II development tools.
Altera Corporation 1–1
July 2005
General Description
Figure 1–1 shows a block diagram of the Nios development board.
Figure 1–1. Nios Development Board, Stratix II Edition Block Diagram
1Early shipments of the Nios development board, Stratix II
edition use an EP2S60F672C5ES device. This is a fully tested
engineering sample (ES) device. However, it has a known issue
affecting the M-RAM blocks. The issue can be worked around
easily, but some consideration is required when migrating
designs based on this device to a non-ES device. There is a label
near the FPGA; if the letters “ES” appear on the label, the device
is an engineering sample.
fFor details, refer to the Stratix II FPGA Family Errata Sheet and the
documented example designs included in the Nios II Development Kit.
1–2 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Introduction
FactoryProgrammed
Reference
Design
When power is applied to the board, on-board logic configures the
Stratix II FPGA using hardware configuration data stored in flash
memory. When the device is configured, the Nios II processor design in
the FPGA wakes up and begins executing boot code from flash memory.
The board is factory-programmed with a default reference design. This
reference design is a web server that delivers web pages via the Ethernet
port. For further information on the default reference design, see
Appendix C, Connecting to the Board via Ethernet.
In the course of development, you may overwrite or erase the flash
memory space containing the default reference design. Altera provides
the flash image for the default reference design so you can return the
board to its default state. See Appendix B, Restoring the Factory
Configuration for more information.
Altera Corporation 1–3
July 2005Nios Development Board Reference Manual, Stratix II Edition
Factory-Programmed Reference Design
1–4 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Component List
Figure 2–1. Nios Development Board
This section introduces all the important components on the Nios
development board (see Figure 2–1). A complete set of schematics, a
physical layout database, and GERBER files for the development board
are installed in the Nios II development kit documents directory.
See Figure 2–1 and Table 2–1 on page 2–6 for locations and brief
descriptions of all features of the board.
Altera Corporation 2–5
July 2005
Component List
Table 2–1. Nios Development Board, Stratix Edition Components & Interfaces (Part 1 of 2)
Board DesignationNameDescription
Featured Device
U60Stratix II FPGAEP2S60F672C5 or EP2S30F672C5 device with mounted
heat sink
User Interface
SW0 – SW3Push-button
switches
D0 – D7Individual LEDsEight individual LEDs driven by the FPGA
U8, U9Seven-segment
LEDs
Memory
U35, U36SRAM memoryTwo SRAM chips combined to form 1 Mbyte of fast, static
U5Flash memory16 Mbytes of nonvolatile memory for use by both the FPGA
U57SDRAM memory16 Mbytes of SDRAM
Connectors & Interfaces
U4, RJ1Ethernet
MAC/PHY
J19, J27Serial connectorsTwo serial connectors with 5 V-tolerant buffers. Supports all
PROTO1 (J11, J12, J13)Expansion
prototype
connector
PROTO2 (J15, J16, J17)Expansion
prototype
connector
CON3CompactFlash
connector
J25Mictor connectorMictor connector for debugging Nios II systems using a First
J24JTAG connectorConnects to the FPGA allowing hardware configuration from
J5JTAG connectorConnects to the configuration controller
Configuration & Reset
U3Configuration
controller
Four momentary contact switches for user input to the FPGA
Two seven-segment LEDs to display numeric output from the
FPGA
RAM
and the configuration controller
10/100 Ethernet MAC/PHY chip connected to an RJ-45
Ethernet connector
RS-232 signals.
Expansion headers connecting to 41 I/O pins on the FPGA.
Supplies 3.3V and 5.0V for use by a daughter card.
Expansion headers connecting to 41 I/O pins on the FPGA.
Supplies 3.3V and 5.0V for use by a daughter card.
CompactFlash connector for memory expansion
Silicon Solutions (FS2) debug probe.
Quartus II software and software debug from the Nios II IDE.
Altera EPM7128AE device used to configure the FPGA from
flash memory
2–6 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Table 2–1. Nios Development Board, Stratix Edition Components & Interfaces (Part 2 of 2)
Board DesignationNameDescription
SW8CPU Reset button Push-button switch to reboot the Nios II processor configured
in the FPGA
SW9Factory Config
button
SW10Reset, ConfigPush-button switch to reset the board
LED0 – LED3Configuration
status LEDs
Clock Circuitry
Y2Oscillator50 MHz clock signal driven to FPGA
J4External clock
input
Power Supply
J26DC power jack17 V DC unregulated power source
D34Bridge rectifierPower rectifier allows for center-negative or center-positive
Push-button switch to reconfigure the FPGA with the factoryprogrammed reference design
LEDs that display the current configuration status of the
FPGA
Connector to FPGA clock pin
power supplies
The sections that follow describe each component in detail.
Stratix II Device
(U60)
U60 is a Stratix II FPGA in a 672-pin FineLine BGA® package. Early
shipments of the Nios Development Board, Stratix II Edition included an
EP2S60F672C5 device. Some early boards used engineering sample parts,
indicated by “ES” after the part number. Later shipments of the board use
an EP2S30F672C5 device. Table 2–2 lists the device features.
Table 2–2. Stratix II Device Features (Part 1 of 2)
FeatureEP2S30EP2S60
ALMs13,55224,176
Adaptive look-up tables (ALUTs)27,10448,352
Equivalent LEs 33,88060,440
M512 RAM blocks 202329
M4K RAM blocks 144255
M-RAM blocks 12
Total RAM bits 1,369,7282,544,192
DSP blocks1636
Altera Corporation 2–7
July 2005Nios Development Board Reference Manual, Stratix II Edition
Stratix II Device (U60)
Table 2–2. Stratix II Device Features (Part 2 of 2)
FeatureEP2S30EP2S60
18-bit x 18-bit multipliers 64144
Enhanced PLLS24
Fast PLLs48
User I/O pins500492
The development board provides two separate methods for configuring
the Stratix II device:
1. Using the Quartus II software running on a host computer, a
designer configures the device directly via an Altera® download
cable connected to the Stratix II JTAG header (J24).
2.When power is applied to the board, a configuration controller
device (U3) attempts to configure the Stratix II device with
hardware configuration data stored in flash memory. For more
information on the configuration controller, see “Configuration
Controller Device (U3)” on page 2–25.
fFor Stratix II-related documentation including Stratix II pinout data refer
to the Altera Stratix II literature page at www.altera.com/ literature/litstx2.html.
Early shipments of the board had a heat sink mounted on the Stratix II
FPGA. Boards shipped later than May 2005 do not include the heat sink,
because thermal management is unnecessary for the majority of FPGA
designs for this board. A heat sink maintains the FPGA within its
specified thermal operating range, independent of the resource
utilization, clock frequency, and operating conditions of the FPGA. The
heat sink used on early shipments of the board is produced by Intricast
Inc., part number CS1995V01. See www.intricast.com for details.
fRefer to Altera's AN185: Thermal Management Using Heat Sinks for
information on using heat sinks with Altera devices.
2–8 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Push-Button
Switches (SW0 SW3)
Individual LEDs
(D0 - D7)
SW0 – SW3 are momentary-contact push-button switches and are used to
provide stimulus to designs in the Stratix II device. See Figure 2–2. Each
switch is connected to a Stratix II general-purpose I/O pin with a pull-up
resistor as shown in Tab le 2– 3. Each Stratix II device pin will see a logic 0
when its corresponding switch is pressed.
Table 2–3. Push Button Switches Pin Out
Tab le
Button
SW0W24
SW1W23
SW2Y24
SW3Y23
This Nios development board provides eight individual LEDs connected
to the Stratix II device. See Figure 2–2. D0 – D7 are connected to general
purpose I/O pins on the Stratix II device as shown in Ta bl e 2 –4 . When the
Stratix II pin drives logic 1, the corresponding LED turns on.
Table 2–4. LED Pin Out Table
LEDStratix II Pin
D0AD26
D1AD25
D2AC25
D3AC24
D4AB24
D5AB23
D6AB26
D7AB25
Stratix II Pin
Altera Corporation 2–9
July 2005Nios Development Board Reference Manual, Stratix II Edition
U8 and U9 are connected to the Stratix II device so that each segment is
individually controlled by a general-purpose I/O pin. When the Stratix II
pin drives logic 0, the corresponding LED turns on. See Figure 2–3 for
Stratix II pin-out details.
Figure 2–3. Seven-Segment LEDs
U35 and U36 are IDT IDT71V416S, 512 Kbyte x 16-bit asynchronous
SRAM devices. They are connected to the Stratix II device so they can be
used by a Nios II embedded processor as general-purpose memory. The
two 16-bit devices can be used in parallel to implement a 32-bit wide
memory subsystem. The factory programmed Nios II reference design
identifies these SRAM devices in its address space as a contiguous
1Mbyte, 32-bit-wide, zero-wait-state main memory.
The SRAM devices share address and data connections with the flash
memory and the Ethernet MAC/PHY device. For shared bus
information, see Appendix A, Shared Bus Table.
2–10 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
fRefer to www.idt.com for detailed information about the SRAM devices.
Flash Memory
(U5)
fSee www.amd.com for detailed information about the flash memory
U5 is a 16 Mbyte AMD AM29LV128M flash memory device connected to
the Stratix II device and can be used for two purposes:
1.A Nios II embedded processor implemented on the Stratix II device
can use the flash as general-purpose readable memory and nonvolatile storage.
2.The flash memory can hold Stratix II device configuration data that
is used by the configuration controller to load the Stratix II device at
power-up. See “Configuration Controller Device (U3)” on page 2–25
for related information.
A Nios II processor design in the FPGA can identify the 16 Mbyte flash
memory in its address space, and can program new data (either new
Stratix II configuration data, Nios II embedded processor software, or
both) into flash memory. The Nios II embedded processor software
includes subroutines for writing and erasing flash memory.
The flash memory device shares address and data connections with the
SRAM chips and the Ethernet MAC/PHY chip. For shared bus
information, see Appendix A, Shared Bus Table.
The on-board configuration controller makes assumptions about whatresides-where in flash memory. For details see section “Flash Memory
Partitions” on page 2–27.
device.
Altera Corporation 2–11
July 2005Nios Development Board Reference Manual, Stratix II Edition
SDRAM Memory (U57)
SDRAM Memory
(U57)
The SDRAM device (U57) is a Micron MT48LC4M32B2 with PC100
functionality and self refresh mode. The SDRAM is fully synchronous
with all signals registered on the positive edge of the system clock.
The SDRAM device pins are connected to the Stratix II device (see
Tab le 2– 5). An SDRAM controller peripheral is included with the Nios II
development kit, allowing a Nios II processor to view the SDRAM device
as a large, linearly-addressable memory.
Table 2–5. SDRAM (U57) Pin Table (Part 1 of 2)
Pin NamePin NumberConnects to Stratix II Pin
A025AD4
A126AD3
A227AD5
A360W9
A461W10
A562AB10
A663AF5
A764AE5
A865AC6
A966AF6
A1024AA10
A1121Y9
BA022AE23
BA123AD23
DQ02W15
DQ14V14
DQ25AA16
DQ37AD16
DQ48AF17
DQ510AD17
DQ611AF18
DQ713AA17
DQ874V16
DQ976AB17
DQ1077AF19
DQ1179AD18
DQ1280AD19
2–12 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Table 2–5. SDRAM (U57) Pin Table (Part 2 of 2)
Pin NamePin NumberConnects to Stratix II Pin
DQ1382AF20
DQ1483AC17
DQ1585V17
DQ1631AB18
DQ1733AF21
DQ1834AD20
DQ1936AD21
DQ2037AF22
DQ2139AC18
DQ2240W18
DQ2342AB19
DQ2445AD22
DQ2547AE22
DQ2648AF24
DQ2750AE24
DQ2851AB7
DQ2953V10
DQ3054AA8
DQ3156AF3
DQM016AF7
DQM171AD7
DQM228AC7
DQM359AF8
RAS_N19AE17
CAS_N18AE16
CKE67AE20
CS_N20AE19
WE_N17AE18
CLK68AF12
fRefer to www.micron.com for detailed information.
Altera Corporation 2–13
July 2005Nios Development Board Reference Manual, Stratix II Edition
Ethernet MAC/PHY (U4)
Ethernet
MAC/PHY (U4)
fRefer to www.smsc.com for detailed information about the LAN91C111
The LAN91C111 (U4) is a mixed signal analog/digital device that
implements protocols at 10 Mbps and 100 Mbps. The control pins of U4
are connected to the Stratix II device so that Nios II systems can access
Ethernet via the RJ-45 connector (RJ1).See Figure 2–4 on page 2–14. The
Nios II development kit includes hardware and software components
that allow Nios II processor systems to communicate with the
LAN91C111 Ethernet device.
Figure 2–4. Ethernet RJ-45 Connector
The Ethernet MAC/PHY device shares address and data connections
with the flash memory and the SRAM chips. For shared bus information,
see Appendix A, Shared Bus Table
device.
Serial Port
Connectors (J19
& J27)
2–14 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
J19 and J27 are standard DB-9 serial connectors. These connectors are
typically used for communication with a host computer using a standard,
9-pin serial cable connected to (for example) a COM port. Level-shifting
buffers (U52 and U58) are used between J19 & J27 and the Stratix II
device, because the Stratix II device cannot interface to RS-232 voltage
levels directly.
J19 and J27 are able to transmit all RS-232 signals. Alternately, the
Stratix II design may use only the signals it needs, such as J19’s RXD and
TXD. LEDs are connected to the RXD and TXD signals, giving a visual
indication when data is being transmitted or received. Figure 2–5 and
Figure 2–6 show the pin connections between the serial connectors and
the Stratix II device.
Figure 2–5. Serial Connector J19
Figure 2–6. Serial Connector J27
Board Components
Expansion
Prototype
Connectors
(PROTO1 &
PROTO2)
Altera Corporation 2–15
July 2005Nios Development Board Reference Manual, Stratix II Edition
PROTO1 and PROTO2 are standard-footprint, mechanically-stable
connections that can be used (for example) as an interface to a specialfunction daughter card. Headers J11, J12, and J13collectively form
PROTO1, and J15, J16 and J17 collectively form PROTO2.
The expansion prototype connector interface includes:
■41 I/O pins for p rototyping. All 41 I/O pins connect to user I/ O pins
on the Stratix II device. Each signal passes through analog switches
to protect the Stratix II device from 5V logic levels. These analog
switches are permanently enabled. The output logic-level on the
expansion prototype connector pins is 3.3V.
●PROTO1 switches: U19, U20, U21, U22 and U25
●PROTO2 switches: U27, U28, U29, U30 and U31
■A buffered, zero-skew copy of the on-board oscillator output from
U2.
■A buffered, zero-skew copy of the Stratix II phase-locked loop (PLL)
output from U60.
Expansion Prototype Connectors (PROTO1 & PROTO2)
■A logic-negative power-on reset signal.
■Five regulated 3.3V power-supply pins (2A total max load for both
PROTO1 & PROTO2).
■One regulated 5V power-supply pin (1A total max load for both
PROTO1 & PROTO2).
■Numerous ground connections.
The PROTO1 expansion prototype connector shares Stratix II I/O pins
with the CompactFlash connector (CON3). Designs may use either the
PROTO1 connector or the CompactFlash connector.
fRefer to the Altera web site for a list of available expansion daughter
cards that can be used with the Nios development board at
www.altera.com/devkits.
Figure 2–7, andFigure 2–8 on page 2–17show connections from the
PROTO1 expansion headers to the Stratix II device. Unless otherwise
noted, labels indicate Stratix II device pin numbers.
2–18 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Figure 2–10. 6PROTO2 Pin Information - J15, J16 & J17
J16
GND
J15
A17
A18
K16
A19
C19
J17
C20NCGND
2
4
6
8
101214
1
3
5
7
9
11
13
16
182022
15
171921
GND
GND
D18
242628
232527
GND
A24NCH17
30
32
29
31
Board Components
B21
34
36
38
33
35
37
GND
40
39
J15
5
C
C
V
2
1
D
N
G
H15
RESET_n
16
18
H
K
6
4
5
3
F16
B20
C16
16
G
8
7
17
D
C17
B17
10
9
16
B
F17
B19
12
11
18
B
G17
18
G
14
13
E17
C18
A20
A21
GND
J17
A22
C21
D
D
N
N
G
G
2
4
1
3
C
N
4 pin 2)
5
nreg (U
u
V
(1)
E18
D
N
G
6
5
3_3
C
C
V
J18
D
N
G
8
7
3_3
C
C
V
B22
C22
D
D
N
N
G
G
10
12
9
11
17)
2 pin 6)
2 pin
(U
(U
SC
IN
_O
LK
2
_C
TO
2
RO
TO
P
RO
(2)
P
(3)
B24
D
N
G
14
13
4)
1
T (B
U
O
LK
_C
2
TO
RO
P
(4)
K17
D
N
G
16
15
3_3
C
C
V
J14
D
N
G
18
17
3_3
C
C
V
H18
D
N
G
20
19
3_3
C
C
V
Notes to Figure 2–10
(1) Unregulated voltage from DC power supply
(2) Clk from board oscillator
(3) Clk from FPGA via buffer
(4) Clk output from protocard to FPGA
Altera Corporation 2–19
July 2005Nios Development Board Reference Manual, Stratix II Edition
CompactFlash Connector (CON3)
CompactFlash
Connector
(CON3)
The CompactFlash connector header (CON3) enables hardware designs
to access a CompactFlash card. See Figure 2–11. The following two access
modes are supported:
■ATA (hot s w a p pable mode )
■IDE (IDE hard disk mode)
Figure 2–11. CompactFlash Connector
Most pins of CON3 connect to I/O pins on the FPGA. The following pins
have special connections:
■Pin 13 of CON3 (VCC) is driven by a power MOSFET that is
controlled by an FPGA I/O pin. This allows the FPGA to control
power to the CompactFlash card for the IDE connection mode.
■Pin 26 of CON3 (-CD1) is pulled up to 5V through a 10 Kohm resistor.
This signal is used to detect the presence of a CompactFlash card;
when the card is not present, the signal is pulled high through the
pull-up resistor.
■Pin 41 of CON3 (RESET) is pulled up to 5V through a 10 Kohm
resistor, and is controlled by the EPM7128AE configuration
controller. The FPGA can cause the configuration controller to assert
RESET, but the FPGA does not drive this signal directly.
1The CompactFlash connector shares several Stratix II I/O pins
with expansion prototype connector PROTO1. See “Expansion
Prototype Connectors (PROTO1 & PROTO2)” on page 2–15 for
details on PROTO1.
2–20 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Table 2–6 on page 2–21 provides CompactFlash pin out details.
Table 2–6. CompactFlash (CON3) Pin Table (Part 1 of 2)
Pin on
CompactFlash
(CON3)
1GNDGND
2D03H9
3D04C5
4D05C4
5D06F8
6D07E8
7-CEA9
8A10H11
9-OEW16
10A09A10
11A 08E7
12A07B3
13VCC
14A06B4
15A05E9
16A04C6
17A03B6
18A02C8
19A01D9
20A00D8
21D00H10
22D01D6
23D02A5
24WPF11
25-CD2
26-CD1AB16
27D11K10
28D12G9
29D13B5
30D14A6
31D15K11
CompactFlash
Function (U60)
Connects to
(2)
Y17
(3)
GND
(1)
Altera Corporation 2–21
July 2005Nios Development Board Reference Manual, Stratix II Edition
CompactFlash Connector (CON3)
Table 2–6. CompactFlash (CON3) Pin Table (Part 2 of 2)
Pin on
CompactFlash
(CON3)
CompactFlash
Function (U60)
32-CE2Y16
33-VS1
GND
34-OIORDC7
35-IOWRA7
36-WEE10
37RDY/BSYJ11
38VCC
39-CSEL
40-VS2
41RESET
Y17
GND
no connect
(4)
42-WAITD7
43-INPACKB7
44-REGB8
45BVD2G11
46BVD1C11
47D081J9
48D091A3
49D101C3
50GND
GND
Connects to
(3)
(2)
(3)
(3)
(3)
(1)
Note to Ta b l e 2 – 6
(1) All pin numbers represent I/O pins on the FPGA, unless
otherwise noted.
(2) This FPGA I/O pin controls a power MOSFET that supplies 5V
VCC to CON3.
(3) This pin does not connect to the FPGA directly.
(4) RESET is driven by the EPM7128AE configuration controller
device.
fFor more information on the CompactFlash connector (CON3), refer to
www.compactflash.org and www.molex.com.
2–22 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Mictor
Connector (J25)
fFor details on Nios II debugging products that use the Mictor connector,
The Mictor connector (J25) can be used to transmit up to 27 high-speed
I/O signals with very low noise via a shielded Mictor cable. J25 is used as
a debug port. Twenty five of the Mictor connector signals are used as data,
and two signals are used as clock input and clock output.
Most pins on J25 connect to I/O pins on the Stratix II device (U60). For
systems that do not use the Mictor connector for debugging the Nios II
processor, any on-chip signals can be routed to I/O pins and probed at J25
via a Mictor cable. External scopes and logic analyzers can connect to J25
and analyze a large number of signals simultaneously.
refer to www.altera.com.
Figure 2–12 shows an example of an in-target system analyzer ISA-
Nios/T (sold separately) by First Silicon Solutions (FS2) Inc. connected to
the Mictor connector. For details see www.fs2.com.
Figure 2–12. An ISA-Nios/T Connecting to the Mictor Connector (J25)
Fiveof the signals connect to both the JTAG pins on the Stratix II device
(U60), and the Stratix II device’s JTAG connector (J24). The JTAG signals
have special usage requirements. You cannot use J25 and J24 at the same
time.
Figure 2–13 below shows connections from the Mictor connector to the
Stratix II device. Figure 2–14 shows the pin out for J25. Unless otherwise
noted, labels indicate Stratix II device pin numbers.
Altera Corporation 2–23
July 2005Nios Development Board Reference Manual, Stratix II Edition
Mictor Connector (J25)
Figure 2–13. Mictor Connector Signaling
Figure 2–14. Debug Mictor Connector - J25
2–24 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Configuration
Controller
Device (U3)
The configuration controller (U3), is an Altera MAX® 7000 EPM7128AE
device. It comes preprogrammed with logic for managing board reset
conditions and configuring the Stratix II device from data stored in flash
memory.
Reset Distribution
The EPM7128AE device takes a power-on reset pulse from the Linear
Technologies 1326 power-sense/reset-generator chip and distributes it
(through internal logic) to other reset pins on the board, including the:
■LAN91C111 (Ethernet MAC/PHY) reset
■Flash memory reset
■CompactFlash reset
■Reset signals delivered to the expansion prototype connectors
(PROTO1 & PROTO2)
Starting Configuration
There are four methods to start a configuration sequence. The four
methods are the following:
1.Board power-on.
2.Pressing the Reset, Config button (SW10).
3.Asserting (driving 0 volts on) the EPM7128AE's reconfigreq_n
input pin (from a Stratix II design).
4.Pressing the Factory Config button (SW9).
Stratix II Configuration
At power-up or reset, the configuration controller reads data out of the
flash memory, and presents the necessary control signals to configure the
Stratix II device. The Stratix II device is configured using fast passive
parallel mode.
fFor detailed information about the Altera EPM7128AE device, refer to
the MAX 7000 family literature at www.altera.com/literature/litm7k.html.
FPGA configuration data files are generated by the Quartus II software.
You can write new configuration data to the board's flash memory using
the Nios II integrated development environment (IDE).
Altera Corporation 2–25
July 2005Nios Development Board Reference Manual, Stratix II Edition
Factory & User Configurations
fFor details on programming configuration data to flash memory, see the
Nios II Flash Programmer User Guide, or refer to the Nios II IDE online
help.
Factory & User
Configurations
The configuration controller can manage two separate Stratix II device
configurations stored in flash memory. These two configurations are
referred to as the factory configuration and the user configuration. A Nios
II reference design is factory-programmed into the factory configuration
region of the flash memory.
The Configuration Process
Upon reset or when the Reset, Config button (SW10) is pressed, the
configuration controller will attempt to download the user configuration
data to the FPGA. If this process fails (because the user configuration is
either invalid or not present), the configuration controller will then
download the factory configuration to the FPGA.
When SW9 (Factory Config) is pressed, the configuration controller will
ignore the user configuration and always configure the FPGA with the
factory configuration. This switch allows you to "escape" from the
situation where a valid-but-nonfunctional user configuration is present in
flash memory.
The configuration controller reads data from flash memory, passes it to
the FPGA, and applies appropriate control signals to configure the FPGA.
When FPGA configuration completes successfully, the configuration
controller electrically disconnects itself from the flash memory lines, and
enters an idle state.
2–26 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Flash Memory Partitions
The configuration controller expects user and factory configuration data
to be stored at fixed locations (offsets) in flash memory. In addition, the
factory-programmed reference design expects Nios II software and data
to exist at certain locations in flash memory. Table 2–7 shows the
expected flash memory partitioning.
Table 2–7. Flash Memory Partitions
OffsetUsageFactory-Programmed Content
0x00000000 - 0x000FFFFF
0x00100000 - 0x001FFFFFWeb Pages
0x00200000 - 0x007FFFFF
0x00800000 - 0x00BFFFFFUser Configuration (4MB)
0x00C00000 - 0x00FEFFFFFactory Configuration (4032 KB)Nios II Processor Reference Design
User Application Space (8 MB)
Web Server Software
0x00FF0000 - 0x00FFFFFFPersistent Data (64 KB)Network Settings for Web Server
Note that this partitioning scheme is merely a convention used by the
configuration controller and the factory-programmed reference design.
Custom FPGA designs can use the flash memory space in any way
necessary.
1Altera recommends that you do not overwrite the factory-
programmed flash memory contents. Without a valid factory
configuration, the configuration controller may not be able to
successfully configure the FPGA. If you alter the factory
configuration, you can restore the board to its factoryprogrammed state.See Appendix B, Restoring the Factory
Configuration.
User Application Space
The lower 8 MB of flash memory is the user application space. This is free
space for user designs to store code and data for Nios II programs. The
lower 2 MB of the user application space is factory-programmed with
code and data for a web server reference design. The Nios II IDE allows
you to compile Nios II programs and program them into the user
application space.
Altera Corporation 2–27
July 2005Nios Development Board Reference Manual, Stratix II Edition
Factory & User Configurations
User Configuration
The user configuration partition is 4 MB, starting at offset 0x00800000.
This section contains the FPGA configuration data for the user
configuration. Nios II development tools include documentation on how
to create your own user configuration image and program it into flash
memory.
Factory Configuration
The factory configuration partition is 4032 KB, starting at offset
0x00C00000. This section contains the FPGA configuration data for the
factory configuration. The Nios II processor in the factory configuration
is designed to start executing code from offset 0x00000000 in the flash
memory. The Nios II development kit includes the source files for the
factory-programmed hardware and software reference designs.
Persistent Data
The persistent data partition is 64 KB, starting at offset 0x00FF0000. This
partition is for maintaining nonvolatile settings and data, such as the
MAC address and IP address for the factory-programmed web server
reference design. Persistent data is technically no different than other
application data, but it is often convenient to think of certain data as
independent from the user hardware or software.
2–28 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
Configuration-Status LEDs
The EPM7128AE device is connected to four status LEDs that show the
configuration status of the board at a glance (see Figure 2–15). You can
tell which configuration, if any, was loaded into the FPGA at power-on
by looking at the LEDs (see Table 2–8 on page 2–29). If a new
configuration was downloaded into the Stratix II device via JTAG, then
all of the LEDs will turn off.
Table 2–8. Configuration Status LED Indicators
LED LED NameColor Description
LED3LoadingGreenThis LED blinks while the configuration controller is actively transferring
data from flash memory into the Stratix II FPGA.
LED4 ErrorRedIf the red Error LED is on, then configuration was not transferred from flash
memory into the Stratix II device. This can happen if, for example, the flash
memory contains neither a valid user or factory configuration.
LED1UserGreenThis LED turns on when the user configuration is being transferred from
flash memory and stays illuminated when the user configuration data is
successfully loaded into the Stratix II device.
LED2FactoryAmberThis LED turns on when the factory configuration is being transferred from
flash memory and stays illuminated if the factory configuration was
successfully loaded into the Stratix II device.
Figure 2–15. LED1 – LED4
Altera Corporation 2–29
July 2005Nios Development Board Reference Manual, Stratix II Edition
Factory & User Configurations
Configuration & Reset Buttons
The Nios development board uses dedicated switches SW8, SW9 and
SW10 for the following fixed functions:
SW8 – CPU Reset
When SW8 is pressed, a logic-0 is driven onto the Stratix II I/O pin AA15
(DEV_CLRn). The result of pressing SW8 depends on how the Stratix II
device is currently configured.
The factory-programmed Nios II reference design treats SW8 as a CPUreset pin (see Figure 2–16). The Nios II reference design will reset and
start executing code from its reset address when SW8 is pressed.
Figure 2–16. CPU Reset Button
SW9 – Factory Config
Pressing Factory Config (SW9) commands the configuration controller to
re-configure the Stratix II device with the factory configuration.
SW10 – Reset, Config
Reset, Config (SW10) is the power-on reset button (see Figure 2–17).
When SW10 is pressed, a logic 0 is driven to the power-on reset controller
(U18). See “Power-Supply Circuitry” on page 2–35 for more details. After
SW10 is pressed, the configuration controller will load the Stratix II
device from flash memory.
2–30 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Figure 2–17. Reset, Config Button
Board Components
JTAG
Connectors (J24
& J5)
The Nios development board, has two 10-pin JTAG headers (J24 and J5)
compatible with Altera download cables, such as the USB-Blaster
JTAG header connects to one Altera device and forms a single-device
JTAG chain. J24 connects to the Stratix II device (U60), and J5 connects to
the EPM7128AE device (U3).
™
. Each
JTAG Connector to Stratix II Device (J24)
J24 connects to the JTAG pins (TCK, TDI, TDO, TMS, TRST) of the
Stratix II device (U60) as shown in Figure 2–18. Altera Quartus II
software can directly configure the Stratix II device with a new hardware
image via an Altera download cable as shown in Figure 2–19. In addition,
the Nios II IDE can access the Nios II processor JTAG debug module via
a download cable connected to the J24 JTAG connector.
Figure 2–18. JTAG Connector (J24) to Stratix II Device
Altera Corporation 2–31
July 2005Nios Development Board Reference Manual, Stratix II Edition
JTAG Connectors (J24 & J5)
Figure 2–19. USB Blaster Connected to Stratix II JTAG Connector
The Stratix II device’s JTAG pins can also be accessed via the Mictor
connector (J25). The pins of J24 are connected directly to pins on J25, and
care must be taken so that signal contention does not occur between the
two connectors.
2–32 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
JTAG Connector to EPM7128AE Device (J5)
J5 connects to the JTAG pins (TCK, TDI, TDO, TMS, TRST) of the
EPM7128AE device (U3). Altera Quartus II software can perform insystem programming (ISP) to reprogram the EPM7128AE device (U3)
with a new hardware image via an Altera download cable.
1Note that the orientation of J5 is rotated 180
Figure 2–20. JTAG Connector (J5) to MAX Device
° compared to J24.
Altera Corporation 2–33
July 2005Nios Development Board Reference Manual, Stratix II Edition
Clock Circuitry
Clock Circuitry
The Nios development board includes a 50 MHz free-running oscillator
(Y2) and a zero-skew, point-to-point clock distribution network that
drives the Stratix II FPGA (U60), the EPM7128AE configuration controller
device (U3), and pins on the PROTO1 & PROTO2 connectors. The zeroskew buffer (U2) distributes both the free-running 50 MHz clock and a
clock output from one of the FPGA's internal PLLs. See Figure 2–21.
Figure 2–21. Clock Circuitry
Note to Figure 2–21:
(1) An external clock can be enabled by stuffing location R15 with a 49.9 ohm 0603 resistor and stuffing location R13
with a 330 ohm 0603 resistor.
The Stratix II FPGA receives clock input from buffer U2, and from the
PROTO1 and PROTO2 connectors, as follows:
■The buffer U2 drives the Stratix II pins AF15 (CLK4p) and B13
(CLK12p).
■The proto1_CLKOUT net (J13, pin 13) drives the Stratix II pin AC14
(CLK5p).
■The proto2_CLKOUT net (J17, pin 13) drives the Stratix II pin B14
(CLK3p).
The FPGA can synthesize new clock signals internally using on-chip
PLLs, and drive the clocks to various components on the board. As shown
in Figure 2–21, the clock circuitry allows the Stratix II FPGA to:
■Drive the SDRAM chip (U57) via pin AF12, driven by on-chip PLL6.
■Drive the Mictor connector (J25) clock via pin D13, driven by on-chip
PLL5.
2–34 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Board Components
■Drive the PROTO1 & PROTO2 connectors via pin A12, driven by on-
chip PLL5.
■Feedback to FPGA pin N2 (CLK11p). This clock feedback path is not
used by Altera-provided reference designs, but is available to the
user if necessary.
The 50 MHz oscillator (Y2) is socketed and can be changed or removed by
the user. To drive the clock circuitry using the external clock connector
(J4), you must first stuff location R15 with a 49.9 ohm 0603 resistor and
stuff location R13 with a 330 ohm 0603 resistor. Note that the
configuration controller and other Altera-provided reference designs are
designed to work only with the 50 MHz clock. If you change the clock
frequency, it is your responsibility to accommodate the new clock
everywhere it is used on the development board.
Power-Supply
Circuitry
The Nios development board runs from a 17V, unregulated, input power
supply. On-board circuitry generates 5V, 3.3V, and 1.2V regulated power
levels.
■The input power-supply can be either center-negative or center-
positive. A bridge rectifier (D34) presents the appropriate polarity to
the voltage regulators.
■The 5V supply is presented on pin 2 of J12 and J15 for use by any
device plugged into the PROTO1 & PROTO2 expansion connectors.
■The 3.3V supply is used as the power source for all Stratix II device
I/O pins. The 3.3V supply is also available for PROTO1 & PROTO2
daughter cards.
■The 1.2V supply is used only as the power supply for the Stratix II
device core (VCCINT) and it is not available on any connector or
header.
Altera Corporation 2–35
July 2005Nios Development Board Reference Manual, Stratix II Edition
Power-Supply Circuitry
2–36 Altera Corporation
Nios Development Board Reference Manual, Stratix II EditionJuly 2005
Appendix A. Shared Bus Table
Description
On the Nios development board, Stratix II edition, the flash memory,
SRAM and Ethernet MAC/PHY devices share address and control lines.
These shared lines are referred to as the Shared Bus. Using SOPC Builder,
designers can interface a Nios II processor system to any device
connected to the off-chip Shared Bus. Tab l e A– 9 on p a ge A –1 lists all
connections between the devices connected to the Shared Bus.
(1) This pin is NC for AM29LV128M but is provided for compatible devices that have the active pin A23.
Altera Corporation A–3
July 2005
Description
A–4Altera Corporation
July 2005
Appendix B. Restoring the
Factory Configuration
Introduction
Reprogramming
the Flash
Memory
To restore the factory configuration, you must reprogram the flash
memory on the board, and you must reprogram the EPM7128AE
configuration controller device.
The files required for this operation are included in the Nios II
development kit’s <Nios II kit path>/examples/factory_recovery
directory.
To reprogram the flash memory on the development board, perform the
following steps:
1.Open a Nios II SDK Shell by choosing Windows Start > Programs >
Altera > Nios II Development Kit <installed version> > Nios II SDK
Shell.
2.From the examples directory, change to the factory_recovery
directory for your development kit.
cd factory_recovery/niosII_stratixII_2s60_ES
3.Run the flash-restoration script:
./restore_my_flash
Follow the script's instructions.
Reprogramming
the EPM7128AE
Configuration
If the configuration controller design was modified, you must also
reprogram the EMP7128AE device (U3). The EPM7128AE configuration
controller device also must be reprogrammed.
1.Move the programming cable from J24 to J5, labeled “For U3”.
Controller
Device
Altera Corporation B–1
July 2005
1The orientation of J5 is opposite that of J24. When properly
connected to J5, the programming cable lies naturally across the
FPGA Config LEDs and the dual seven-segment display.
2.Launch the Quartus II software, and open the Programmer window
(Tools menu).
Reprogramming the EPM7128AE Configuration Controller Device
3.Click Add File and select the following programming file:
<Nios II kit path>/examples/
factory_recovery/niosII_stratixII_2s60_ES/config_controller.pof.
4.In the Programmer, check the Program/Configure box, and click
Start to reprogram the EPM7128AE device.
5.Press the Factory Config button to perform a power-on reset and
reconfigure the Stratix II device from flash memory. You should see
the Factory LED turned on and activity on LEDs D0 through D7.
Your board is now reconfigured to the default factory condition.
B–2Altera Corporation
July 2005
Appendix C. Connecting to the
Board via Ethernet
Introduction
The Nios development board is factory-programmed with a reference
design that implements a web server, among other functions as shown in
Figure C–1. The sections below describe how to connect a host computer
to the board's Ethernet port, assign an IP address to the board, and
browse to the web server from the host computer.
Figure C–1. Web Server Reference Design
Connecting the
Ethernet Cable
Altera Corporation C–1
July 2005
The Nios II development kit includes an Ethernet (RJ45) cable and a
male/female RJ45 crossover adapter. Before you connect these
components, you must decide how you want to use the network features
of your board. Select one of the two following connection methods:
1.LAN Connection — To use your Nios development board on a LAN (for
example, connecting to an Ethernet hub) do the following:
a.Connect one end of the RJ45 cable to the Ethernet connector on
the development board (RJ1).
Connecting the LCD Screen
b.Connect the other end to your LAN connection (hub, router,
wall plug, etc.).
2.Point-to-Point Connection — To use your Nios development board
connected directly to a host computer point-to-point (not on a
LAN), do the following:
a.Connect one end of your RJ45 cable to the female socket in the
crossover adapter.
b.Insert the male end of the crossover adapter into RJ1 on the
Nios development board.
c.Connect the other end of the RJ45 connector directly to the
network (Ethernet) port on your host computer (see Figure C–2
on page C–2).
Figure C–2. Point-to-Point Connection
Connecting the
LCD Screen
Obtaining an IP
Address
C–2Altera Corporation
Your Nios II development kit was delivered with a two-line x 16character LCD text screen. The web-server software displays useful status
and progress messages on this display. If you wish to use the network
features of the board, connect the LCD screen to the Expansion Prototype
Connector (J12). See the Nios II Development Kit, Getting Started User Guide
for details.
In order to function on a network (either LAN or point-to-point), your
board must have an IP address. This section describes the methods to
assign an IP address to your board.
July 2005
LAN Connection
If you have connected your board to a LAN, the board will either obtain
a dynamic IP address using DHCP, or a static IP address stored in flash
memory. If you do not know whether or not your LAN supports DHCP,
it is easiest to try DHCP first.
DHCP
Upon reset, the web server will attempt to acquire an IP address via the
DHCP protocol. The board will continue to attempt DHCP selfconfiguration for two minutes. You can determine if DHCP has
succeeded, or if it is still in progress, by reading status messages on the
LCD screen. If your LAN does not support DHCP then DHCP
configuration will ultimately fail, and the web server will default to a
static IP address.
If DHCP succeeds, the board will display a success message and the IP
address on the LCD screen. The web server is now ready to display web
pages. See “Browsing to Your Board” on page C–5 to continue.
Static IP Address
If the DHCP process fails, the board will use a static IP address stored in
flash memory. You need to obtain a safe IP address in your LAN's subnet
from your system administrator. Once you know a safe IP address, you
can assign it to your board using the steps below.
These steps send IP configuration data to the board via an Altera JTAG
download cable, such as the USB-Blaster cable.
1.Install the Nios II development tools, connect the JTAG download
cable, and apply power to the board, as described in the Nios II Development Kit, Getting Started User Guide.
2.Choose Start > Programs > Altera > Nios II Development Kit > Nios II SDK Shell to open the Nios II SDK Shell. A shell window
appears with a command prompt.
3.Press the SW9 button labeled Factory Config on the board.
4.At the Nios II SDK Shell command prompt, type:
nios2-terminal<Enter>
Altera Corporation C–3
July 2005
Obtaining an IP Address
This command opens a terminal connection via the JTAG download
cable to a monitor program running on the board. The monitor
program displays status messages and text instructions that tell you
how to set the IP address for your board.
5.Press the ! key to abort the DHCP process and display a prompt. If
you don't abort the DHCP process, it will fail after two minutes, and
eventually a prompt will appear.
1The monitor's prompt is the + character. You can enter
h<Enter> at the prompt for a complete list of supported
commands.
6.At the prompt, type xip:<safe IP address><Enter>
The xip command saves the IP address in flash memory. In general,
you will only need to assign an IP address to your board once.
However, you may change it at any time by issuing another xip
command. You can also use the commands xsubnet and xgateway
to assign subnet and gateway addresses, but setting these addresses
is not usually necessary.
7.Type xdhcp:off<Enter> to disable the board from attempting to
obtain the IP address using DHCP in the future. (You can re-enable
DHCP later, using the xdhcp:on command.)
8.Type CTRL+C to terminate the JTAG terminal session and
disconnect from the monitor program, then close the Nios II SDK
Shell.
9.Press the SW8 button labeled CPU Reset to reboot the Nios II
processor and start the web server using the new IP address. The
LCD screen will display the static IP address assigned to the board,
along with other status messages.
The web server is now ready to display pages using the IP address you
assigned. See “Browsing to Your Board” on page C–5 to continue.
Point–to–Point Connections
All boards are factory programmed with a default IP address of 10.0.0.51
stored in flash memory. The 10.0.0.x subnet is conventionally reserved for
development, test, and prototyping. If DHCP fails or is aborted, the board
will use this static IP address. The LCD screen displays status messages
to indicate when the web server starts running using the default IP
address.
C–4Altera Corporation
July 2005
Your host computer and the development board are the only two devices
connected to this simple point-to-point network. For most host operating
systems, it is necessary to assign your host computer an IP address on the
same subnet as the board. For example, the address 10.0.0.1 will work
fine. Any address in the 10.0.0.x subnet will work, and there is no
possibility of conflicting with another device on the network. After
modifying the host computer's IP address, your computer is ready to
connect to the web server. See “Browsing to Your Board” on page C–5 to
continue.
If you don't have the ability to change the IP address of your host
computer, you could change the IP address of the board to match the
subnet of the host computer. For example, if your computer's IP address
is 1.2.3.4, then you could assign the address 1.2.3.5 to your board. To
change the board IP address, follow the steps in “Static IP Address” on
page C–3.
Every time you reset the board, the web server will attempt to obtain an
IP address via DHCP, which takes two minutes to time out. You can abort
the DHCP process, or disable DHCP entirely by using the steps in “Static
IP Address” on page C–3.
Browsing to Your
Board
Once your board has a valid IP address (obtained from either DHCP selfconfiguration or from flash memory), you can access the board via a web
browser (e.g., Microsoft Internet Explorer). To browse this site, open a
web browser and type the IP address of the board (four numbers
separated by decimal-points) as a URL directly into the browser’s
Address input field. You can determine your board’s IP address by
reading the messages displayed on the LCD screen
Altera Corporation C–5
July 2005
Browsing to Your Board
C–6Altera Corporation
July 2005
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.