n2sw_nii5v2

n2sw_nii5v2 - Nios II Software Developers Handbook...

Info iconThis preview shows pages 1–5. Sign up to view the full content.

View Full Document Right Arrow Icon
Preliminary Information 101 Innovation Drive San Jose, CA 95134 (408) 544-7000 http://www.altera.com Nios II Software Developer’s Handbook NII5V2-6.0
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Copyright © 2005 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 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. ii Altera Corporation
Background image of page 2
Altera Corporation iii Contents Chapter Revision Dates . .......................................................................... ix About this Handbook . .............................................................................. xi How to Contact Altera . ............................................................................................................................ xi Typographic Conventions . .................................................................................................................... xii Section I. Nios II Software Development Revision History . ...................................................................................................................... Section I–1 Chapter 1. Overview Introduction . ........................................................................................................................................... 1–1 Getting Started . ...................................................................................................................................... 1–1 Development Environment . ................................................................................................................. 1–1 Tools . .................................................................................................................................................. 1–1 Consistent Development Environment . ........................................................................................ 1–3 Consistent Runtime Environment . ................................................................................................ 1–3 Third-Party Support . ............................................................................................................................. 1–4 Migrating from the First-Generation Nios Processor . ...................................................................... 1–4 Further Nios II Information . ................................................................................................................ 1–4 Chapter 2. Tour of the Nios II IDE Introduction . ........................................................................................................................................... 2–1 The Nios II IDE Workbench . ................................................................................................................ 2–1 Perspectives, Editors & Views . ....................................................................................................... 2–2 Creating a New Project . ........................................................................................................................ 2–3 Building & Managing Projects . ............................................................................................................ 2–4 Running & Debugging Programs . ....................................................................................................... 2–6 Programming Flash . .............................................................................................................................. 2–9 Help System . ......................................................................................................................................... 2–10 Section II. The HAL System Library Revision History . .................................................................................................................... Section II–1 Chapter 3. Overview of the HAL System Library Introduction . ........................................................................................................................................... 3–1
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
iv Altera Corporation Contents Nios II Software Developer’s Handbook Getting Started . ...................................................................................................................................... 3–1 HAL Architecture . ................................................................................................................................. 3–2 Services . ............................................................................................................................................. 3–2 Applications vs. Drivers . ................................................................................................................. 3–3 Generic Device Models . ................................................................................................................... 3–3 C Standard Library—Newlib . ........................................................................................................ 3–4 Supported Peripherals . ......................................................................................................................... 3–5 Chapter 4. Developing Programs using the HAL Introduction . ........................................................................................................................................... 4–1 The Nios II IDE Project Structure . ....................................................................................................... 4–1 The system.h System Description File . ............................................................................................... 4–3 Data Widths & the HAL Type Definitions . ........................................................................................ 4–4 UNIX-Style Interface . ............................................................................................................................ 4–4 File System . ............................................................................................................................................. 4–5 Using Character-Mode Devices . .......................................................................................................... 4–7 Standard Input, Standard Output & Standard Error . ................................................................. 4–7 General Access to Character Mode Devices . ................................................................................ 4–8 C++ Streams . ..................................................................................................................................... 4–8 /dev/null . ......................................................................................................................................... 4–8 Using File Subsystems . ......................................................................................................................... 4–8 Using Timer Devices . ............................................................................................................................ 4–9 System Clock Driver . ....................................................................................................................... 4–9 Alarms . ............................................................................................................................................. 4–10 Timestamp Driver . ......................................................................................................................... 4–11 Using Flash Devices . ........................................................................................................................... 4–13 Simple Flash Access .
Background image of page 4
Image of page 5
This is the end of the preview. Sign up to access the rest of the document.

This document was uploaded on 11/01/2011 for the course EE 492 at Boise State.

Page1 / 242

n2sw_nii5v2 - Nios II Software Developers Handbook...

This preview shows document pages 1 - 5. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online