+ All Categories
Home > Documents > COE4OI5 Engineering Design

COE4OI5 Engineering Design

Date post: 08-Jan-2016
Category:
Upload: korbin
View: 28 times
Download: 2 times
Share this document with a friend
Description:
COE4OI5 Engineering Design. Chapter 2: UP2/UP3 board. UP3. UP3 board contains a Cyclone FPGA, several memory devices and a wide range of I/O features Two versions of the board are available one based on C6 and the other one based on C12 FPGA. - PowerPoint PPT Presentation
Popular Tags:
20
COE4OI5 Engineering Design Chapter 2: UP2/UP3 board
Transcript
Page 1: COE4OI5 Engineering Design

COE4OI5Engineering Design

Chapter 2: UP2/UP3 board

Page 2: COE4OI5 Engineering Design

2Copyright S. Shirani

UP3• UP3 board contains a Cyclone FPGA, several memory

devices and a wide range of I/O features

• Two versions of the board are available one based on C6 and the other one based on C12 FPGA.

• The FPGA and memory devices can be programmed using a JTAG ByteBlaster II cable attached to the PC printer (parallel) port

• The printer port mode of the PC should be set in the PC’s BIOS to ECP or EPP.

Page 3: COE4OI5 Engineering Design

3Copyright S. Shirani

UP3• An on-board clock oscillator and clock chip provides several

clock signals that are selectable with the board’s jumpers

Page 4: COE4OI5 Engineering Design

4Copyright S. Shirani

Figure 2.1 The Altera UP 3 board.

Page 5: COE4OI5 Engineering Design

5Copyright S. ShiraniFigure 2.2 The Altera UP 3 board’s features.

Parallel PortVGAPort

B B B

Santa Cruz Expansion Long Connector

Santa Cruz Expansion Long Connector

Santa Cruz Expansion Long Connector

JP6

On/OffSwitch

PowerConnector

MountingHole

HeatSink

HeatSink

+5 VoltSupplyLED

+3.3 VoltSupplyLED

HeatSink B B

Flash

BReset

GlobalReset

4 User Definable DIP Switches (JP3)

4 Push Buttons

SRAM4 User

DefinableLEDs

Input ClockSetting Headers

Oscillator Chip

Cyclone FPGAEP1C6Q240C8

I2C PROMChip .....

Headersfor I2C

Bus SignalsUSB PHYChip

PS-2Port

USBPort

Invalid Volt. LED

JTAG & ASDownload

Connectors

“B”- Buffer Chips

Liquid Crystal Display

Real Time Clock

J5

J7

JP19

JP4LED

SerialChip

J3

J2 J4

J1

JP19

JP5

JP7JP3

SW7

SW6

SW5

SW4

D3

D4

D5

D6

Page 6: COE4OI5 Engineering Design

6Copyright S. Shirani

Table 2.1 UP 3 Board’s Cyclone FPGA Features

Cyclone FPGA Feature EP1C6Q240 EP1C12Q240

Logic Elements (LEs) 5,980 12,060

4K bit RAM blocks (M4Ks) 20 52

Total Internal RAM bits 92,160 239,616

Phase Locked Loops (PLLs) 2 2

User I/O pins 185 173

Page 7: COE4OI5 Engineering Design

7Copyright S. Shirani

Memory• In addition to the Cyclone FPGA’s internal memory, the UP3

has several external ROM and RAM memory

• Capacities of external memories are much larger than internal memory but they have a longer access time

• FPGA processor cores (e.g., Nios) use external memory for program and data memory and the FPGA’s internal memory for registers and cache

• The serial flash chip is used to automatically load the FPGA’s serial configuration data at the power up in systems where you do not want to download the configuration data through the Byteblaster.

Page 8: COE4OI5 Engineering Design

8Copyright S. Shirani

Table 2.2 UP 3 Board’s Memory Features

Memory Device Size Part Number

SRAM 64K by 16 bits ISSI IS61C6416

SDRAM 1M by 16 bits ISSI IS42S16400B

Flash Memory 1M by 16 bits Toshiba TC58FVB106AFT-70

I2C EEPROM 16K by 1bit ISSI IS24C16

Serial Flash Memory 1M by 1bit Altera EPCS1

Page 9: COE4OI5 Engineering Design

9Copyright S. Shirani

I/O• For most I/O devices, the UP3 board’s hardware provides

only an electrical interface to the FPGA’s I/O pins

• Logic that provides a device interface circuit or controller will need to be constructed using the FPGA’s internal logic (UP core functions)

• Also remember to assign pins as shown in the tutorial to avoid turning on several of the memory devices at the same time

