Programming Model; Operating Modes; Supervisor Mode - Intel NIOS II Owner Reference Manual

Table of Contents

Advertisement

NII-PRG | 2018.04.18

3. Programming Model

This chapter describes the Nios
at the assembly language level. Fully understanding the contents of this chapter
requires prior knowledge of computer architecture, operating systems, virtual memory
and memory management, software processes and process management, exception
handling, and instruction sets. This chapter assumes you have a detailed
understanding of these concepts and focuses on how these concepts are specifically
implemented in the Nios II processor. Where possible, this chapter uses industry-
standard terminology.
Note:
Because of the flexibility and capability range of the Nios II processor, this chapter
covers topics that support a variety of operating systems and runtime environments.
While reading, be aware that all sections might not apply to you. For example, if you
are using a minimal system runtime environment, you can ignore the sections
covering operating modes, the MMU, the MPU, or the control registers exclusively used
by the MMU and MPU.
Related Information
Nios II Software Developer's Handbook
High-level software development tools are not discussed here. Refer to the Nios II
Software Developer's Handbook for information about developing software.

3.1. Operating Modes

Operating modes control how the processor operates, manages system memory, and
accesses peripherals. The Nios II architecture supports these operating modes:

Supervisor mode

User mode
The following sections define the modes, their relationship to your system software
and application code, and their relationship to the Nios II MMU and Nios II MPU.
3.1.1. Supervisor Mode
Supervisor mode allows unrestricted operation of the processor. All code has access to
all processor instructions and resources. The processor may perform any operation the
Nios II architecture provides. Any instruction may be executed, any I/O operation may
be initiated, and any area of memory may be accessed.
Operating systems and other system software run in supervisor mode. In systems
with an MMU, application code runs in user mode, and the operating system, running
in supervisor mode, controls the application's access to memory and peripherals. In
Intel Corporation. All rights reserved. Intel, the Intel logo, Altera, Arria, Cyclone, Enpirion, MAX, Nios, Quartus
and Stratix words and logos are trademarks of Intel Corporation or its subsidiaries in the U.S. and/or other
countries. Intel warrants performance of its FPGA and semiconductor products to current specifications in
accordance with Intel's standard warranty, but reserves the right to make changes to any products and services
at any time without notice. Intel assumes no responsibility or liability arising out of the application or use of any
information, product, or service described herein except as expressly agreed to in writing by Intel. Intel
customers are advised to obtain the latest version of device specifications before relying on any published
information and before placing orders for products or services.
*Other names and brands may be claimed as the property of others.
®
II programming model, covering processor features
ISO
9001:2008
Registered

Advertisement

Table of Contents
loading

Table of Contents