Home
DSP Development Kit, Stratix II Edition, Getting Started User Guide
Contents
1. Press S4 to add money If not enough money has been added the following message appears after pressing S2 Insufficient Press S2 This takes you back to screen 3 When the full amount has been deposited and S2 is pressed you come to the final screen Vending Drink Thank You Press S1 or 52 to go back to screen 1 Note that the source code for the Vending Machine Demo is included This is the only VHDL design that is included with the kit It provides an example of the VHDL language for users new to programmable logic Reference The MAX II Development Kit provides three reference designs to show how the MAX II board and the MAX II device can interface with other Designs systems Reference Design 1 USB Reference Design The USB Reference Design provides an example of how to connect a PC to the MAX II development board using the on board USB MAC from Future Technology Devices International FTDI The design consists of a Visual Basic Application and a Quartus IT project Source code for both projects is included on the MAX II Development Kit CD ROM The Verilog HDL code that makes up the MAX II design contains many explanatory comments This design is appropriate for engineers new to programmable logic particularly those with software experience and provides an excellent starting point for understanding the way in which programmable logic devices PLDs manipulate data This design was built su
2. 2 18 V well below the minimum Vcc level of 3 0 V The I O Pin starts out low and at about a core Vcc of 1 25 V the I O pull up becomes active and the I O goes to the Veco level LE In the development board setup the Veco ring is on a different supply than Vcont The Vecio ring is a constant 3 3 V and does not power cycle when 55 is pressed In Figure 2 4 the MAX II representative I O labeled Active I O on the test point on the board switches to 0 V when Vccinr is at 2 18 V It switches after configuration is complete and the core registers are reset and released and the I O are released Once working this I O pin will begin to oscillate with a high and low period equal to Tconrig the time needed to move the configuration data from the Configuration Flash Memory CFM to the configuration SRAM The first falling edge on this I O shown in the lighter color in Figure 2 4 is when configuration is complete Measuring back the Tconric of the first low pulse width of this Active I O will show at approximately what core voltage configuration started Development Kit Version 1 0 0 2 11 MAX II Development Kit Getting Started User Guide Demo Designs 2 12 Figure 2 4 Digital Oscilloscope Image of Vcciwr and MAX 1 0 During Power Up MAX Il Power up Sequence TP3 CCINT 10ms Rise Time TP4 MAX 10 Peroid Tconfiq Voltage Time ms Low Power Demonstration MAX II devices consume very little powe
3. Next Select Don t Search I will choose the driver to install Click Next Leave Show All Devices highlighted and click Next Click Have Disk Click Browse and browse to the lt root gt Examples HW ReferenceDesigns USB_ReferenceDesign Win98_2k_XP_ Drivers directory Click Open This will return you to the Install From Disk menu Click OK and then select Next in the Wizard menu Driver installation should then complete Click Finish and note that the COM Ports amp LPT item in the Device Manager window now contains an item called USB Serial Port COM X where X is an integer number You will need to know the value of X so make a note of it Start the USB_Utility exe application located in the lt root gt Examples HW ReferenceDesigns USB_ReferenceDesign Software directory The user interface shown in Figure 2 6 should appear Development Kit Version 1 0 0 2 17 MAX II Development Kit Getting Started User Guide Reference Designs 2 18 Figure 2 6 USB Reference Design Dialog Box ia Welcome to the MAX II Development Board S lol x r Control Options r Last Updates Current COM Port c omm 4 x The current time is 4 26 41 PM Current Baud Rate u X Data was last sent to the MAX II Default Encoding ASCII a Board at 4 26 28 PM Data was last received from the MAX Il Board at 4 26 28 PM Current Status r Data In from MAX Il Development Board Board Temperature OO Found MAX Il Board o
4. Register the drivers a Opena command prompt DOS window b CD to the lt root gt Examples HW ReferenceDesigns PCI_ReferenceDesign Win2k_XP_Drivers directory Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Altera Corporation October 2004 c Type the following commands wdreg exe inf lt root gt Examples HW ReferenceDesigns PCI_ReferenceDesign Win2k_XP_Drivers windrvr6 inf install wdreg inf lt root gt Examples HW ReferenceDesigns PCI ReferenceDesign Win2k XP Drivers altera maxiipci inf install Turn off your PC and install the MAX IT development board in an available PCI slot Refer to your PC s hardware installation documentation Power up the PC Install the drivers If you are using the Windows 2000 operating system the operating system detects the MAX II 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 on the Search for a suitable driver for my device recommended option c Click Next to go to the Locate Driver Files page d Turn off all of the options under Optional Search Locations e Click Next to go to the Driver Files Search Results page f Click Next to go to the Completing the Found New Hardware Wizard page g Click Finish to complete the
5. Started Altera Corporation October 2004 m Start u 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 M 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 m 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
6. file that enables the software To obtain a license perform the following steps 1 Log on to the Altera web site at www altera com licensing Development Kit Version 1 0 0 2 3 MAX II Development Kit Getting Started User Guide Connecting the Cables and Power to the Board amp PC Connecting the Cables and Power to the Board amp PC Programming the MAX II Device 2 4 2 Click Quartus II Web Edition Software 3 Follow the on line instructions to request your license A license file is e mailed to you 4 To install your license refer to Specifying the License File in the Quartus II Installation amp Licensing Manual for PCs included on the MAX II Development Kit CD ROM The MAX II Development Board obtains power from either the USB or PCI interfaces The three pin jumper J8 controls whether power is obtained via USB or PCI The board ships with the power control option set to USB the shunt on J8 connects pins 1 2 To power the board from the PCI Edge Connector the shunt should be moved to pins 2 3 To use the board outside of a PC chassis you must connect the USB Type A B cable included with the kit from your PC to the board The first time you connect to your PC the operating system 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 PC to transfer data t
7. functionality refer to the Icd_controller v file in the Slot Game Reference Design Quartus II Project Reset Functionality At any point during game play pressing the Reset button S5 will cycle the board power stop the game and reload the design s programming file pof into the SRAM volatile portion of the MAX II device via the Configuration Flash Memory After the file has been reloaded all registers are restored to their default value and the design returns 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 PCI expansion slots The design uses Altera s PCI T32 MegaCore function to interface to the PCI Bus of any standard PC All design files are provided in the lt root gt HW Examples ReferenceDesigns PCI_Reference Design QuartusProject DesignFiles directory A The MAX II PCI demo shows a simple example of how to generate interrupts When a user presses one of the switches an interrupt is generated In a PCI system the interrupts are shared between many devices Special care is required that the user does not press a switch unless the MAX II PCI application is active Using the Reference Design 1 Program the MAX II device with the PCI_RefDesign pof file Refer to Programming the MAX II Device on page 2 4 for details on how to load POF files into the MAX II device 2
8. load on the regulator can be increased by a variable resistor POT1 Four test points are also provided on the board Vecnt Vecio GND and a MAX II User I O pin These four test points are labeled Active I O Test Points and are located near the prototyping area on the board Refer to the MAX II Development Board Data Sheet if you cannot locate the test points on your board These test points allow for oscilloscope probes to be attached so the outputs can be thoroughly examined Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Figure 2 3 Active 1 0 Circuit Diagram d USB 5V Select Power Source PCI 5V Power Interrupt Switch Ramp Circuit l 3 Using the Demo Test 1 Race Against the MAX II Device 1 Altera Corporation October 2004 Program the MAX II device with the InstantOn pof demo located in the lt root gt 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 MAX II device The following 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 Tconric It also shows how much shorter this instant is than the shortest time in which you can push 82 The LCD displays the following TCONFIG 137us SW2 low 000 TCf
9. Anything that must be typed exactly as it appears is shown in Courier type For example c qdesigns tutorial chiptrip gdf Also sections of an actual file such as a Report File references to parts of files e g the AHDL keyword SUBDESIGN as well as logic function names e g TRI are shown in Courier 1 2 3 and Numbered steps are used in a list of items when the sequence of the items is a b c etc important such as the steps listed in a procedure He Bullets are used in a list of items when the sequence of the items is not important 7 The checkmark indicates a procedure that consists of one step only Ls The hand points to information that requires special attention The caution indicates required information that needs special consideration and A 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 The angled arrow indicates you should press the Enter key nz The feet direct you to more information on a particular topic vi Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 N E RYA Chapter 1 About this Kit Features Altera Corporation October 2004 The MAX II Development Kit provides everything you need to develop complete solutions using MAX II d
10. EPROM 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 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started repeatedly pressing the Bet but
11. MAX II Development Kit Getting Started User Guide Running the Functional Test Figure 2 2 Programmer Window Dialog Box Hardware Setup ByteBlasterMV LPT1 Mode JTAG x Progress 0 W Start File Device Checksum Usercode pi Verify BEN at Stop E C MAxIL_DevelopmentKit v1 0 0 Examples HW Demas Functionallestpof EPM1270F256 OOSACF 70 FFFEFFEF Ol JS DI OOSACF 70 FFFFFFFF D O O gl Auto Detect UFM OOSACF O FFFFFFFF X Delete Ch Add File B Change File i Save File CS Add Device Running the Functional Test 2 6 The Functional Test is a simple design that exercises each component on the board to ensure that the board is functioning properly These tests are run at the factory before the boards are shipped They are provided to the user so the board s functionality can be verified at any time during the life of the board To run the tests do the following 1 Program the board with FunctionalTest pof located in the lt root gt 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 MAX II device The LCD should read MAX II by Altera Push S2 to cycle through the tests a After pressing S2 once the LCD screen should display the voltage of Vecini MAX IT Vea can be set to 2 5 V or 3 3 V You can test this feature by placing a shunt on J9 If the shunt
12. MAX II design Development Kit Version 1 0 0 2 21 MAX II Development Kit Getting Started User Guide Reference Designs 2 22 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 E
13. MAX Il Development Kit Getting Started User Guide A DTE RYA o 101 Innovation Drive San Jose CA 95134 408 544 7000 Development Kit Version 1 0 0 www altera com Document Version 1 0 0 P25 10351 00 Document Date October 2004 Copyright 2004 Altera Corporation All rights reserved Altera The Programmable Solutions Company the stylized Altera logo specific device des ignations and all other words and logos that are identified as trademarks and or service marks are unless noted otherwise the trademarks and service marks of Altera Corporation in the U S and other countries All other product or service names are the property of their respective holders Al tera products are protected under numerous U S and foreign patents and pending applications maskwork rights and copyrights 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 services at any time without notice Altera assumes no responsibility or liability arising out of the ap plication or use of any information product or service described herein except as expressly agreed to in writing by Altera NSAI Corporation Altera customers are advised to obtain the latest version of device specifications before relying on any published in formation and before placing orders for products or services I S EN ISO 9001 UG M292904 1 0 ii Devel
14. ROM Quartus II Development Software Web Edition CD ROM Inspect the Board The MAX II development board can be damaged without proper anti static handling Place the board on an anti static surface and inspect it to ensure that it has not been damaged during shipment Verify that all components are on the board and appear intact Note that some components are purposefully unpopulated There are several resistors that are unpopulated as well as an EEPROM socket J10 Refer to the MAX II EPM1270 Development Board Data Sheet available on the MAX II Development Kit CD ROM for information on the board components and their locations Software Requirements You should install the following software before you begin developing designs for the kit M Internet Explorer 4 01 with Service Pack 2 or later to use Quartus II Help You need a web browser to register the Quartus II software and request license files Development Kit Version 1 0 0 2 1 MAX II Development Kit Getting Started User Guide Installing the MegaCore Function amp Reference Designs Demos Installing the MegaCore Function amp Reference Designs Demos 2 2 M Altera recommends that you install the software that is on the MAX II Development Kit CD ROM See Installing the MegaCore Function amp Reference Designs Demos m Quartus II software version 4 1 SP1 or later See Installing the Quartus II Software Important Considerations You need y
15. Typographic Conventions Typographic Conventions This document uses the typographic conventions shown below Visual Cue Bold Type with Initial Capital Letters Meaning Command names dialog box titles checkbox options and dialog box options are shown in bold initial capital letters Example Save As dialog box bold type Italic Type with Initial Capital Letters Italic type External timing parameters directory names project names disk drive names filenames filename extensions and software utility names are shown in bold type Examples fmax qdesigns directory d drive chiptrip gdf file Document titles are shown in italic type with initial capital letters Example AN 75 High Speed Board Design Internal timing parameters and variables are shown in italic type Examples tpa n 1 Variable names are enclosed in angle brackets lt gt and shown in italic type Example lt file name gt lt project name gt pof file Initial Capital Letters Keyboard keys and menu names are shown with initial capital letters Examples Delete key the Options menu Subheading Title References 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 Examples data1 tdi input Active low signals are denoted by suffix n e g resetn
16. by flashing the LEDs If you see that the LEDs are flashing click the Close Port button on the PC application and press S1 on the development board You can then re open the port and use the demo as normal Altera Corporation Development Kit Version 1 0 0 2 19 October 2004 MAX II Development Kit Getting Started User Guide Reference Designs Note that LED8 remains lit If this LED is off while the PC application is idle an error has occurred Close the port reset the board by pressing S1 and re open the port If the PC application stops responding disconnect the USB cable from the board If that doesn t solve the problem you will have to use the Task Manager in Windows to end the PC application manually 7 Using the demo Perform the following tests on the USB Reference Design user interface see Figure 2 6 a Check the LEDs Click on the LEDs and note that they turn on and off on the board as they do in the GUI b Write to the LCD Type some 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 file on your hard drive In the USB_Utility GUI click the Browse button near the SRAM Interface Browse to the file you just created Make sure the default encoding list box says ASCII and click Write to SRAM d Read from the SRAM First check that the Default Encoding lis
17. ch that both the software and hardware portions would be easy to understand not for optimum speed or efficiency 2 16 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Altera Corporation October 2004 Using the USB Reference Design 1 Program the board with the USBReferenceDesign pof file Refer to Programming the MAX II Device on page 2 4 for details on how to load POF files into the MAX II device To install the drivers perform the following steps a When you plug the board into your PC the message Found New Hardware appears When that occurs open your Control Panel and then open the System Menu Click the Hardware tab and then click the Device Manager In the Device Manager window look for an item called Other Devices between Network Adapters and Ports COM amp LPT If you see Other Devices then you must install the drivers Proceed to Step b If you don t see Other Devices then expand the Ports COM amp LPT item and look for USB Serial Port COM X where X is an integer If you see the USB Serial Port then the XP found the drivers and installed them Proceed to Step 3 In the Device Manager window expand the Other Devices item Right click on USB lt gt Serial and click Update Driver This will launch the Found New Hardware Wizard In the Wizard menu select Install from a list or specific location and click
18. ctions are using the MAX II device in accordance with the specifications given in the Data Sheet Before performing a test to verify the power up time of a MAX II device under a certain load you should set the Vccnr supply to 2 5 V or 3 3 V depending on what it will be in the final system The shunt on J9 controls this value If the shunt is present on J9 the MAX II device s Vecnr is 2 5 V if the shunt is not present on J9 the Vccmnt value is 3 3 V The MAX II device data sheet specifies that a MAX II device will be functional less than 300 us after minimum Vcc level is reached In actuality configuration starts at a voltage below minimum Vcc AMAX II device on a 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 different ways The first is a race against the MAX II device that helps define what Instant on means The second is a much more detailed investigation of the power up time that requires an oscilloscope but provides a thorough understanding of how a MAX II device powers up under different loads On Board Circuit The circuit on the board consists of a power regulator that provides the Vcanr voltage The power regulator can be set to 2 5 V or 3 3 V by adding or removing a shunt on J9 If the shunt is in place Vecinr 2 5 V if the shunt is not in place Vecint 3 3 V The
19. d in this kit or are custom user designs Two of the designs included in this kit continually read from the UFM and thus appear to fail when the Real Time ISP option is used and another design is loaded into the CFM These two designs are the Vending Machine Demo and the Functional Test Demo In order to view the Real Time ISP Demo you should avoid having these designs running in the MAX II device while loading a second design into the CFM However either of them can be loaded in the CFM while another design is running Program the MAX II device with the LowPowerDemo pof file Refer to Programming the MAX II Device on page 2 4 for details on how to load POF files into the MAX II device Observe the design functioning as explained in Low Power Demonstration on page 2 12 Open the VendingMachineDemo pof file in the Quartus II software Choose Options Tools menu and then click Programmer in the list of options on the left Check the Enable real time ISP to allow background programming check box See Figure 2 5 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Figure 2 5 Programmer Options Dialog Box Category General EDA Tool Options Internet Connectivity License Setup Processing E Assignment Editor Colors El Block Symbol Editor Colors Fonts Chip Editor Colors Fonts E Floorplan Editor Colors Fonts LogicLock R
20. driver installation If your PC has the Windows XP operating system the operating system detects the MAX II development board as new hardware and prompts you to install a driver Perform the following steps in the Found New Hardware Wizard a Turn on the Install the software automatically Recommended option Development Kit Version 1 0 0 2 27 MAX II Development Kit Getting Started User Guide Reference Designs 2 28 10 b Click Next to go to the Completing the Found New Hardware Wizard window c Click Finish to complete the driver installation Launch the maxiipci exe application located in the lt root gt Examples HW ReferenceDesigns PCI_ReferenceDesign PC_Application directory To demonstrate reading from and writing to the SRAM perform the following steps a Inthe MAX II PCI application choose the command to be Target Loop default b Set the Address Offset to 0x0 default c Change the number of bytes to 512 d Choose the data type to be Random default e Click Execute Review the results in the display window To demonstrate control of the LEDs do the following a Click on any one of the check boxes above the LEDs b Verify that the corresponding LED lights up on the board To demonstrate reading the value from the temperature sensor do the following a Click on the Read button under the temperature control group of the application The data read from the sensor is display
21. ed in Centigrade b Click the F radio button to convert the value to Fahrenheit To demonstrate reading the PCI configuration registers do the following v Click on the Read button under the Config register group of the application The value of the various configuration registers is displayed in the application Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started 11 Push one of the four user 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 interrupt is received see Figure 2 10 If multiple switches are pushed at the same time multiple dialog boxes appear Figure 2 10 Interrupt Received Dialog Box Interrupt Received 1 Got Interrupt 1 and Switch 2 was pressed Altera Corporation Development Kit Version 1 0 0 2 29 October 2004 MAX II Development Kit Getting Started User Guide Reference Designs 2 30 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004
22. egions Window Memory Editor Fonts Messages Filtering Colors Programmer Resource Property Editor Colors Programmer TT Show checksum without usercode T Initiate configuration after programming I Display message when programming finishes IV Enable real time ISP to allow background programming Program the MAX II device with the VendingMachineDemo pof file Observe the Low Power Demo still functioning as in step 2 Press S5 which interrupts the Vccinr core voltage power supply and forces the MAX II device to reconfigure Observe the Vending Machine Demo functioning as described below 2 Pressing 5 again results in the MAX II device re configuring Altera Corporation October 2004 itself with the Vending Machine Demo The Low Power Demo design is now gone and would have to be re loaded into the CFM via the Quartus II programmer in order to be loaded into the MAX II device again Development Kit Version 1 0 0 2 15 MAX II Development Kit Getting Started User Guide Reference Designs Vending Machine Functionality After programming the board you will see the first screen Ice Cold Drinks The available drinks scroll along the bottom of the screen S1 resets the board to this first screen S2 steps through the different screens in sequence Screen 1 Scrolling Drinks Screen 2 Make Drink Selection Press S3 to scroll through drinks Screen 3 Deposit funds
23. evices Several demos and reference designs are included to show some of the features and benefits of MAX II CPLD devices as well as provide a starting point for custom designs This document describes how to install the software provided with the kit and how to use the demos and reference designs that accompany the MAX II development board The MAX II Development Kit includes MAX II Development Board The MAX II development board is a prototyping and evaluation platform that provides designers with an easy way to assess the features of the MAX II device and to begin building custom solutions with the MAX II device Key features of the board 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 II Development Software Web Edition The Quartus II development software provides a comprehensive environment for SOPC design The Quartus II software integrates into nearly any design environment with interfaces to industry standard EDA tools You can obtain a 4 month license for the software from the Altera web site The Quartus IT license allows you to use the product for four months only After four months you must get a renewal to keep on using the software MegaCore IP Functions The kit contains the Altera pci_t32 MegaCore function with the OpenCore Plus feature This OpenCore Plus fea
24. g TCONFIG refers to the time it takes the MAX II device to configure under the current loading conditions SW2 low refers to the number of times the MAX II device could have configured itself in the time that the button was depressed This time is displayed as a multiple of the number of times that the MAX II device could have been Development Kit Version 1 0 0 2 9 MAX II Development Kit Getting Started User Guide Demo Designs configured Press S2 and the 000 changes to the number of times that the MAX II device could have configured itself in that interval typical values should be between 300 600 for fast button pushers Test 2 Using a Scope to Measure Power Up Times 1 Program the MAX II device with the InstantOnDemo pof file that is located in the lt root gt 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 MAX II device 2 Attach scope probes to the four Active I O test points located near the prototyping area on the board 3 Set the trigger on the scope to the channel connected to the Vccint test point and trigger on the rising edge LVTTL logic level 4 Set the load on Vccnr to the desired amount by tuning the variable resistor potentiometer labeled POT1 5 Press S5 on the board to interrupt the power and observe the ramp time of Vecmr Via the provided test point A sample screen is shown below see Figure 2 4 Understandin
25. g the Results The most detailed analysis of the power up character of a MAX II device comes from viewing probe points during the power up cycle with a digital oscilloscope The development board has a variable core Vcc rise time control This system uses POT1 to vary the MAX II core Vcc rise time from 80 us to 150 ms The on board test points provide users with an easy way to examine the ramp time of Vecmr and the resulting configuration completion time The ramp time of Vccint can be varied with POTI thus allowing this circuit to match almost any system s power up rise time and analyze how the MAX II device performs To make power cycling even easier S5 will power cycle the MAX II Voc supply any time it is pressed and released The development board provides four useful probe points V_INT Vecnr MAX II core voltage supply V_IO Vecio MAX II I O voltage supply GND Board Ground plane ACTIVE_IO MAX II User I O pin P12 2 10 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Altera Corporation October 2004 V_INT shows the Core Vcc rise time and the rise time variation caused by POT1 ACTIVE_IO is driven by a MAX II user I O pin that helps demonstrate the instant MAX II becomes functional powered up and configured Figure 2 4 shows a typical digital oscilloscope output For this test the Vecint rise time is 10 ms The device is functional at
26. he USB Type B connector on the MAX II development board Connect the ByteBlaster II cable from the parallel port of your PC to the MAX II board header J2 gt The red stripe on the ByteBlaster cable indicates the side that pin 1 is on Set Up the Quartus Il Software for Programming 4 5 Launch Quartus II and select Open File menu In the Open dialog box set the Files of Type field to Programming Files cdf sof pof jam jbc Browse to the location of the POF file you want to load into the MAX II device and open it Turn on the three check boxes in the Program Configure and Verify columns See Figure 2 2 gt gt Note that the CFM refers to the Configuration Flash Memory this is the non volatile portion of the MAX II device that stores the configuration data and loads it into the logic portion of the MAX II device The UFM refers to the User Flash Memory on the MAX II device This is 8 Kbits of non volatile user storage space For more information on the MAX II device the UFM and the CFM refer to the MAX II Device Handbook Ensure that the Hardware setup box lists the ByteBlaster II cable in the box If it doesn t click Hardware Setup and select the ByteBlaster II cable you may have to add it using the Add button before you can select it Refer to the Quartus Help menu for assistance in setting up the programming hardware Click Start to program the device Development Kit Version 1 0 0 2 5
27. imilarly the current drawn by Vcc o is measured across R95 and R99 Using the same technique as described for Vccnr allows you to calculate the total power being consumed by the MAX II device This circuit uses resistors with a specified variance of 5 which means that the power measurement is not precise This circuit is provided to give users a general understanding of the MAX II device power consumption Users who need a precise power measurement should remove the resistors and measure the current with a multimeter across one of the pads where R109 and R113 reside Users concerned with power consumption should also consult the Understanding amp Evaluating Power in MAX II Devices chapter of the MAX II Device Handbook On Board Circuit The MAX II device 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 value of this number provides an indication of the current that is consumed by the MAX II device allowing you to determine how much power the MAX II device is consuming Refer to the MAX II Development Board Data Sheet and the MAX II development board schematics for more information about the on board circuitry Using the Demo To use this demo first program the MAX II device with the LowPowerDemo pof file in the lt install directory gt Examples HW Demos directory Refer to P
28. is present the voltage displayed on the LCD should be about 2 5 V if the shunt is removed the voltage displayed should be 3 3 V b Pressing S2 a second time will display the value of Inr c Pressing S2 a third time will display the value of the Vecio which should be 3 3 V Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Demo Designs Altera Corporation October 2004 d Pressing S2 a fourth time will display the value of Lo e Pressing S2 a fifth time will display the board temperature which should be between 18 C and 23 C depending on your room temperature f Pressing S2 a sixth time will display the LED test LEDs 1 4 should light up and turn off one at a time g Pressing S2 a seventh time will display the SRAM test the LCD will indicate Pass or Fail h Pressing S2 for the eighth time will display the LCD test note the flashing text Am I flashing If the text disappears and reappears the test passed i Pressing S2 for the ninth time returns to the start up screen The LCD display reads MAX II by Altera If all tests pass the MAX II development board is ready to use Altera provides several demos and reference designs with the MAX II Development Kit to help you get started building applications and to demonstrate the features of the MAX II device The next two sections describe the functionality of
29. it v 1 0 0 Docs QC BoardDesignFiles D Examples AQHW E QD Demos E O YendingMachineSource E LCDController QuartusProject E O ReferenceDesigns PCI_ReferenceDesign Pc_Application O PCI_Megacore_Installer E O QuartusProject O Win2k_XP_Drivers SlotMachine_ReferenceDesign CD QuartusProject USB_ReferenceDesign D Hardware E QD QuartusProject O Software visualBasicProject C2 win98_2k_XP_Drivers Refer to Installing the Quartus IT Software in the Quartus II Installation amp Licensing Manual for PCs which is included on the MAX II Development Kit CD ROM for the software installation instructions After the software finishes installing you must request and install a license to enable it See Setting Up Licensing on page 2 3 for more 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 to System Requirements in the Quartus II Installation amp Licensing Manual for PCs which is included on the MAX II Development Kit CD ROM for the software requirements Before using the Quartus II software you must request a license file from the Altera web site at www altera com licensing and install it on your PC When you request a license file Altera e mails you a license dat
30. n the board Note that each time a button is pressed the corresponding text box on the GUI increments Also note that the board temperature is updated each time a switch is pressed cS 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 USB Reference Design The USB Reference Design has two pieces m Verilog code written to dictate the functionality of the MAX II device m Visual Basic code to control the PC application The MAXI design consists entirely of state machines Each individual design file contains a state machine to control the reading writing of each component These files contain extensive comments and designers are encouraged to look through the Verilog code to gain a complete understanding of how the MAX II design functions The Director v code constantly awaits for one of two things to happen either a button is pressed or data arrives from the PC If a button is pressed the Director enables the PassivesInterface v which takes over control of the output to the USB MAC FIFO and writes the values of the Switch Counters and Temperature blocks If data is received from the PC then the Director passes control to the UFMInterface v the SRAMInterface v or the LCDInterface v depending on the value of the data received Refer to the Verilog code itself for more details on the operation of this
31. n ty 1 Open Port Pushbuttons ooo ooo ooo Close Port 52 53 54 Exit Number of times pushed r Data Out to MAX Il Development Board UFM LEDs me BEE Contents LED1 LED2 LED3 LED4 Click on an LED to tum it off or on Liquid ABCDEFGHI JKLMNOP Read UFM Crystal 2YXWWUTSRQPONMLK Display Write to LCD SRAM Contents Read SRAM On the Control Options menu select the appropriate COM port for your system To find the correct COM port Browse to the Windows Device Manager Control Panel gt System gt Hardware tab gt Device Manager Button Expand the Ports COM amp LPT item and you should see the USB Serial Port COM lt number gt 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 MAX II board select that port in the Current COM Port drop down box in the MAX II USB Utility user interface see Figure 2 6 Click Open Port The application tries to communicate with the board If successful communication is established the status box on the application reports Found MAX II Board on port X where X is the number of the port If it was unsuccessful the status box reports Could not find MAX II Board Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Figure 2 7 Device Manager Window oix Fie Action Vie
32. 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 Development Kit Version 1 0 0 2 25 MAX II Development Kit Getting Started User Guide Reference Designs 2 26 For a detailed explanation of the controller functionality see White Paper MAX II Development Board LCD Controller IS The Slot Game Reference Design has added an extra bit to the bus input of the LCD controller It is used to vary the speed of transactions to the LCD display For more information on this bit and its
33. o and from the MAX II development board For more information refer to Reference Design 1 USB Reference Design on page 2 16 ByteBlaster Il Cable The ByteBlaster II cable is used to download new programming files to the MAX II device The board supplies power to the ByteBlaster II download cable Connect the ByteBlaster II cable s 10 pin female plug to the MAX II device JTAG header on the board J2 and connect the other end to your PC to configure the MAX II device directly using a POF file Is Align the ByteBlaster II connector so that the red strip is orientated towards the Altera logo on the board In order to program the MAX II device on the MAX II development board you must provide power to the board The MAX II development board can be powered via the USB or PCI interfaces This section assumes the board is being powered via USB Refer to Reference Design 3 PCI Reference Design on page 2 26 for details regarding programming when the PCI bus is supplying power Development Kit Version 1 0 0 Altera Corporation MAX Il Development Kit Getting Started User Guide October 2004 Altera Corporation October 2004 Getting Started Set Up the MAX II Development Board for Programming 1 Make sure the shunt on jumper J8 is connected to pins 1 and 2 the two pins closest to the LCD on the board This supplies power from the USB cable to the board power plane Connect the USB cable from the USB port on your PC to t
34. opment Kit Version 1 0 0 Altera Corporation MAX Il Development Kit Getting Started User Guide October 2004 N D TE RYN Contents About this User Guide Revision HISt ry este ine ee ee entente lena v How to Contact Altera Typographic Conventions u vi Chapter 1 About this Kit Features ST SO RER iaia 1 1 Chapter 2 Getting Started System R quireme nts sssssressds uns his innen 2 1 MAX II Development Kit Contents sise 2 1 Inspect the Board Software Requirements Important Considerations ii Installing the MegaCore Function amp Reference Designs Demos 2 2 Installing the Quartus IlSoftware ui Quartus II System Requirements Setting UP LicensiNg enr clint Connecting the Cables and Power to the Board amp PC wo ececcccseessesteseseesseseseeseseeseseeseseeseseeseasenenens 2 4 ByteBlaster II Cable i Programming the MAX II Device Running the Functional Test Demo Designs siii dicen a ea Die ah enna Nines Power Up Time D monstration ela lisi 2 7 Low Power Demonstration Real Time ISP Demonstration Reference Designs seen Reference Design 1 USB Reference Design ss 2 16 Reference Design 2 The Slot Game Reference Design 2 22 Reference Design 3 PCI Reference Design sn 2 26 Altera Corporation Development Kit Version 1 0 0 iii October 2004 MAX II Develo
35. our network identification card NIC ID for licensing the Quartus II software Your NIC number is a 12 digit hexadecimal number that identifies the Windows NT workstation that serves Quartus II licenses Networked or floating node licensing requires an NIC number or server 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 number for your card by typing ipconfig all at a command prompt Your NIC number is the number on the physical address line without the dashes You need administrative privileges to install the required software To install the MegaCore functions and reference designs insert the MAX II Development Kit CD ROM into your CD ROM drive Copy the files to your hard drive Ls The pci_t32 MegaCore function installer is available in the lt root gt Examples HW ReferenceDesigns PCI_ReferenceDesign PCI_Megacore_Installer directory To take advantage of the evaluation version of this MegaCore install it in the directory of your choice Figure 2 1 shows the directory structure Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Installing the Quartus Il Software Setting Up Licensing Altera Corporation October 2004 Figure 2 1 MAX II Directory Structure B B MAXIIDevelopmentk
36. pment Kit Getting Started User Guide Contents iv Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Ae About this User Guide Revision Histo ry The table below displays the revision history for chapters in this user guide Chapter Date Version Changes Made All October 2004 1 0 0 First release of User Guide Refer to the readme file on the MAX II Development Kit CD ROM for late breaking information that is not available in this user guide How to Contact For technical support or other information about Altera products go to Al t the Altera world wide web site at www altera com You can also contact era Altera through your local sales representative or any of the sources listed gny P y below Information Type USA amp Canada All Other Locations Technical support www altera com mysupport www altera com mysupport 800 800 EPLD 3753 1 408 544 8767 7 00 a m to 5 00 p m Pacific Time 7 00 a m to 5 00 p m GMT 8 00 Pacific Time Product literature www altera com www altera com Altera literature services lit_req altera com lit_req altera com Non technical customer 800 767 3753 1 408 544 7000 service 7 00 a m to 5 00 p m GMT 8 00 Pacific Time FTP site ftp altera com ftp altera com Altera Corporation Development Kit Version 1 0 0 v October 2004 MAX II Development Kit Getting Started User Guide
37. r making them ideal for use in systems where power is at a premium The MAX II development board is equipped with two current sense circuits that allow users to measure the power consumed by the MAX II device at different design densities and toggle rates This demonstration provides an easy way to increase the number of registers in the design and the rate at which they are toggling This gives you some understanding of the power that a MAX II device requires The demonstration measures the current drawn by Vecinr as the number of toggling registers and the rate at which they toggle is increased or decreased To calculate the power drawn multiply the number of toggling registers by the voltage supply of Vccinr if the shunt on J9 is in place Veamrt 2 5 V if the shunt is off Vecint 3 3 V Note that the power can always be calculated by measuring the voltage across the current sense resistors and then using Ohm s Law to calculate the current The Vecint current is measured across two parallel 0 33 ohm resistors R109 and R113 You can measure the voltage across either one of these resistors and then divide that by 0 165 ohms the two 0 33 ohm resistors are in parallel for a total resistance of 0 165 Use Ohm s Law to calculate the current and Development Kit Version 1 0 0 Altera Corporation MAX Il Development Kit Getting Started User Guide October 2004 Getting Started Altera Corporation October 2004 then the power S
38. rogramming the MAX II Device on page 2 4 for details on how to load POF files into the MAX II device After programming finishes the LCD will read Current Is 24 mA 000 FF s The switches control the operation of this demo Switch 1 reset Switch 2 increase the number of flip flops that are toggling by 150 Switch 3 decrease the number of flip flops that are toggling by 150 m Switch 4 double the rate at which the flip flops are toggling Development Kit Version 1 0 0 2 13 MAX II Development Kit Getting Started User Guide Demo Designs Real Time ISP Demonstration MAX II devices provide a feature called real time ISP Real time ISP allows a device s Configuration Flash Memory CFM to be loaded with a new design while another design continues to function in the SRAM volatile portion of the device After a new POF file has been loaded into the MAX II device with real time ISP enabled cycling power causes the new design to become active in the MAX II device Further power cycles simply reload the design residing in the CFM you cannot switch back and forth between two different designs Using the Demo A 2 14 Any two designs will allow for investigation of this feature with one important caveat the design residing in the MAX II device cannot read from the UFM while the CFM is being overwritten while actually programming the device The example below holds true whether the designs used are include
39. s it progresses An LCD controller interprets the instructions provided by either path and supplies stimulus to the LCD hardware to render the appropriate images See Figure 2 8 Altera Corporation Development Kit Version 1 0 0 2 23 October 2004 MAX II Development Kit Getting Started User Guide Reference Designs Figure 2 8 Design Overview Bet to display Spin Reset ra E _ LCD Control MUX Controller A single on board system clock feeds all blocks showm above Linear Feedback Shift Register LFSR The LFSR is a 32 bit register chain that uses combinational feedback paths to generate pseudo random number values Nine taps on the 32 bit chain are used to derive three decimal numbers that 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 the Spin button during game play the block captures the current value of each tap and feeds these values to the Control block for further processing See Figure 2 9 Figure 2 9 Linear Feedback Shift Register Design Control This block manages the status and functionality of the player controlled inputs Bet and Spin The functionality of this block can be divided into three major areas 2 24 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting
40. t box says ASCII and then click Read SRAM Make sure the SRAM contents text box shows the data that you typed into your Notepad file Note that when you read from the SRAM a file called SRAMDataBack txt is created in the same directory where the USB_Utility exe file resides This file is re created each time you read from the SRAM It contains the addresses and the data read from those addresses a SRAMDataBack txt must not be open when you try to read from the SRAM 2 20 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Getting Started Altera Corporation October 2004 e Read the UFM The UFM is arranged as 256 locations each containing 32 bits of data Currently residing in the UFM is the inverse of each address Set the default encoding to Hexadecimal and click Read UFM The data displayed should be FFFF FFFE FFFD FFFC FFFB and so forth You can recompile this design with a different memory initialization file MIF to change the data in the UFM Note that when you read from the UFM a file called UFMDataBack txt is created in the same directory where the USB_Utility exe file resides This file is re created each time you read the UFM It contains the addresses and the data read from those addresses US UFMDataBack txt must not be open when you read from the UFM f Display the board temperature and push button counts Press the S2 S3 and S4 buttons o
41. these designs The MAX II Development Kit includes three demos that illustrate features of the MAX II device m Power Up Time Demonstration E Low Power Demonstration E Real Time ISP Demonstration Power Up Time Demonstration MAX II devices power up and configure very quickly and may be used to perform vital power up functions In order to allow users to investigate the fast power up time of a MAX II device the board is equipped with a circuit that allows users to observe the time it takes for a MAX II device to power up under a variety of different power supply loading conditions This circuit allows users to increase or decrease the load on the Vccmr voltage plane As this load is increased the ramp time or slew rate of the MAX II Vecinr voltage increases Using this circuit you can mimic the load that the MAX II device s Voc voltage plane will have Development Kit Version 1 0 0 2 7 MAX II Development Kit Getting Started User Guide Demo Designs 2 8 on a custom piece of hardware This knowledge allows you to verify that the MAX IT device will be powered up and configured quickly enough to perform whatever power up functions are required in the user system A This test is meant to verify the data provided in the MAX II Device Data Sheet not to replace it All MAX II devices will have some fluctuation in power up timing Designers should ensure that systems relying on a MAX II device to perform power up fun
42. ton a player can select between three amounts they wish to wager on a particular turn of the simulated slot reels When the player is satisfied with the wager amount the Spin button S4 is selected initiating the simulated slot action If all three slot reels display the same value the player wins and his total is updated with the appropriate payoff If the reels do not match the wagered amount is subtracted from his earnings Wager amounts and payoffs are listed in Table 2 1 Play continues in this way until the player either reaches 1000 or runs out of money The player is allowed to select any of the wager amounts at any point in the game A new game can be initiated at any time by recycling the board power plane button 55 Table 2 1 Wager Options amp Their Payoffs Wager Payoff 1 16 5 80 50 800 Understanding the Functionality of the Slot Machine Reference Design A high level view of the reference design can be separated into the basic areas of functionality shown below Overview The design functionality is based on a block of logic that monitors the status of two input signals Based on the state of each of these inputs the design sends the appropriate information to an LCD display through one of two paths One path provides access to a block of on chip flash memory that sends display instructions to the LCD The other path stores values for a set of registers that keep track of the game status a
43. ture lets you quickly and easily verify the IP function by running a time limited version in hardware before making a purchase decision The OpenCore Plus hardware evaluation feature is an evaluation tool for prototyping only You must purchase a license to use an Altera MegaCore in production designs Development Kit Version 1 0 0 1 1 MAX II Development Kit Getting Started User Guide Features M 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 on page 2 7 and Reference Designs on page 2 16 for more information on the designs provided 1 2 Development Kit Version 1 0 0 Altera Corporation MAX II Development Kit Getting Started User Guide October 2004 Chapter 2 Getting Started NOTES RIA System Requirements Altera Corporation October 2004 Before using the kit or installing the software be sure to check the contents of the kit and inspect the board to verify that you received all of the items If any of these items are missing contact Altera before you proceed You should also verify that your PC meets the software and system requirements of the kit MAX Il Development Kit Contents The MAX II Development Kit contains the following items MAX II development board with an EPM1270 device ByteBlaster II Programming cable USB Type A B cable MAX II Development Kit CD
44. w Help e m8218 Computer Disk drives 2 Display adapters 2 DVD CD ROM drives Floppy disk controllers J Floppy disk drives 2g Human Interface Devices IDE ATAJATAPI controllers gt Keyboards Mice and other pointing devices Monitors 9 Network adapters F Ports COM amp LPT I Communications Port COM1 I Communications Port COM2 IF ECP Printer Port LPT1 FUSE Serial Port COM4 SB Processors amp SCSI and RAID controllers Sound video and game controllers System devices Universal Serial Bus controllers 7 9 8 9 5 If successful communication is established the LCD displays Connected to PC 6 The PC Application allows you to read from and write to most of the components on the MAX II board Note the Default Encoding drop down box in the Control Options section of the user interface This controls how the 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 interpret all data as ASCII gt This demo relies on the appropriate transmission of data from the PC to the board If corrupt data is transmitted errors will occur The application on the PC may be unaware of hardware errors The board will show hardware errors
Download Pdf Manuals
Related Search
Related Contents
Zephyr WHIRLWIND AK6000 User's Manual Engel RT0204 Manual F MC -16 FAMILY USER`S MANUAL ProScan PLT9011 User's Manual HoloMSM (azufre biológico) LIBRETTO BINOVA (con GARC) Connection to the bus Instrucciones de montaje y servicio para el limitador de par EAS Copyright © All rights reserved.
Failed to retrieve file