• Do NOT connect high current devices such as motors or relay coils directly to FPGA I/O pins

Page 10: COE4OI5 Engineering Design

10Copyright S. Shirani

Page 11: COE4OI5 Engineering Design

11Copyright S. Shirani

Table 2.3 Overview of the UP 3 Board’s I/O Features

I/O DeviceDescription Hardware Interface Needed

USB 1.1 Full Speed and Low Speed Processor & USB SIE engine core

Serial Port RS 232 Full Modem UART to send and receive data

Parallel Port IEEE 1284 State machine or Proc. for handshake

PS/2 Port PC Keyboard or Mouse Serial Data - PS/2 state machine

VGA Port for Video Display on Monitor

RGB three 1-bit signals provide 8 colors State machine for sync signals & user logic to generate RGB color signals

IDE Port Connector Processor & IDE Device Driver

Reset Switch Use for Global Reset Must use a reset in design

Pushbutton Switches 4 Non-debounced (0=HIT) Most applications will need a switch debounce Circuit

Expansion Card Santa Cruz Long 72 I/O Depends on expansion card used

LEDs 4 User Definable (1=ON) None

LCD Display 16 Character by 2 lineASCII Characters

State machine or Processor to send ASCII characters and LCD commands

Real Time Clock I2C clock chip Serial Data - I2C state machine

DIP Switch 4 Switches (1=ON) None or Synchronizer Circuit

Page 12: COE4OI5 Engineering Design

12Copyright S. Shirani

Table 2.4 UP 3 Board’s most commonly used FPGA I/O pin names and assignments

Pin Name Pin# Pin I/O Type Function of Pin

PS2_CLK 12 Bidirectional PS2 Connector

PS2_DATA 13 Bidirectional PS2 Connector

RESET 23 Input Power on or SW8 pushbutton reset ( Reset = 0 )

USB_CLK 29 Input USB 48MHz Clock - jumper

USER_CLOCK 38 Input External Clock from J2 Pin 2

PBSWITCH_4 48 Input Pushbutton SW4 (non-debounced, 0 = button hit)

PBSWITCH_5 49 Input Pushbutton SW5 (non-debounced, 0 = button hit)

LCD_E 50 Output LCD Enable line

LED_D6 53 Output LED D3 (0 = LED ON, 1= LED OFF)

LED_D5 54 Output LED D4 (0 = LED ON, 1= LED OFF)

LED_D4 55 Output LED D5 (0 = LED ON, 1= LED OFF)

LED_D3 56 Output LED D6 (0 = LED ON, 1= LED OFF)

PBSWITCH_6 57 Input Pushbutton SW6 (non-debounced, 0 = hit)

DIPSWITCH_1 58 Input DIP Switch SW3 #1 ( ON = 1, OFF = 0)

DIPSWITCH_2 59 Input DIP Switch SW3 #2 ( ON = 1, OFF = 0)

DIPSWITCH_3 60 Input DIP Switch SW3 #3 ( ON = 1, OFF = 0)"

DIPSWITCH_4 61 Input DIP Switch SW3 #4 ( ON = 1, OFF = 0)

Page 13: COE4OI5 Engineering Design

13Copyright S. Shirani

Table 2.4 (continued) UP 3 Board’s most commonly used FPGA I/O pin names and assignments

Pin Name Pin# Pin I/O Type Function of Pin

PBSWITCH_7 62 Input Pushbutton SW7 (non-debounced, 0 = hit)

LCD_RW 73 Output LCD R/W control line

MEM_DQ[0] 94 Bidirectional Memory/LCD Data Bus

MEM_DQ[1] 96(133) Bidirectional Memory/LCD Data Bus

MEM_DQ[2] 98 Bidirectional Memory/LCD Data Bus

MEM_DQ[3] 100 Bidirectional Memory/LCD Data Bus

MEM_DQ[4] 102(128) Bidirectional Memory/LCD Data Bus

MEM_DQ[5] 104 Bidirectional Memory/LCD Data Bus

MEM_DQ[6] 106 Bidirectional Memory/LCD Data Bus

LCD_RS 108 Output LCD Register Select Line

MEM_DQ[7] 113 Bidirectional Memory/LCD Data Bus

VGA_GREEN 122 Output VGA Connector Green Video Signal

CPU_CLOCK 153 Input CPU Clock 100 or 66MHz - jumper

VGA_BLUE 170 Output VGA Connector Blue Video Signal

VGA_VSYNC 226 Output VGA Connector Vert Sync Signal

VGA_HSYNC 227 Output VGA Connector Horiz Sync Signal

VGA_RED 228 Output VGA Connector Red Video Signal

