Altera Max II Скачать руководство пользователя страница 30

2–22

Development Kit Version 1.1.0

Altera Corporation

MAX II Development Kit Getting Started User Guide

July 2005

Reference Designs

The Visual Basic project consists of the GUI and various pieces of code 
that control the transmission and reception of data and control characters 
to and from the MAX II board. All data is interpreted based on which 
command buttons are pressed. After a command button is pressed, it is 
disabled until the PC receives data for the corresponding component. 
When this data is received, the PC interprets it based on which command 
button is disabled and then processes it appropriately. After all data has 
been processed, the command button is enabled again.

The Visual Basic project relies heavily on drivers provided by Future 
Technology Devices International (FTDI), the company that 
manufactures the USB MAC. FTDI has several drivers available on their 
web site along with bits of Visual Basic code, C code, and documentation. 
Designers looking to interface to a PC in the same manner as this 
application are advised to investigate the driver solutions provided by 
FTDI. This application is formed around FTDI’s Virtual COM Port 
drivers. These drivers essentially mimic a COM port on the PC, making 
the sending and receiving of data relatively easy.

The board is set up so that users can implement designs based on the 
other drivers provided by FTDI, but this does require a hardware 
modification—the footprint labeled J10 is for an EEPROM socket that can 
be added to the board and then populated with the designer’s choice of 
EEPROMs. This EEPROM then allows designers to set the USB Product 
ID and Vendor ID, as well as allowing for USB 1.1 or USB 2.0 (High Speed) 
interfaces to be developed.

Reference Design 2: The Slot Game Reference Design

The MAX II Slot Game Reference Design highlights the high density of 
the MAX II device. The reference design uses approximately 1050 logic 
elements during implementation This total logic cell usage is equivalent 
to roughly 800 macrocells in the legacy MAX architecture. Legacy MAX 
devices contained a maximum of 512 macrocells, making designs such as 
this impossible to implement without purchasing multiple devices.

Using the Slot Machine Reference Design

The MAX II Slot Game Reference Design is based on standard 
casino-style slot machine behavior. It uses a linear feedback shift register 
to determine the values of three simulated slot reels on the MAX II 
board’s LCD. A player controls the progress of the game using three 
buttons on the MAX II board.

The object of the game is to build a total bankroll of $1000 or more by 
using three levels of wagering. The game is initiated by hitting the 

Bet

 

button (S2), at which time the player is given a default total of $199. By 

Содержание Max II

Страница 1: ...Innovation Drive San Jose CA 95134 408 544 7000 www altera com MAX II Development Kit Getting Started User Guide Development Kit Version 1 1 0 Document Version 1 1 0 Document Date July 2005 P25 10351...

Страница 2: ...ghts Altera warrants performance of its semiconductor products to current specifications in accordance with Altera s standard warranty but reserves the right to make changes to any products and servic...

Страница 3: ...nsiderations 2 2 Installing the MegaCore Function Reference Designs Demos 2 2 Installing the Quartus II Software 2 3 Quartus II System Requirements 2 3 Setting Up Licensing 2 3 Connecting the Cables a...

Страница 4: ...iv Development Kit Version 1 1 0 Altera Corporation MAX II Development Kit Getting Started User Guide July 2005 Contents...

Страница 5: ...u can also contact Altera through your local sales representative or any of the sources listed below Chapter Date Version Changes Made All October 2004 1 0 0 First release of User Guide All July 2005...

Страница 6: ...s to sections within a document and titles of on line help topics are shown in quotation marks Example Typographic Conventions Courier type Signal and port names are shown in lowercase Courier type Ex...

Страница 7: ...d include an EPM1270 device along with current sense circuitry power up time detection circuitry SRAM and an LCD Refer to the MAX II EPM1270 Development Board Data Sheet for more information Quartus I...

Страница 8: ...User Guide July 2005 Features Reference Designs Demos Altera provides several demos and reference designs with the MAX II Development Kit to help you get started building applications See Demo Designs...

Страница 9: ...tus II Development Software Web Edition CD ROM Inspect the Board 1 The MAX II development board can be damaged without proper anti static handling Place the board on an anti static surface and inspect...

Страница 10: ...host ID When obtaining a license file for network licensing you should use the NIC number from the PC that will issue the Quartus II licenses to distributed users over a network You can find the NIC n...

Страница 11: ...information Quartus II System Requirements To use the MAX II Development Kit with the Quartus II software provided with the kit your system must meet the Quartus II software minimum requirements Refer...

Страница 12: ...stem will notify you that it Found New Hardware Windows XP automatically installs drivers for you while Windows NT and Windows 98 do not The drivers are only necessary if you are planning to use your...

