About this Manual................................................................................... v
How to Contact Altera .............................................................................................................................. v
Typographic Conventions ...................................................................................................................... vi
Chapter 1. Overview
Features Overview ................................................................................................................................. 1–1
General Description ............................................................................................................................... 1–1
Component List ...................................................................................................................................... 2–1
Stratix II EP2S60 Device (U60) ............................................................................................................. 2–3
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
viReference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
1. Overview
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
■2 MBytes of synchronous SRAM
■32 MBytes of double data rate (DDR) SDRAM
■On-board logic for configuring the FPGA from flash memory
■On-board Ethernet MAC/PHY device and RJ45 connector
■Two 5V-tolerant expansion/prototype headers each with access to 41
FPGA user I/O pins
■CompactFlash connector for Type I CompactFlash cards
■32-bit PMC Connector capable of 33 MHz and 66 MHz operation
■Mictor connector for hardware and software debug
■RS-232 DB9 serial port
■Four push-button switches connected to FPGA user I/O pins
■Eight LEDs connected to FPGA user I/O pins
■Dual 7-segment LED display
■JTAG connectors to Altera devices via Altera download cables
■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 build systems using the Nios II processor
and to gain familiarity with the features included. Software designers can
use the pre-programmed Nios II processor design on the board to begin
prototyping software immediately.
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. A complete set of schematics, a physical layout database, and
GERBER files for the development board are installed with the Nios II
development tools in the <Nios II EDS install path>/documents directory.
Altera Corporation 1–1
May 2007
Overview
fSee the Nios II Development Kit, Getting Started User Guide for instructions
on setting up the Nios development board and installing Nios II
development tools.
Figure 1–1shows a block diagram of the Nios development board.
Figure 1–1. Nios Development Board, Stratix II Edition Block Diagram
50MHz Oscillator
5.0 V Regulators
Mictor Connector
Proto 1 Expansion
Prototype Connector
Proto 2 Expansion
Prototype Connector
Dual Seven-Segment Display
FactoryProgrammed
Reference
Design
JTAG Connector
Compact Flash
Push-button
Switches (4)
User LEDs (8)
16 Mbyte DDR SDRAM
2 Mbyte SSRAM
Vccint 1.2-V
Vccio 3.3-V
27
41
4
8
16
Stratix II
EP2S60
FPGA
EPCS64 Configuration
Device
Configuration
Controller
16 Mbyte Flash Memory
Ethernet
MAC/PHY
PMC Connector
RS-232
RJ45
Connector
When power is applied to the board, on-board logic configures the FPGA
using hardware configuration data stored in flash memory. After
successful configuration, 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, refer to
Appendix B: Connecting to the Board via Ethernet.
1–2Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Overview
In the course of development, you might 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. Refer to Appendix A: Restoring the Factory Configuration for more information.
Altera Corporation Reference Manual1–3
May 2007Nios Development Board Stratix II Edition
Overview
1–4Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
2. Board Components
Optional Power
Supply
Component List
This section introduces all the important components on the Nios
development board. See Figure 2–1 and Table 2–1 for component
locations and brief descriptions of all board features.
Figure 2–1. Nios Development Board
J24
U63
TP1–
TP8
U5
CPU Reset
(SW8)
JH1
JH2
U74
Reset, Config
CON3
(SW10)
(J11, J12, J13)
PROTO1
(J15, J16, J17)
PROTO2
Y2
D0–D7
SW0 –SW3
J26
D34
J25
Optional Power
Optional Power
U9
U8
Supply
Supply
Factory Config
(SW9)
J4
J19
RJ1
U4
LED
7
LED
6
J5
J27
U3
U69
U62
Table 2–1. Nios Development Board, Stratix II Edition Components & Interfaces
Board DesignationNameDescription
U60Stratix II FPGAEP2S60F672C3N device.
User Interface
SW0 – SW3Push-button switchesFour momentary contact switches for user input to the
FPGA.
D0 – D7Individual LEDsEight individual LEDs driven by the FPGA.
U8, U9Seven-segment LEDsTwo seven-segment LEDs that display numeric
output from the FPGA.
Altera Corporation 2–1
May 2007
Board Components
Table 2–1. Nios Development Board, Stratix II Edition Components & Interfaces (Continued)
Board DesignationNameDescription
Memory
U74SSRAM memory2 MBytes of synchronous SRAM.
U5, LED7Flash memory16 MBytes of nonvolatile memory for use by both the
U63DDR SDRAM memory32 MBytes of DDR SDRAM.
FPGA and the configuration controller. LED7 lights
whenever the flash chip-enable is asserted.
Connections & Interfaces
U4, RJ1Ethernet MAC/PHY10/100 Ethernet MAC/PHY chip connected to an RJ-
J19Serial connectorRS-232 serial connector with 5V-tolerant buffers.
PROTO1 (J11, J12, J13) Expansion prototype
connector
PROTO2 (J15, J16, J17) Expansion prototype
connector
CON3CompactFlash connectorCompactFlash connector for memory expansion.
JH1, JH2PMC connectorExpansion connector for a PCI mezzanine card.
J25Mictor connector Mictor connector providing access to 27 I/O pins on
J24JTAG connectorJTAG connection to the FPGA allowing hardware
J5JTAG connector
J27EPCS configuration headerConnects to the EPCS serial configuration device for
45 Ethernet connector.
Supports all RS-232 signals.
Expansion headers connecting to 41 I/O pins on the
FPGA. Supplies 3.3 V and 5.0 V for use by a
daughter card.
Expansion headers connecting to 41 I/O pins on the
FPGA. Supplies 3.3 V and 5.0 V for use by a daughter
card.
the FPGA. Allows debugging Nios II systems using a
First Silicon Solutions (FS2) debug probe.
configuration using the Quartus
software debug using the Nios II IDE.
JTAG connection to the MAX
controller.
in-system programming.
®
II software and
®
configuration
Configuration & Reset
U3MAX Configuration controller Altera MAX EPM7256AE device used to configure
the FPGA from flash memory.
U69Serial configuration deviceAltera EPCS64 low-cost serial configuration device to
configure the FPGA.
SW8CPU Reset buttonPush-button switch to reboot the Nios II processor
configured in the FPGA.
2–2Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–1. Nios Development Board, Stratix II Edition Components & Interfaces (Continued)
Board DesignationNameDescription
SW9Factory Config buttonPush-button switch to reconfigure the FPGA with the
factory-programmed reference design.
SW10Reset, ConfigPush-button switch to reset the board.
LED0 – LED3, LED6Configuration status LEDsLEDs that display the current configuration status of
the FPGA.
Clock Circuitry
Y2Oscillator50 MHz clock signal driven to FPGA.
J4External clock inputConnector to FPGA clock pin.
Power Supply
J26DC power jack16 V DC unregulated power source.
D34Bridge rectifierPower rectifier allows for center-negative or center-
positive power supplies.
J28, J29, J30, J33 (and
more)
Optional Power SupplyExternal power supply can be connected for high-
current applications.
The sections that follow describe each component in detail.
Stratix II EP2S60
U60 is a Stratix II FPGA in a 672-pin FineLine BGA® package. The part
number is EP2S60F672C3N. Table 2–2 lists the device features.
Device (U60)
Table 2–2. Stratix II EP2S60 Device Features
LEs 60,440
M4K Memory Blocks 255
Total RAM Bits 2,544,192
Embedded 18x18 Multiplier Blocks144
Enhanced PLLs4
Fast PLLs8
User I/O Pins718
Altera Corporation Reference Manual2–3
May 2007Nios Development Board Stratix II Edition
Board Components
fFor Stratix II-related documentation including pin out data for the
The development board provides two separate methods for configuring
the FPGA:
®
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 FPGA JTAG header (J24).
2.When power is applied to the board, a configuration controller
device (U3) attempts to configure the FPGA with hardware
configuration data stored in flash memory. For more information on
the configuration controller, refer to “Configuration Controller
Device (U3)” on page 2–33.
EP2S60 device, see the Altera Stratix II literature page at
www.altera.com/literature/lit-stx2.jsp.
Push-Button
Switches (SW0 SW3)
SW0 – SW3 are momentary-contact push-button switches to provide
stimulus to designs in the FPGA. Refer to Figure 2–2. Each switch is
connected to an FPGA general-purpose I/O pin with a pull-up resistor as
shown in Ta bl e 2– 3. Each I/O pin perceives a logic 0 when its
corresponding switch is pressed.
Figure 2–2. Push-Button Switches (SW0 – SW3)
D0
SW0
D1
D2
SW1
D3
D4
SW2
D5
D6
D7
SW3
Table 2–3. Push Button Switches Pin Table
ButtonFPGA PinBoard Net Name
SW0P4user_pb0
SW1P5user_pb1
SW2N6user_pb2
SW3N7user_pb3
2–4Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Individual LEDs
(D0 - D7)
Seven-Segment
LEDs (U8 & U9)
This Nios II development board provides eight individual LEDs
connected to the FPGA. Refer to “Push-Button Switches (SW0 - SW3)” on
page 2–4. D0 – D7 are connected to general purpose I/O pins on the
FPGA as shown in Tab le 2 –4 . When a pin drives logic 0, the
corresponding LED turns on.
Table 2–4. LED Pin Table
LEDFPGA PinBoard Net Name
D0W15pld_led0
D1V14pld_led1
D2AD17pld_led2
D3AA17pld_led3
D4V16pld_led4
D5AB17pld_led5
D6AD18pld_led6
D7V17pld_led7
U8 and U9 connect to the FPGA, and each segment is individually
controlled by a general-purpose I/O pin. Refer to Figure 2–3. When a pin
drives logic 0, the corresponding U8 and U9 LED turns on. See Table 2–5
for pin-out details.
Figure 2–3. Dual Seven-Segment Display
U8U9
a
b
f
g
c
e
d
Altera Corporation Reference Manual2–5
May 2007Nios Development Board Stratix II Edition
a
b
f
g
c
e
d
dp
dp
Board Components
Table 2–5. Dual Seven-Segment Display
FPGA PinU8 & U9 Pin Pin Function Board Net Name
U8
L810ahex_0A
L99bhex_0B
M78chex_0C
M85dhex_0D
M54ehex_0E
M62fhex_0F
N43ghex_0G
N57dphex_0DP
U9
K810ahex_1A
K99bhex_1B
L48chex_1C
L55dhex_1D
M34ehex_1E
M42fhex_1F
L63ghex_1G
L77dphex_1DP
SSRAM Chip
(U74)
U74 is a 32-bit, 2 MByte Cypress SSRAM chip. The part number is
CY7C1380C-167AC or CY7C1380D-167AXC. The chip is rated for
synchronous accesses up to 167 MHz. U74 connects to the FPGA so it can
be used by a Nios II embedded processor as general-purpose memory.
The factory-programmed Nios II reference design identifies the SSRAM
devices in its address space as a contiguous 2 MByte, 32-bit word,
zero-wait-state main memory.
2–6Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–6 shows all connections between the FPGA and the SSRAM chip.
Table 2–6. SSRAM Pin Table
FPGA Pin U74 Pin Pin Function Board Net Name
G1637A0ssram_a0
G1736A1ssram_a1
E2635A2ssram_a2
E2534A3ssram_a3
E2433A4ssram_a4
E2332A5ssram_a5
F2638NC/A19ssram_a6
F2539NC/A20ssram_a7
C1742A6ssram_a8
C1843A7ssram_a9
C1944A8ssram_a10
C2045A9ssram_a11
G2646A10ssram_a12
G2547A11ssram_a13
G2448A12ssram_a14
G2349A13ssram_a15
G2150A14ssram_a16
G2081A15ssram_a17
H2682A16ssram_a18
H2599A17ssram_a19
H24100A18ssram_a20
B1685ADSC_Nssram_adsc_n
H2393BE_n0ssram_be_n0
J2394BE_n1ssram_be_n1
K2495BE_n2ssram_be_n2
F1696BE_n3ssram_be_n3
C1698CE1_nssram_ce1_n
A1752D0ssram_d0
A1853D1ssram_d1
A1956D2ssram_d2
A2057D3ssram_d3
B1758D4ssram_d4
Altera Corporation Reference Manual2–7
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–6. SSRAM Pin Table (Continued)
FPGA Pin U74 Pin Pin Function Board Net Name
B1859D5ssram_d5
B1962D6ssram_d6
B2063D7ssram_d7
B2468D8ssram_d8
C2269D9ssram_d9
B2272D10ssram_d10
C2173D11ssram_d11
E1874D12ssram_d12
D1875D13ssram_d13
E1778D14ssram_d14
D1779D15ssram_d15
F2318D24ssram_d16
F2219D25ssram_d17
F2122D26ssram_d18
B2323D27ssram_d19
D2524D28ssram_d20
F2425D29ssram_d21
H2128D30ssram_d22
F1929D31ssram_d23
B212D16ssram_d24
A213D17ssram_d25
A226D18ssram_d26
A247D19ssram_d27
C268D20ssram_d28
C259D21ssram_d29
J2212D22ssram_d30
J2113D23ssram_d31
J2686OE_nssram_oe_n
F1787WE_nssram_we_n
J2584ADSP_nssram_adsp_n
J2483ADV_nssram_adv_n
L2597CE2ssram_ce2
L2492CE3_nssram_ce3_n
2–8Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–6. SSRAM Pin Table (Continued)
FPGA Pin U74 Pin Pin Function Board Net Name
G1888GW_nssram_gw_n
A1289CLKsram_clk
The following pins on U74 have fixed connections, which restricts the
usable modes of operation:
■MODE is pulled low to enable Linear Burst
■ZZ is pulled low to leave the chip enabled
■GLOBALW_n is pulled high to disable the global write.This is the
default behavior for GLOBALW_n that can be changed.
■CE2 and CE3_n are wired high and low respectively to be enabled
and to make CE1_n the master chip enable.This is the default
behavior for GLOBALW_n that can be changed.
fSee www.cypress.com for detailed information about the SSRAM chip.
DDR SDRAM
Chip (U63)
U63 is a Micron DDR SDRAM chip. The part number is MT46V16M16P6T. The DDR SDRAM pins are connected to the FPGA as shown in
Table 2–7. Altera provides a DDR SDRAM controller that allows a Nios II
processor to access the DDR SDRAM device as a large, linearlyaddressable memory.
Table 2–7. DDR SDRAM Pin Table
FPGA PinU63 PinBoard Net Name
DD92sdram_dq0
D84sdram_dq1
C85sdram_dq2
A97sdram_dq3
B118sdram_dq4
C1110sdram_dq5
A1011sdram_dq6
D1013sdram_dq7
A554sdram_dq8
B556sdram_dq9
D657sdram_dq10
A659sdram_dq11
A860sdram_dq12
Altera Corporation Reference Manual2–9
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–7. DDR SDRAM Pin Table (Continued)
FPGA PinU63 PinBoard Net Name
A762sdram_dq13
C763sdram_dq14
D765sdram_dq15
C916sdram_dqs0
C651sdram_dqs1
C1020sdram_dm0
B747sdram_dm1
B1029sdram_a0
B930sdram_a1
B831sdram_a2
B632sdram_a3
C535sdram_a4
E1136sdram_a5
E1037sdram_a6
E938sdram_a7
E839sdram_a8
E740sdram_a9
F1128sdram_a10
F1041sdram_a11
F842sdram_a12
F1026sdram_ba0
G1127sdram_ba1
B322sdram_cas_n
F1344sdram_cke
E1224sdram_cs_n
A323sdram_ras_n
B421sdram_we_n
C446sdram_clk_n
C345sdram_clk_p
fSee www.micron.com for detailed information.
2–10Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Flash Memory
(U5)
U5 is an 8-bit, 16 MByte AMD flash memory device connected to the
FPGA. The part number is S29GL128M10TFIR1. Refer to Table 2–8 for
connections between the FPGA and the flash memory chip. U5 can be
used for two purposes:
1.A Nios II embedded processor implemented on the FPGA can use
the flash memory as general-purpose memory and non-volatile
storage.
2.The flash memory can hold FPGA configuration data that is used by
the configuration controller to load the FPGA at power-up. Refer to
“Configuration Controller Device (U3)” on page 2–33 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
FPGA configuration data, Nios II software, or both) into flash memory.
The Nios II development software includes subroutines for writing and
erasing flash memory.
1The flash memory device shares address and data connections
with the Ethernet MAC/PHY device.
Table 2–8. Flash Memory Pin Table
FPGA PinU5 Pin Board Net Name
V2551fe_a0
U2631fe_a1
U2526fe_a2
T2525fe_a3
T2424fe_a4
V2023fe_a5
V1922fe_a6
U2021fe_a7
U1920fe_a8
T2210fe_a9
T219fe_a10
T208fe_a11
T197fe_a12
U226fe_a13
U215fe_a14
V224fe_a15
Altera Corporation Reference Manual2–11
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–8. Flash Memory Pin Table (Continued)
FPGA PinU5 Pin Board Net Name
V213fe_a16
W2254fe_a17
W2119fe_a18
V2418fe_a19
V2311fe_a20
U2412fe_a21
U2315fe_a22
R242fe_a23
D1535fe_d0
G1537fe_d1
E1939fe_d2
D2041fe_d3
G1944fe_d4
D1946fe_d5
E2048fe_d6
F2050fe_d7
H1932flash_cs_n
H2034flash_oe_n
V2613flash_rw_n
H2216flash_wp_n
K1853flash_byte_n (1)
W2517flash_ry_by_n
Note to Ta b l e 2 – 8:
(1) BYTE_n on U5 is pulled low to keep the flash memory in byte
mode which restricts the usable modes of operation.
The on-board configuration controller makes assumptions about what
resides where in flash memory. For details refer to “SW10 – Reset, Config”
on page 2–35.
fSee www.amd.com for detailed information about the flash memory
device.
2–12Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Ethernet
MAC/PHY (U4) &
RJ45 Connector
(RJ1)
The LAN91C111 chip (U4) is a 10/100 Ethernet media access control and
physical interface (MAC/PHY) chip. The control pins of U4 are
connected to the FPGA so that Nios II systems can access Ethernet
networks via the RJ-45 connector (RJ1) as shown in Figure 2–4. The
Nios II development tools include hardware and software components
that allow Nios II processor systems to communicate with the
LAN91C111 Ethernet device.
Figure 2–4. Ethernet RJ-45 Connector
U4
RJ1
Refer to Tabl e 2–9 for connections between the FPGA and the MAC/PHY
device.
1The Ethernet MAC/PHY device shares both address and data
connections with the flash memory.
Table 2–9. Ethernet MAC/PHY Pin Table
FPGA PinU4 PinPin FunctionBoard Net Name (1)
AB2541Address Enable enet_aen
W2043Synchronous Readyenet_srdy_n
W1940VL Bus Accessenet_vlbus_n
Y2145Local Deviceenet_ldev_n
Y2038IO Char Readyenet_iochrdy
AA2237Address Strobeenet_ads_n
AA2142Local Bus Clockenet_lclk
W2646Ready/Returnenet_rdyrtn_n
AA2635Bus Cycleenet_cycle_n
AA2536Write/Readenet_w_r_n
W2434Bus Chip Selectenet_datacs_n
W2329Interruptenet_intr0
Altera Corporation Reference Manual2–13
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–9. Ethernet MAC/PHY Pin Table (Continued)
FPGA PinU4 PinPin FunctionBoard Net Name (1)
Y2494Byte Enable 0enet_be_n0
Y2395Byte Enable 1enet_be_n1
AA2496Byte Enable 2enet_be_n2
AA2397Byte Enable 3enet_be_n3
Y2631Readenet_ior_n
Y2532Writeenet_iow_n
U2678Address Linefe_a1
U2579Address Linefe_a2
T2580Address Linefe_a3
T2481Address Linefe_a4
V2082Address Linefe_a5
V1983Address Linefe_a6
U2084Address Linefe_a7
U1985Address Linefe_a8
T2286Address Linefe_a9
T2187Address Linefe_a10
T2088Address Linefe_a11
T1989Address Linefe_a12
U2290Address Linefe_a13
U2191Address Linefe_a14
V2292Address Linefe_a15
D15107Data Linefe_d0
G15106Data Linefe_d1
E19105Data Linefe_d2
D20104Data Linefe_d3
G19102Data Linefe_d4
D19101Data Linefe_d5
E20100Data Linefe_d6
F2099Data Linefe_d7
M2076Data Linefe_d8
M1975Data Linefe_d9
N2074Data Linefe_d10
N1973Data Linefe_d11
N2271Data Linefe_d12
2–14Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–9. Ethernet MAC/PHY Pin Table (Continued)
FPGA PinU4 PinPin FunctionBoard Net Name (1)
N2170Data Linefe_d13
M2269Data Linefe_d14
M2168Data Linefe_d15
M2466Data Linefe_d16
M2365Data Linefe_d17
L1964Data Linefe_d18
L1863Data Linefe_d19
L2161Data Linefe_d20
L2060Data Linefe_d21
L2359Data Linefe_d22
L2258Data Linefe_d23
K2056Data Linefe_d24
K1955Data Linefe_d25
K2254Data Linefe_d26
K2153Data Linefe_d27
J2051Data Linefe_d28
J1950Data Linefe_d29
J2249Data Linefe_d30
J2148Data Linefe_d31
Note to Ta b l e 2 – 9:
(1) Nets fe_a0 and fe_a16 to fe_a23 do not connect to U4.
fSee www.smsc.com for detailed information about the LAN91C111
device.
Serial Connector
(J19)
Altera Corporation Reference Manual2–15
May 2007Nios Development Board Stratix II Edition
J19 is a standard DB-9 serial connector. It is typically used for
communication between the FPGA and a host computer via an RS-232
serial cable. Level-shifting buffer (U52) is used between J19 and the FPGA
because the FPGA device cannot interface to RS-232 voltage levels
directly.
Board Components
J19 is able to transmit all RS-232 signals. Alternately, the FPGA design can
use only the signals it needs, such as J19’s RXD and TXD pins. LEDs are
connected to the RXD and TXD signals and visually indicate when data
is being transmitted or received. Figure 6 and Table 2–10 show the pin
connections between the serial connectors and the FPGA.
Figure 2–5. Serial Connector J19
RXD
TXD
Function
Direction
Connector Pin #
GND5DTR
IN
IN
3
4
OUT
2
DCD
OUT
1
Expansion
Prototype
Connectors
(PROTO1 &
PROTO2)
J19
Connector Pin #
Direction
Function
9
OUT
RI
8
OUT
CTS
7
IN
RTS
6
OUT
DSR
Table 2–10. Serial Connector Pin Table
FPGA PinJ19 PinBoard Net Name
AD263serial_rxd
AB232serial_txd
AC254serial_dtr
AC241serial_dcd
AB246serial_dsr
K239serial_ri
AB268serial_cts
AD257serial_rts
PROTO1 and PROTO2 are standard-footprint, mechanically-stable
connectors 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:
2–16Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
■41 I/O pins for prototyping. All 41 I/O pins connect to user I/O pins
on the FPGA. Each signal passes through analog switches to protect
the FPGA from 5.0 V logic levels. These analog switches are
permanently enabled. The output logic-level on the expansion
prototype connector pins is 3.3 V.
●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 FPGA phase-locked loop (PLL)
output.
■A power-on reset signal that is asserted low.
■Five regulated 3.3 V power-supply pins (2 A total max load for both
PROTO1 & PROTO2).
■One regulated 5.0 V power-supply pin (1 A total max load for both
PROTO1 & PROTO2).
■Numerous ground connections.
The PROTO1 expansion prototype connector shares FPGA I/O pins with
the CompactFlash connector (CON3). Designs can use either the PROTO1
connector or the CompactFlash connector.
1Do not connect cards to PROTO1 and CON3 at the same time.
Damage to one or both cards might result.
fSee 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.
Table 2–11, Figure 2–6 andFigure 2–7show connections from the
2–20Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Pin 1
Figure 2–9. PROTO2 Pin Information – J15, J16 & J17
J16
2 GND
4 proto2_io1
6 proto2_io3
8 proto2_io5
10 proto2_io7
12 proto2_io9
14 proto2_io11
16 proto2_io13
18 proto_2io15
20 NC
22 GND
24 GND
26 GND
28 proto2_io20
GND 19
proto2_io0 3
proto2_io2 5
proto2_io4 7
proto2_io6 9
proto2_io8 11
proto2_io10 13
proto2_io12 15
proto2_io14 17
proto2_io16 21
proto2_io17 23
proto2_io18 25
proto2_io19 27
proto2_RESET_n 1
Board Components
30 GND
32 proto2_io23
34 NC
36 proto2_io26
38 proto2_cardsel_n
proto2_io21 29
proto2_io22 31
proto2_io24 33
proto2_io25 35
proto2_io27 37
40 GND
proto2_io28 39
J15
4 proto2_io29
2 VCC5
GND 1
proto2_io40 3
12 proto2_io37
10 proto2_io35
8 proto2_io33
6 proto2_io31
proto2_io36 11
proto2_io34 9
proto2_io32 7
proto2_io30 5
14 proto2_io39
proto2_io38 13
J17
2 GND
1
Vunreg
(1)
Notes to Figure 2–9:
(1) Unregulated voltage from DC power supply.
(2) Clk from board oscillator.
(3) Clk from FPGA.
(4) Clk output from PROTO2 card to FPGA.
4 GND
6 GND
5
NC 3
VCC3_3
8 GND
10 GND
12 GND
lk 11
VCC3_3 7
proto2_osc 9
proto2_pllc
(2)
(3)
14 GND
16 GND
VCC3_3 15
proto2_clkout 13
(4)
18 GND
20 GND
VCC3_3 17
VCC3_3 19
Altera Corporation Reference Manual2–21
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–12. PROTO2 Pin Table
FPGA PinPROTO2 PinConnectorBoard Net Name
J16
U3 pin 571J16proto2_RESET_n
T23J16proto2_io0
T34J16proto2_io1
U15J16proto2_io2
U26J16proto2_io3
V17J16proto2_io4
V28J16proto2_io5
W19J16proto2_io6
W210J16proto2_io7
Y111J16proto2_io8
Y212J16proto2_io9
AA113J16proto2_io10
AA214J16proto2_io11
AB115J16proto2_io12
AB216J16proto2_io13
W317J16proto2_io14
W418J16proto2_io15
Y321J16proto2_io16
Y423J16proto2_io17
AA325J16proto2_io18
AA427J16proto2_io19
AB328J16proto2_io20
AB429J16proto2_io21
AC231J16proto2_io22
AC332J16proto2_io23
AD133J16proto2_io24
AD235J16proto2_io25
Y736J16proto2_io26
W937J16proto2_io27
Y1038J16proto2_cardsel_n
W1039J16proto2_io28
2–22Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–12. PROTO2 Pin Table (Continued)
FPGA PinPROTO2 PinConnectorBoard Net Name
J15
AE33J15proto2_io40
Y94J15proto2_io29
AD75J15proto2_io30
W116J15proto2_io31
V127J15proto2_io32
AD88J15proto2_io33
Y119J15proto2_io34
W1210J15proto2_io35
Y1211J15proto2_io36
AD1112J15proto2_io37
AE1113J15proto2_io38
AB814J15proto2_io39
J17
U2 pin 189J17proto2_osc
K711J17proto2_pllclk
P213J17proto2_clkout
CompactFlash
Connector
(CON3)
Altera Corporation Reference Manual2–23
May 2007Nios Development Board Stratix II Edition
The CompactFlash connector header (CON3) enables hardware designs
to access a CompactFlash card. Refer to Figure 2–10. The following two
access modes are supported:
■ATA (hot swappable mode)
■IDE (IDE hard disk mode)
Board Components
Figure 2–10. CompactFlash Connector
Most pins of CON3 connect to I/O pins on the FPGA. The following pins
have special connections:
■Pin 13 and 38 of CON3 (VCC) are driven by a power MOSFET that is
controlled by an FPGA I/O pin. These connections allow the FPGA
to control power to the CompactFlash card for the IDE connection
mode.
■Pin 26 of CON3 (-CD1) is pulled up to 5 V through a 10 kΩ 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 5.0 V through a 10 kΩ
resistor, and is controlled by the EPM7256AE configuration
controller. The FPGA can cause the configuration controller to assert
RESET, but the FPGA does not drive this signal directly.
The CompactFlash connector shares several FPGA I/O pins with
expansion prototype connector PROTO1. Refer to “Expansion Prototype
Connectors (PROTO1 & PROTO2)” on page 2–16 for details on PROTO1.
1Do not connect cards to PROTO1 and CON3 at the same time.
Damage to one or both cards might result.
Table 2–13 lists connections between CON3 and the FPGA.
Table 2–13. CompactFlash Pin Table
FPGA Pin CON3 PinPin Function Board Net Name (1)
C16D7proto1_io0
C247D8proto1_io1
2–24Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–13. CompactFlash Pin Table (Continued)
FPGA Pin CON3 PinPin Function Board Net Name (1)
D25D6proto1_io2
D348D9proto1_io3
E14D5proto1_io4
E249D10proto1_io5
E33D4proto1_io6
E427D11proto1_io7
F12D3proto1_io8
F228D12proto1_io9
F323D2proto1_io10
F429D13proto1_io11
G322D1proto1_io12
G430D14proto1_io13
H321D0proto1_io14
H431D15proto1_io15
J435IOWR_nproto1_io17
G134IORD_nproto1_io18
G242IORDY_nproto1_io19
K337INTRQproto1_io22
K424IOCS16_nproto1_io23
J119A1proto1_io24
J220A0proto1_io25
K118A2proto1_io26
KK27CS0_nproto1_io27
L245DASPproto1_io28
L38A10proto1_io29
M146PDIAGproto1_io30
M210A9proto1_io31
G611A8proto1_io32
G712A7proto1_io33
H514A6proto1_io34
H615A5proto1_io35
J516A4proto1_io36
J617A3proto1_io37
H736WE_nproto1_io38
Altera Corporation Reference Manual2–25
May 2007Nios Development Board Stratix II Edition
Board Components
fFor more information on the CompactFlash connector (CON3), see
Table 2–13. CompactFlash Pin Table (Continued)
FPGA Pin CON3 PinPin Function Board Net Name (1)
H843INPACK_nproto1_io39
J744REG_nproto1_io40
AE732CS1_ncf_cs_n
AE89ATA_SEL_ncf_atasel_n
AB125Power supply
enable
AB1126CD1_ncf_present_n
57 (U3)41RESET#proto1_RESET_n (3)
Notes to Ta b l e 2 – 13 :
(1) Nets proto_io16, proto_io20, and proto_io21 do not connect to CON3.
(2) The FPGA I/O pin controls a power MOSFET that supplies 5.0 V VCC to this net.
(3) proto1_RESET_n is driven by the EPM7256AE configuration controller device
(U3).
cf_power (2)
www.compactflash.org and www.molex.com.
PMC Connector
(JH1 & JH2)
The PCI mezzanine card (PMC) connector, formed by JH1 and JH2,
allows Nios II systems in the FPGA to interface to daughter cards using
the standard 32-bit PMC form factor. Refer to Figure 2–11. The PMC
connector is capable of running at 33MHz or 66 MHz, and is configured
as the PMC host.
wBefore connecting a daughter card to the PMC connector, the
FPGA must first be configured with a design that includes a
PMC interface. Damage to either the FPGA or daughter card can
result if the FPGA is not configured correctly.
The factory-programmed Nios II reference design does not include a
PMC interface.
2–26Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Figure 2–11. PMC Connector
Pin 1
Pin 1
JH1
JH2
The PMC connector supplies +3.3 V, +5.0 V and ±12. V, as required by the
PCI specification. However, DC power regulators for these supplies
cannot provide enough power to fully satisfy the PCI power specification.
The current that the board can supply through JH1 and JH2 is dependent
on the design configured in the FPGA. As a general guideline, if the PMC
card power requirements exceed the specifications shown in Table 2–14,
you must connect an external power source.
Table 2–14. PMC Card Power Specifications
DC SupplyMaximum PowerApply External Power Source
+3.3V9.5 Watts J29
+5V15 WattsJ28
+12V45 WattsJ31
-12V1.2 WattsTP13
wWhen connecting an external power supply, the fuse for the
corresponding voltage should be removed from the
development board to prevent the two power supplies from
interfering with each other. Refer to “Power-Supply Circuitry”
on page 2–44 for more information.
Altera Corporation Reference Manual2–27
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–15 lists the connections between the PMC connector and the
FPGA.
Table 2–15. PMC Connector Pin Table
FPGA PinJH1 & JH2 PinConnectorBoard Net Name
AF2261JH1pmc_ad0
AE2260JH1pmc_ad1
AD2259JH1pmc_ad2
AF2158JH1pmc_ad3
AD2155JH1pmc_ad4
AF2054JH1pmc_ad5
AD2053JH1pmc_ad6
AF1951JH2pmc_ad7
AE1949JH2pmc_ad8
AD1949JH1pmc_ad9
AF1848JH2pmc_ad10
AC1848JH1pmc_ad11
Y1847JH1pmc_ad12
AF1746JH2pmc_ad13
AC1745JH2pmc_ad14
Y1746JH1pmc_ad15
AE1631JH2pmc_ad16
AD1632JH1pmc_ad17
AB1629JH2pmc_ad18
AA1629JH1pmc_ad19
Y1628JH2pmc_ad20
AF1028JH1pmc_ad21
AD1027JH1pmc_ad22
AF926JH2pmc_ad23
AC923JH2pmc_ad24
AC823JH1pmc_ad25
AF722JH2pmc_ad26
AE622JH1pmc_ad27
AF521JH1pmc_ad28
AE520JH2pmc_ad29
AE419JH2pmc_ad30
AD420JH1pmc_ad31
2–28Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Table 2–15. PMC Connector Pin Table (Continued)
FPGA PinJH1 & JH2 PinConnectorBoard Net Name
AC652JH1pmc_be_n0
AF643JH2pmc_be_n1
AA1032JH2pmc_be_n2
AC726JH1pmc_be_n3
AF843JH1pmc _par
AE1413JH1pmc_clk
AA1139JH2pmc_perr_n
AC1042JH2pmc_serr_n
AA1237JH1pmc_devsel_n
AD938JH2pmc_stop_n
AC1436JH1pmc_irdy_n
AB94JH1pmc_inta_n
AB75JH1pmc_intb_n
V106JH1pmc_intc_n
AA89JH1pmc_intd_n
AD1413JH2pmc_reset_n
AE933JH1pmc_frame_n
AF1535JH2pmc_trdy_n
AB1025JH2pmc_idsel
AD616JH1pmc_gnt_n
AD517JH1pmc_req_n
AD340JH1pmc_lock_n
AF347JH2pmc_m66en
AE2364JH1pmc_req64_n
Mictor
Connector (J25)
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 can be
used as a debug port for the Nios II processor or as a general-purpose I/O
connector to the FPGA. 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 FPGA (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. External
scopes and logic analyzers can connect to J25 and analyze a large number
of signals simultaneously.
Altera Corporation Reference Manual2–29
May 2007Nios Development Board Stratix II Edition
Board Components
fFor details on Nios II debugging products that use the Mictor connector,
see www.altera.com.
Figure 2–12 shows an example of an in-target system analyzer ISA-
Nios/T 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)
J25
Fiveof the signals connect to both the JTAG pins on the FPGA (U60), and
the FPGA’s JTAG connector (J24). The JTAG signals have special usage
requirements. J25 and J24 cannot be used at the same time.
Figure 2–13 below shows connections from the Mictor connector to the
FPGA.
Figure 2–13. Mictor Connector Signaling
JTAG Connector
Mictor Connector
(J25)
2–30Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
(J24)
5
40
FPGA
(U62)
Board Components
Table 2–16 shows the pin out information for J25.
Table 2–16. Mictor Connector Pin Table
FPGA Pin J25 Pin Board Net Name
AD155mictor_clk
T438mictor0
T536mictor1
U334mictor2
U432mictor3
T830mictor4
T928mictor5
V326mictor6
V424mictor7
U522mictor8
U620mictor9
T618mictor10
T716mictor11
U710mictor12
U88mictor13
V537mictor14
V635mictor15
V733mictor16
V831mictor17
WW529mictor18
W627mictor19
W25mictor20
W823mictor21
AA513mictor22
AA69mictor23
Y67mictor24
R16mictor_trclk
Test Points
(TP1–TP8)
Altera Corporation Reference Manual2–31
May 2007Nios Development Board Stratix II Edition
TP1 – TP8 are test points connected to I/O pins on the FPGA. FPGA
designs can route signals to these I/O pins to be probed. TP1 –TP8 also
connect to the configuration controller (U3).
Board Components
Table 2–17 lists the connections between the FPGA, U3, and the test
points.
Table 2–17. Test Point Pin Table
Test PointFPGA PinCPLD PinBoard Net Name
TP1V1875pld_user0
TP2AC1976pld_user1
TP3W1677pld_user2
TP4W1778pld_user3
TP5AE1779pld_user4
TP6AE1880pld_user5
TP7AE2081pld_user6
TP8AE2183pld_user7
EPCS64 Serial
Configuration
Device (U69)
U69 is a serial configuration device connected to the FPGA. Serial
configuration devices are flash memory devices with a serial interface
which can store configuration data, and load the data into the FPGA upon
power up or reconfiguration. U69 can store FPGA configuration data, or
Nios II program data, or both.
Table 2–18 lists the connections between U69 and the FPGA.
Table 2–18. EPCS64 Pin Table
FPGA PinU69 PinBoard Net Name
C2416pld_dclk
E168fe_d0
E147pld_cs_n
G1415pld_asdo
The SOPC Builder EPCS Serial Flash Controller component enables
Nios II processor systems to access the EPCS device. Nios II processor
systems can read program code or data from the device, and can write
new data into the EPCS device.
U69 is blank by default. The Quartus II software can program FPGA
configuration data (a .pof file) into U69 through an Altera download
cable connected to J27. Alternately, software running on a Nios II
processor design can write configuration data to U69.
2–32Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
1The orientation of J27 is the reverse of J24.
fSee the Serial Configuration Devices chapter in Altera's Configuration
Device Handbook for more information about the EPCS64 device. See the
EPCS Device Controller Core with Avalon Interface chapter in the Quartus II
Handbook, Volume 5: Altera Embedded Peripherals for information about the
EPCS serial flash controller component in SOPC Builder.
Configuration
Controller
Device (U3)
fFor complete details on the configuration controller connections, see the
The configuration controller (U3) is an Altera MAX 7000 EPM7256AE
device. It comes preprogrammed with logic for managing board reset
conditions and configuring the FPGA from data stored in flash memory
and the EPCS64 serial configuration device (U69).
FPGA configuration data files are generated by the Quartus II software.
The Nios II integrated development environment (IDE) can write new
configuration data to the board's flash memory.
board schematic. For detailed information about the Altera EPM7256AE
device, see the MAX 7000 family literature at
www.altera.com/literature/lit-m7k.html. For details on programming
configuration data to flash memory, see the Nios II Flash Programmer User Guide, or refer to the Nios II IDE help system.
Configuration-Status LEDs
The configuration controller is connected to four status LEDs that show
the configuration status of the board at a glance as shown in Figure 2–14.
The LEDs indicate which configuration, if any, was loaded into the FPGA
at power-on as shown in Table 2–19.
Figure 2–14. LED1 – LED 4
FPGA Config
LED 3
Loading
LED 4
Error
LED 1
User
LED 2
Factory
SW9
Factory
Config
Altera Corporation Reference Manual2–33
May 2007Nios Development Board Stratix II Edition
Board Components
Table 2–19. Configuration Status LED Indicators
LEDLed NameColorDescription
LED3Loading GreenThis LED blinks while the configuration controller is actively
transferring data from flash memory into the FPGA.
LED4ErrorRedIf this LED is on, then configuration was not transferred from flash
memory into the FPGA. This can happen if, for example, the flash
memory does not contain either 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 FPGA. If the
FPGA was successfully configured by the EPCS64, LED1 will blink
slowly.
LED2FactoryAmberThis LED turns on when the factory configuration is being
LED6LED6RedThis LED is an indicator of the CONFIG_DONE_signal from the
LED7LED7RedThis LED is an indicator of the flash_CE_n line. It illuminates when
transferred from flash memory and stays illuminated if the factory
configuration was successfully loaded into the FPGA.
FPGA. This LED illuminates when FPGA configuration completes
successfully and CONFIG_DONE goes high.
the flash is being accessed and the CE_n line is being asserted.
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 FPGA I/O pin C5
(DEV_CLRn). The result of pressing SW8 depends on how the FPGA is
configured. Refer to Figure 2–15.
The factory-programmed Nios II reference design treats SW8 as a CPUreset button. The Nios II reference design resets and starts executing code
from its reset address when SW8 is pressed.
2–34Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Figure 2–15. CPU Reset Button
SW8
CPU
Reset
SW9 – Factory Config
Pressing Factory Config (SW9) commands the configuration controller to
reconfigure the FPGA with the factory configuration. Refer to
Figure 2–16.
Figure 2–16. Factory Config Button
SW9
Factory
Config
SW10 – Reset, Config
Reset, Config (SW10) is the power-on reset button. Refer to Figure 2–17.
When SW10 is pressed, a logic 0 is driven to the power on reset controller
(U18). Refer to “Power-Supply Circuitry” on page 2–44 for more details.
Whenever SW10 is pressed, the configuration controller attempts to
reconfigure the FPGA.
Altera Corporation Reference Manual2–35
May 2007Nios Development Board Stratix II Edition
Board Components
Figure 2–17. Reset, Config Button
SW10
Reset,
Config
Reset Distribution
The EPM7256AE device takes a power-on reset pulse from the Linear
Technologies 1326 power-sense/reset-generator chip (U18) and
distributes it (through internal logic) to other reset pins on the board, that
include the following:
■LAN91C111 (Ethernet MAC/PHY) reset
■Flash memory reset
■CompactFlash reset
■Reset signals delivered to the expansion prototype connectors
(PROTO1 & PROTO2)
Starting Configuration
The following four methods start a configuration sequence:
1.Board power-on
2.Pressing the Reset, Config button (SW10).
3.Asserting (driving 0 volts on) the pld_reconfigreq_n input pin
of the EPM7256AE device (U3 pin 94) from the FPGA (U60 pin H16).
4.Pressing the Factory Config button (SW9).
Factory & User Configurations
The configuration controller can manage two separate FPGA
configurations stored in flash memory U5. These two configurations are
referred to as the factory configuration and the user configuration. A
2–36Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
Nios II reference design is factory-programmed into the factory
configuration region of the flash memory. In addition, the FPGA can be
configured by the EPCS64 serial configuration device.
Configuration Process
At power-up or reset, the configuration controller attempts to configure
the FPGA with data from one of three sources, in the following order:
1.The EPCS64 serial configuration device
2.The user configuration from flash memory
3.The factory configuration from flash memory
First, the configuration controller puts the FPGA in active serial (AS)
configuration mode. The FPGA then attempts to read configuration data
from the EPCS64. If the FPGA finishes configuration successfully, the
configuration controller stops. If there is a valid configuration image
stored in the EPCS64, then the FPGA will only boot from the EPCS64 or
from the factory image of flash memory when the SW9 switch is
depressed. The user segment of EPCS64 will be ignored.
If configuration from the EPCS64 does not succeed, the configuration
controller puts the FPGA into passive serial (PS) mode and attempts to
load the user configuration from CFI flash memory (U5). If this also fails
(because the user configuration is either invalid or not present), the
configuration controller attempts to load the factory configuration from
flash memory.
When SW9 (Factory Config) is pressed, the configuration controller
ignores the user configuration and EPCS64, and configures the FPGA
with the factory configuration. SW9 provides an escape from a situation
in which a valid-but-nonfunctional design is present in user flash
memory or the EPCS64.
1If the FPGA is configured in passive serial mode (such as when
it is configured from the CFI flash), the EPCS64 device is not
available to the FPGA after configuration.
Altera Corporation Reference Manual2–37
May 2007Nios Development Board Stratix II Edition
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–20 shows the
expected flash memory partitioning.
Table 2–20. Flash Memory Partitions
OffsetUsageFactory-Programmed Content
0x00000000 - 0x000FFFFF
0x00100000 - 0x001FFFFFWeb Pages
0x00200000 - 0x007FFFFF
0x00800000 - 0x00BFFFFFUser Configuration (4 MB)
0x00C00000 - 0x00FEFFFFFactory Configuration (4032 KB)Nios II Processor Reference
0x00FF0000 - 0x00FFFFFFPersistent Data (64 KB)Network Settings for Web Server
User Application Space (8 MB)
Web Server Software
Design
1This 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.
cAltera recommends that you 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. Refer to 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
Nios II IDE allows you to compile Nios II programs and program them
into the user application space.
2–38Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
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 system in the factory
configuration is designed to start executing code from offset 0x00000000
in the flash memory. The Nios II development tools include 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.
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™. On
the Nios development board, each JTAG header connects to one Altera
device and forms a single-device JTAG chain. J24 connects to the FPGA
(U60), and J5 connects to the EPM7256AE device (U3).
JTAG Connector to FPGA (J24)
J24 connects to the JTAG pins (TCK, TDI, TDO, TMS, TRST) of the FPGA
(U60) as shown in Figure 2–18. Altera Quartus II software can directly
configure the FPGA 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.
Altera Corporation Reference Manual2–39
May 2007Nios Development Board Stratix II Edition
Board Components
Figure 2–18. JTAG Connector (J24) to Stratix II Device
To Mictor Connector (J25)
JTAG Signals
JTAG Connector
(J24)
TDI
TMS
TCK
TDO
TRST
FPGA
(U62)
Figure 2–19. USB Blaster Connected to J24 JTAG Connector
Pin 1
J24
The FPGA’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–40Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
JTAG Connector to EPM7256AE Device (J5)
J5 connects to the JTAG pins (TCK, TDI, TDO, TMS, TRST) of the
EPM7256AE device (U3). Altera Quartus II software can perform insystem programming (ISP) to reprogram the EPM7256AE device (U3)
with a new hardware image via an Altera download cable as shown in
Figure 2–20.
fTo restore the board to its factory-programmed condition, see Appendix
Clock Circuitry
1The orientation of J5 is rotated 180
Most users never need to reprogram the configuration controller design
in the EMP7256AE device. Reprogramming the configuration controller
can result in an inoperable development board.
B: Restoring the Factory Configuration.
Figure 2–20. JTAG Connector (J5) to MAX Device
J5
Pin 1
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 FPGA (U60), the EPM7256AE configuration controller device
(U3), and pins on the PROTO1 & PROTO2 connectors. The zero-skew
buffer (U2) drives the clock distribution network using the free-running
50 MHz clock. Refer to Figure 2–21.
degrees compared to J24.
Altera Corporation Reference Manual2–41
May 2007Nios Development Board Stratix II Edition
Board Components
Figure 2–21. Clock Circuitry
osc_CLK3
Oscillator (Y2)
Clock
Buffer
SMA External
Input (J4)
(U2)
osc_CLK0
osc_CLK1
sram_CLKIN
sdram_CLKIN
FPGA
(U62)
PLLs
osc_CLK2
DDR SDRAM (U63)
sram_CLK
SSRAM (U74)
mictor_CLK
Mictor (J25)
PMC_CLK
PMC (JH1 & JH2)
proto1_PLLCLK
proto1_CLKOUT
PROTO1
proto1_OSCCLK
proto2_PLLCLK
proto2_CLKOUT
PROTO2
proto2_OSCCLK
cpld_CLKOSC
MAX (U3)
Note to Figure 2–21:
(1) To use an external clock signal, remove the crystal oscillator from its socket. Make
sure to note the correct orientation of the oscillator before removing it.
2–42Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Board Components
The FPGA receives clock input from buffer U2, and from the PROTO1 and
PROTO2 connectors, as shown in Table 2–21.
Table 2–21. FPGA Clock Input Pin Table
FPGA PinFPGA Pin NamePLLSignal SourceBoard Net Name
R1CLK8pPLL3, PLL4J25 pin 6mictor_TRCLK
R26CLK2pPLL1, PLL2J13 pin 13proto1_CLKOUT
P2CLK10pPLL3, PLL4J17 pin 13proto2_CLKOUT
B13CLK12pPLL5U2 pin 2osc_CLK0
P25CLK0pPLL1, PLL2U2 pin 3osc_CLK1
AC13CLK7pPLL6U2 pin 4osc_CLK2
R3CLK9pPLL3, PLL4U2 pin 6osc_CLK3
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 Ta bl e 2 –2 2 .
Table 2–22. FPGA Clock Output Pin Table
FPGA PinFPGA Pin NamePLL
C3ION/AU63 pin 45sdram_CLK_p
C4ION/AU63 pin 46sdram_CLK_n
A12PLL5_OUT0pPLL5 (1)U74 pin 89sram_CLK
AE14ION/AJH1 pin 13pmc_CLK
K6ION/AJ13 pin 11proto1_PLLCLK
K7ION/AJ17 pin 11proto2_PLLCLK
AD15PLL12_OUT0pPLL12 (1) J25 pin 5mictor_CLK
Note to Table 2–22:
(1) PLLS pins are only dedicated when using the Enhanced PLL. If you use the Fast
PLL, the PLL inputs and outputs can be routed to any user pin on the device. For
more information on using PLLs in the Stratix II refer to the data sheet.
Signal
Destination
Board Net Name
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), remove Y2.
1The factory-programmed configuration controller and Altera-
provided reference designs work only with the 50 MHz clock.
Altera Corporation Reference Manual2–43
May 2007Nios Development Board Stratix II Edition
Board Components
Power-Supply
Circuitry
The Nios development board runs on a 16.0 V, unregulated, input power
supply connected to J26. On-board circuitry generates ±12.0 V, +5.0 V,
+3.3 V, +2.5 V, and +1.2 V regulated power levels. For applications
requiring high current, separate voltage levels can be supplied from a
workbench power supply.
■The input power-supply on J26 can be either center-negative or
center-positive. A bridge rectifier (D34) presents the appropriate
polarity to the voltage regulators.
■The 5.0 V supply is presented on pin 2 of J12 and J15 for use by any
device plugged into the PROTO1 & PROTO2 expansion connectors.
■The 3.3 V supply is used as the power source for all FPGA I/O pins.
The 3.3 V supply is also available for PROTO1 & PROTO2 daughter
cards.
■The 2.5 V supply is used only as the power supply for the DDR
SDRAM chip and is not available on any connector or header.
■The 1.2 V 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.
■The ±12.0 V supply is provided for the PMC connectors JH1 and JH2.
Refer to “PMC Connector (JH1 & JH2)” on page 2–26 for more
details. When workbench power supplies are connected to the board,
a corresponding fuse must be removed to decouple the on-board
voltage regulator. Each on-board regulator drives power through a
7 A fuse. Refer to Table 2–23.
Table 2–23 lists the details of what voltage levels can be supplied to what
points on the board.
Table 2–23. Power Supply and Fuse Details
VoltagePadFuseNote
1.2VJ30F3Core power for FPGA.
1.2VTP12F7FPGA PLL power supply.
1.25VTP10F5DDR SDRAM I/O V
1.25VTP9F4DDR SDRAM I/O V
2.5VTP11F6DDR SDRAM VDD power supply. FPGA V
interface to DDR SDRAM.
3.3VJ29F23.3 V power for multiple components on the board.
5VJ28F15.0 V power for multiple components on the board.
+12VJ31F8Power for the PMC connectors.
-12VTP13F9Power for the PMC connectors.
2–44Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
TT
REF
.
.
for pins that
CCIO
Appendix A. 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 EPM7256AE
configuration controller device.
Nios II Embedded Design Suite provides the files required for this
operation in the directory <Nios II EDS install path>/examples /factory_recovery.
To reprogram the flash memory on the development board, perform the
following steps:
1.Open a Nios II command shell.
On a Windows PC, click Windows Start, point to Programs, Altera,
Nios II EDS <installed version>, and then click Nios II Command
Shell.
2.From the examples directory, change to the factory_recovery
directory for your development kit.
cd factory_recovery/niosII_stratixII_2s60_rohs
3.Run the flash-restoration script:
./restore_my_flash
4.Follow the script's instructions.
Reprogramming
the EPM7256AE
Configuration
If the configuration controller design was modified, you must also
reprogram the EMP7256AE device (U3). To reprogram the EMP7256AE
configuration controller, perform the following steps:
1.Move the programming cable from J24 to J5, labeled “For U3.”
Controller
Device
Altera Corporation A–1
May 2007
1The orientation of J5 is opposite that of J24. When properly
connected to J5, the programming cable lies naturally over
the clock oscillator and the dual seven-segment display.
2.Launch the Quartus II software, and click Programmer on the Tools
menu.
3.Click Add File and select the following programming file:
<Nios II EDS install path>/examples/
factory_recovery/niosII_stratixII_2s60_rohs/config_controller.pof.
4.In the Programmer, turn on the Program/Configure checkbox, and
click Start to reprogram the EPM7256AE device.
5.Press the Factory Config button to perform a power on reset and
reconfigure the FPGA 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.
A–2Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
Appendix B. 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 B–1. This chapter describes 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 B–1. Web Server Reference Design
Connecting the
Ethernet Cable
Altera Corporation B–1
May 2007
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).
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 and insert the male end of the crossover
adapter into RJ1 on the Nios development board as shown in
Figure B–2.
Figure B–2. Point-to-Point Connection
RJ1
b.Connect the other end of the RJ45 connector directly to the
network (Ethernet) port on your host computer.
Connecting the LCD Screen
The Nios II development kit includes a two-line x 16-character 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 expansion prototype connector J12.
Refer to the Nios II Development Kit, Getting Started User Guide for details.
Obtaining an IP Address
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.
B–2Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
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 attempts to acquire an IP address via the
DHCP protocol. The board continues to attempt DHCP self-configuration
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 ultimately fails, and
the web server defaults to a static IP address.
If DHCP succeeds, the board displays 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 B–5 to continue.
Static IP Address
If the DHCP process fails, the board uses 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.Open a Nios II command shell. On Windows PCs, On a Windows
PC, click Windows Start, point to Programs, Altera, Nios II EDS
<installed version>, and then click Nios II Command 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 command shell command prompt, type:
nios2-terminal<Enter>
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.
Altera Corporation Reference ManualB–3
May 2007Nios Development Board Stratix II Edition
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 only need to assign an IP address to your board once. However,
you can 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
command 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 displays 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 B–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
uses this static IP address. The LCD screen displays status messages to
indicate when the web server starts running using the default IP address.
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
B–4Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
modifying the host computer's IP address, your computer is ready to
connect to the web server. Refer to “Browsing to Your Board” on page B–5
to continue.
If you don't have the ability to change the IP address of your host
computer, you can 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 can 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 B–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 B–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 to 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 Reference ManualB–5
May 2007Nios Development Board Stratix II Edition
B–6Reference ManualAltera Corporation
Nios Development Board Stratix II EditionMay 2007
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.