Page 14: COE4OI5 Engineering Design

14Copyright S. Shirani

UP2/MAX• UP2 board supports both a MAX and a FLEX device.

• The devices can be programmed using a JTAG ByteBlaster II cable attached to the PC printer (parallel) port

• Jumpers on the board select which device is programmed.

• The MAX device is connected to two seven segment LED displays, two eight-position DIP switches, sixteen LEDs

• Two push buttons can be connected to the MAX using jumper wires

• Circuit board holes are provided for an additional 60-pin expansion header that can be added to connect external hardware

Page 15: COE4OI5 Engineering Design

15Copyright S. Shirani

FLEX_EXPAN_C

FLEX_10K

EPF10K20RC240-4 DAA239837

R

R

Mouse

25.175 MHzCLOCK

FLEX_EXPAN_AFLEX_PB1 FLEX_PB2

D1

D2

D3

D4

D5

D6

D7

D8

D9

D10

D11

D12

D13

D14

D15

D16

DC_IN FLEX_DIGIT

U1

JTAG_OUT

POWER TCK

MAX_SW1 MAX_SW2

EMP7128SLC84-7 BFD329837

R

R

VGAAdapter

P1

P2

P3P4

P9 P10P6P5

P7 P8

EPC

Figures 2.1 and 2.2 The Altera UP 1 board.

Page 16: COE4OI5 Engineering Design

16Copyright S. Shirani

MAX FLEX

Table 2.1 UP 1 device selection jumpers for programming.

Page 17: COE4OI5 Engineering Design

17Copyright S. Shirani

Pin Name Pin Type Pin Function of Pin

MSD_dp OUTPUT PIN 68 Most Significant Digit of Seven-segment Display Decimal Point Segment (0 = LED ON, 1 = LED OFF)

MSD_g OUTPUT PIN 67 MSD Display Segment G (0 = LED ON, 1 = LED OFF)

MSD_f OUTPUT PIN 65 MSD Display Segment F (0 = LED ON, 1 = LED OFF)

MSD_e OUTPUT PIN 64 MSD Display Segment E (0 = LED ON, 1 = LED OFF)

MSD_d OUTPUT PIN 63 MSD Display Segment D (0 = LED ON, 1 = LED OFF)

MSD_c OUTPUT PIN 61 MSD Display Segment C (0 = LED ON, 1 = LED OFF)

MSD_b OUTPUT PIN 60 MSD Display Segment B (0 = LED ON, 1 = LED OFF)

MSD_a OUTPUT PIN 58 MSD Display Segment A (0 = LED ON, 1 = LED OFF)

LSD_dp OUTPUT PIN 79 Least Significant Digit of Seven-segment Display Decimal Point Segment (0 = LED ON, 1 = LED OFF)

LSD_g OUTPUT PIN 77 LSD Display Segment G (0 = LED ON, 1 = LED OFF)

LSD_f OUTPUT PIN 75 LSD Display Segment F (0 = LED ON, 1 = LED OFF)

LSD_e OUTPUT PIN 76 LSD Display Segment E (0 = LED ON, 1 = LED OFF)

LSD_d OUTPUT PIN 74 LSD Display Segment D (0 = LED ON, 1 = LED OFF)

LSD_c OUTPUT PIN 73 LSD Display Segment C (0 = LED ON, 1 = LED OFF)

LSD_b OUTPUT PIN 70 LSD Display Segment B (0 = LED ON, 1 = LED OFF)

LSD_a OUTPUT PIN 69 LSD Display Segment A (0 = LED ON, 1 = LED OFF)

PB1 INPUT PIN * Push-Button 1 (non–debounced, 0 = button depressed)

PB2 INPUT PIN * Push-Button 2 (non–debounced, 0 = button depressed)

D1..D16 LEDs OUTPUT PIN *

16 Discrete LEDs - D1…D16

(0 = LED ON, 1 = LED OFF)

SW1 & SW2 INPUT PIN *

MAX DIP Switch Inputs - SWxS1...SWxS8

(1 = Open, 0 = Closed)

Clock INPUT PIN 83 25.175Mhz System Clock on low skew

Global Clock Line

Prototyping Header

Pins

INPUT, OUTPUT 1-84

Black Prototyping Headers next to MAX chip

Numbers are silk-screened on board.

Pins 12, 33, 54, 75, and 83 are not available.

* Jumper wires from the switch or LED to the MAX prototyping headers are required to use these devices.

Any available unused MAX header pin can be assigned to this device.

Note: A number of other pins are pre-assigned and required for programming, power, and ground connections.

Page 18: COE4OI5 Engineering Design

