background image

Altera Corporation 

Development Kit Version 1.1.0

2–25

July 2005

MAX II Development Kit Getting Started User Guide

Getting Started 

Start-up

—When the MAX II device has been successfully 

programmed, the Control block automatically accesses a section of 
the UFM that prompts an introduction sequence to appear on the 
LCD screen. This sequence loops indefinitely until a player presses 
the 

Bet

 button to begin game play. 

Bet Selection

—The 

Bet

 button provides access to three separate 

memory spaces within the UFM, representing the three fixed wager 
amounts. Each time the button is pressed, a memory pointer cycles 
to the next space in the sequence, displaying the corresponding 
wager amount on the LCD screen. The Control block keeps track of 
the memory pointer, and thus can cycle through the three wager 
values repeatedly.

Spin Engagement

—When the 

Spin

 button is toggled, the Control 

block state machine is sent through a series of actions that affect the 
final display of the LCD. First the LFSR is sampled and three 
pseudo-random values are generated from its output. Based on the 
commonality of these values, a new bankroll total is calculated and 
stored internally. This total 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 that prompt the LCD to display the correct 
number value. 

When the values have been calculated and mapped, the Registers block 
(see 

Figure 2–8

) is updated with new bankroll and reel values. The block 

then uses the MUX function to access the flash memory block (for 
simulated spinning action of the reel), and the Register block (to display 
the final bankroll and reel values). Upon completion of this process, the 
design cycles back to monitor the status of the 

Bet

 signal to prepare for 

another spin.

LCD Controller

The MAX II Slot Game Reference Design communicates with the 
on-board LCD through a custom-built controller interface. The logic 
block performs several functions vital to the game behavior. Upon 
successful programming of the device, the block sequentially loads a 
series of specific codes that initialize the LCD hardware and configure the 
display environment. When initialization is complete, it interprets 11-bit 
instructions fed by the design’s Control block, and manages the delivery 
of characters to be displayed on the screen. Based on the value of the 
11-bit input bus, the controller handles changes to the speed, content, and 
direction (read/write) of LCD data.

Содержание 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...

Отзывы: