Docsity

Altera Nios II Processor: A 32-bit Soft Core Solution for Embedded Systems Design, Slides of Computer Science

Partial preview of the text

Download Altera Nios II Processor: A 32-bit Soft Core Solution for Embedded Systems Design and more Slides Computer Science in PDF only on Docsity!

3-General Purpose Processors:

Altera Nios II

Altera Nios II processor

  • A 32-bit soft core processor from Altera
  • Comes in three cores: Fast, Standard, Light
  • The three cores trade FPGA area and power consumption for speed of execution.
  • Is a RISC, Harvard Architecture: Simple instructions, separate data and instruction memories.
  • Has 32 levels of interrupts.
  • Uses the Avalon Bus interface
  • Programs compiled using C/C++ compilers

Three forms of Nios II:

  • Nios II/f —The Nios II/f “fast” core is designed for fast performance. As a result, this core presents the most configuration options allowing you to fine-tune the processor for performance.
  • Nios II/s —The Nios II/s “standard” core is designed for small size while maintaining performance.
  • Nios II/e —The Nios II/e “economy” core is designed to achieve the smallest possible core size. As a result, this core has a limited feature set, and many settings are not available when the Nios II/e core is selected.
  • All three are available to you!

Selection in SOPC:

The performance paradox

  • Microprocessors use much more logic to implement a function than does custom logic.
  • But microprocessors are often at least as fast:
    • heavily pipelined;
    • large design teams;
    • aggressive VLSI technology.

Power

  • Custom logic is a clear winner for low power devices.
  • Modern microprocessors offer features to help control power consumption.
  • Software design techniques can help reduce power consumption.

Design methodologies

  • A procedure for designing a system.
  • Understanding your methodology helps you ensure you didn’t skip anything.
  • Compilers, software engineering tools, computer-aided design (CAD) tools, etc., can be used to: - help automate methodology steps; - keep track of the methodology itself.
  • Altera CAD tools: Quartus 2 , SOPC, Nios II IDE.

Design goals

  • Performance.
    • Overall speed, deadlines.
  • Functionality and user interface.
  • Manufacturing cost.
  • Power consumption.
  • Other requirements (physical size, etc.)

Top-down vs. bottom-up

  • Top-down design:
    • start from most abstract description;
    • work to most detailed.
  • Bottom-up design:
    • work from small components to big system.
  • Real design uses both techniques.

Typical CAD design flow:

SOPC

  • System on a programmable chip – a hardware development tool.
  • Used for integrating various hardware components together like:
    • – Microprocessors, such as the Nios II processorTimers
    • – Serial communication interfaces: UART, SPIGeneral purpose I/O
    • – Digital signal processing (DSP) functionsCommunications peripherals
    • Interfaces to off-chip devices • Memory controllers
      • • Buses and bridgesApplication-specific standard products (ASSP)
      • • Application-specific integrated circuits (ASIC)Processors
  • Generates files in Verilog or VHDL which can be added to the Quartus 2 project.

SOPC builder tool

SOPC system having NIOS:

Examples of embedded systems

projects

  • Network of sonar sensors to increase the warning time for tornadoes, flash floods, or other environment disturbances. Uses data acquisition systems which gather information from sonar sensors, which collect data and relay it over a network.
  • Wireless sensor mote, reading data through UART port
  • Sound data acquisition and recording into secured digital card (SD)
  • TCP/IP network stack with encryption processor via Nios II.
  • Embedded camera control, Edge Detection, and VGA display.
  • Wireless USB adapter, to communicate to remote stations.
  • Bridging multiple network protocols to provide hardware interoperability. E.g. USB to Ethernet interface and vice versa.
  • LCM panel driver
  • Network based encryption
  • GPS driver using UART