18Copyright S. Shirani

UP2/FLEX• FLEX device is attached to a VGA connector, a PS/2 mouse

and keyboard port, two seven segment displays, an eight-position DIP switch and two push buttons.

• To generate video output, mouse or keyboard input, an interface must be designed using logic inside the FLEX device (UP core functions)

• Circuit board holes are provided for three 60-pin expansion header that can be added to connect external hardware

• Do NOT connect high current devices such as motors or relay coils directly to FPGA I/O pins

Page 19: COE4OI5 Engineering Design

19Copyright S. Shirani

Pin Name Pin Type Pin Function of Pin

MSD_dp OUTPUT PIN 14 Most Significant Digit of Seven-segment Display - Decimal Point Segment (0 = LED ON, 1 = LED OFF)

MSD_g OUTPUT PIN 13 MSD Display Segment G (0 = LED ON, 1 = LED OFF)

MSD_f OUTPUT PIN 12 MSD Display Segment F (0 = LED ON, 1 = LED OFF)

MSD_e OUTPUT PIN 11 MSD Display Segment E (0 = LED ON, 1 = LED OFF)

MSD_d OUTPUT PIN 9 MSD Display Segment D (0 = LED ON, 1 = LED OFF)

MSD_c OUTPUT PIN 8 MSD Display Segment C (0 = LED ON, 1 = LED OFF)

MSD_b OUTPUT PIN 7 MSD Display Segment B (0 = LED ON, 1 = LED OFF)

MSD_a OUTPUT PIN 6 MSD Display Segment A (0 = LED ON, 1 = LED OFF)

LSD_dp OUTPUT PIN 25 Least Significant Digit of Seven-segment Display - Decimal Point Segment (0 = LED ON, 1 = LED OFF)

LSD_g OUTPUT PIN 24 LSD Display Segment G (0 = LED ON, 1 = LED OFF)

LSD_f OUTPUT PIN 23 LSD Display Segment F (0 = LED ON, 1 = LED OFF)

LSD_e OUTPUT PIN 21 LSD Display Segment E (0 = LED ON, 1 = LED OFF)

LSD_d OUTPUT PIN 20 LSD Display Segment D (0 = LED ON, 1 = LED OFF)

LSD_c OUTPUT PIN 19 LSD Display Segment C (0 = LED ON, 1 = LED OFF)

LSD_b OUTPUT PIN 18 LSD Display Segment B (0 = LED ON, 1 = LED OFF)

LSD_a OUTPUT PIN 17 LSD Display Segment A (0 = LED ON, 1 = LED OFF)

FLEX_switch_1 INPUT PIN 41 FLEX DIP Switch Input 1 (1 = Open, 0 = Closed)

FLEX_switch_2 INPUT PIN 40 FLEX DIP Switch Input 2 (1 = Open, 0 = Closed)

FLEX_switch_3 INPUT PIN 39 FLEX DIP Switch Input 3 (1 = Open, 0 = Closed)

FLEX_switch_4 INPUT PIN 38 FLEX DIP Switch Input 4 (1 = Open, 0 = Closed)

FLEX_switch_5 INPUT PIN 36 FLEX DIP Switch Input 5 (1 = Open, 0 = Closed)

FLEX_switch_6 INPUT PIN 35 FLEX DIP Switch Input 6 (1 = Open, 0 = Closed)

FLEX_switch_7 INPUT PIN 34 FLEX DIP Switch Input 7 (1 = Open, 0 = Closed)

FLEX_switch_8 INPUT PIN 33 FLEX DIP Switch Input 8 (1 = Open, 0 = Closed)

PB1 INPUT PIN 28 Push-Button 1 (non–debounced, 0 = button depressed)

PB2 INPUT PIN 29 Push-Button 2 (non–debounced, 0 = button depressed)

Horiz_Sync OUTPUT PIN 240 VGA Video Signal - Horizontal Synchronization

Vert_Sync OUTPUT PIN 239 VGA Video Signal - Vertical Synchronization

Blue OUTPUT PIN 238 VGA Video Signal - Blue Video Data

Green OUTPUT PIN 237 VGA Video Signal - Green Video Data

Red OUTPUT PIN 236 VGA Video Signal - Red Video Data

PS2_CLK BIDIRECTIONAL 30 Clock line for PS/2 Mouse and Keyboard

PS2_DATA BIDIRECTIONAL 31 Data line for PS/2 Mouse and Keyboard

Clock INPUT PIN 91 25.175 MHz System Clock on low skew Global Clock Line

Page 20: COE4OI5 Engineering Design

20Copyright S. Shirani


Recommended