Run-time Reconfigurable Scaler design example v9.0 ReadMe file This readme file contains the following sections: o Package Contents o Tool Requirements o General Description o Simulation in Simulink o Simulation in Modelsim o Compilation in Quartus o Release History o Design Examples Disclaimer o Contacting Altera Package Contents ================ The design files in this example include: 1. \scaler_2s60_v90 : this folder contains Quartus project and source files. 2. \scaler_2s60_v90\software\: this folder contains the Nios II C++ source code. Tool Requirements ================= This design example requires the following software package: o Quartus II 9.0 o Nios II 9.0 IDE Please contact your local sales representative if you do not have one of these software tools. General Description =================== This design example shows how to resize a video frame using Altera's Scaler MegaCore® function at run time on the hardware. The various sizes of video and image display devices make scaling one of the most commonly used techniques in video and image processing. This design example demonstrates up conversion from a foreground test pattern in national television system committee (NTSC) format and picture-in-picture mixing with a background test pattern layer. The video stream is output in XGA resolution (1024x768) over a VGA cable. This section is a walkthrough that demonstrate how to run the run-time reconfigurable scaler design on the hardware. Quartus II Compilation ====================== Perform the following steps to compile the project in the Quartus II: 1. Launch the Quartus II software. 2. Open the Quartus II project file: s2_ntsc_in_vga_out.qsf. 3. Open the top level file s2_ntsc_in_vga_out.bdf. 4. Double click on ntsc_in_vga_out_datapath module to launch SOPC Builder 5. In SOPC Builder, generate the SOPC Builder system by clicking on Generate. 6. Close SOPC Builder and click Start Compilation on the Processing menu to compile the Quartus II project. (This design example is intended to be compiled using a 2s60 device, such as 2s60F1020C4. Verify the device selection and start compilation.) 7. Program the s2_ntsc_in_vga_out.sof on the device. Nios II Software ================ Perform the following steps to build the software in the Nios II Integrated Development Environment (IDE): 1. Start the Nios II IDE, v9.0 software. 2. Click Switch Workspace on the File menu and browse to the \software subdirectory of the install directory. 3. Click OK to create a new workspace. 4. When the Nios IDE has restarted, click the Workbench icon. 5. On the File menu, point to New and click Nios II C/C++ Application. 6. In the New Project dialog box: a. Select Blank Project as the Project Template. b. Type scaler_controller in the Name field. c. Turn on Specify Location and type in the path to the directory \scaler_2s60_v90\software\scaler_controller. d. Browse to the SOPC Builder System PTF File ntsc_in_vga_out_datapath.ptf (in the \scaler_2s60_v90 directory). e. Click Finish. 7. Verify that the application project scaler_controller appears in the Nios II C/C++ Projects list. 8. Drag main.cpp, Mixer.hpp, Scaler.hpp, and Vipcore.hpp from Explorer into the scaler_controller folder in the Nios II IDE. 9. Compile and run the program by highlighting the scaler_controller folder in the Nios II; then right-click and select Run As-> Nios II Hardware. 10.Connect the VGA output to a display and you will see the foreground test pattern resizing over the background test pattern. Hardware Simulation with SignalTap (Optional) ============================================ To run the hardware simulation in SignalTap, perform the following steps: 1. In Quartus II, go to Tools -> SignalTap II Logic Analyzer. 2. Go to Processing and click on Run Analysis or Auto Run Analysis Release History =============== Version 9.0 ------------- Initial Release Design Examples Disclaimer ========================== These design examples may only be used within Altera Corporation devices and remain the property of Altera. They are being provided on an “as-is" basis and as an accommodation; therefore, all warranties, representations, or guarantees of any kind (whether express, implied, or statutory) including, without limitation, warranties of merchantability, non-infringement, or fitness for a particular purpose, are specifically disclaimed. Altera expressly does not recommend, suggest, or require that these examples be used in combination with any other product not provided by Altera. Contacting Altera ================= Although we have made every effort to ensure that this design example works correctly, there might be problems that we have not encountered. If you have a question or problem that is not answered by the information provided in this readme file or the example's documentation, please contact your Altera Field Applications Engineer. If you have additional questions that are not answered in the documentation provided with this function, please contact Altera Applications: World-Wide Web: http://www.altera.com http://www.altera.com/mysupport/ Technical Support Hotline: (408) 544-7000 (Internationally) Copyright (c) 2009 Altera Corporation. All rights reserved.