Страница 13: ...eld to Programming Files cdf sof pof jam jbc 6 Browse to the location of the POF file you want to load into the MAX II device and open it 7 Turn on the three check boxes in the Program Configure and V...

Страница 14: ...following 1 Program the board with FunctionalTest pof located in the root Examples HW Demos directory Refer to Programming the MAX II Device on page 2 4 for details on how to load POF files into the M...

Страница 15: ...MAX II device The next two sections describe the functionality of these designs Demo Designs The MAX II Development Kit includes three demos that illustrate features of the MAX II device Power Up Time...

Страница 16: ...board where the VCC rise time is greater than 1 ms will be fully powered up and configured before the supply reaches minimum VCC The Power up demo allows users to investigate the power up time in two...

Страница 17: ...message scrolls across the LCD Wait for the message to complete The MAX II device is instant on What is an instant The MAX II device measures and displays TCONFIG It also shows how much shorter this i...

Страница 18: ...tiometer labeled POT1 5 Press S5 on the board to interrupt the power and observe the ramp time of VCCINT via the provided test point A sample screen is shown below see Figure 2 4 Understanding the Res...

Страница 19: ...opment board setup the VCCIO ring is on a different supply than VCCINT The VCCIO ring is a constant 3 3 V and does not power cycle when S5 is pressed In Figure 2 4 the MAX II representative I O labele...

Страница 20: ...ves you some understanding of the power that a MAX II device requires The demonstration measures the current drawn by VCCINT as the number of toggling registers and the rate at which they toggle is in...

Страница 21: ...current draw is measured across two 0 33 ohm resistors via a current sense device The output of this device is fed to an A D converter that generates a digital serial output to the MAX II device The v...

Страница 22: ...amming the device The example below holds true whether the designs used are included in this kit or are custom user designs Two of the designs included in this kit continually read from the UFM and th...

Страница 23: ...n still functioning as in step 2 8 Press S5 which interrupts the VCCINT core voltage power supply and forces the MAX II device to reconfigure 9 Observe the Vending Machine Demo functioning as describe...

Страница 24: ...that is included with the kit It provides an example of the VHDL language for users new to programmable logic Reference Designs The MAX II Development Kit provides three reference designs to show how...

Страница 25: ...al Port then the XP found the drivers and installed them Proceed to Step 3 b In the Device Manager window expand the Other Devices item Right click on USB Serial and click Update Driver This will laun...

Страница 26: ...should see the USB Serial Port COM number In Figure 2 7 the board has been assigned COM4 This port number will be different on each machine After you find which COM port your machine has assigned the...

Страница 27: ...e MAX II device interprets the data sent to and received from the MAX II board If you select Hexadecimal the PC will treat all data as hexadecimal characters If you select ASCII then the PC will inter...

Страница 28: ...e text into the Liquid Crystal Display text box and click Write to LCD The same text appears in the LCD display on the board c Write to the SRAM First use Notepad to create a text file and Save the fi...

Страница 29: ...essed 1 The SRAM and UFM read write options only read or write 384 bytes at a time This data is always written to or read from the 384 lowest address locations Understanding the Functionality of the U...

Страница 30: ...easy The board is set up so that users can implement designs based on the other drivers provided by FTDI but this does require a hardware modification the footprint labeled J10 is for an EEPROM socket...

Страница 31: ...amounts at any point in the game A new game can be initiated at any time by recycling the board power plane button S5 Understanding the Functionality of the Slot Machine Reference Design A high level...

Страница 32: ...at represent the value on each reel 3 taps per reel The LFSR is fed by a system clock and the values of each reel are constantly changing on the rising edge of each clock cycle When a player toggles t...

Страница 33: ...tal is then divided into three separate values that represent the Hundreds Tens and Ones place of the number These values along with the LSFR generated values for each reel are mapped to 11 bit codes...

Страница 34: ...urns to its initial introduction display Reference Design 3 PCI Reference Design The PCI Reference Design provides an example of how users can interface the MAX II development board to a PC via the PC...

Страница 35: ...development board as new hardware and prompts you to install a driver Perform the following steps in the Found New Hardware Wizard a Click Next to go to the Install Hardware Device Drivers page b Turn...

Страница 36: ...ber of bytes to 512 d Choose the data type to be Random default e Click Execute f Review the results in the display window 8 To demonstrate control of the LEDs do the following a Click on any one of t...

Страница 37: ...defined push switches on the board to generate an interrupt The application reads the corresponding register to figure out which switch was pushed and clears the interrupt A dialog box appears when an...

Страница 38: ...2 30 Development Kit Version 1 1 0 Altera Corporation MAX II Development Kit Getting Started User Guide July 2005 Reference Designs...

Отзывы: