Designing Embedded Processors in FPGAs

Similar documents
Nios Soft Core Embedded Processor

ECE332, Week 2, Lecture 3. September 5, 2007

ECE332, Week 2, Lecture 3

Designing with ALTERA SoC Hardware

Graduate Institute of Electronics Engineering, NTU Advanced VLSI SOPC design flow

Designing with Nios II and SOPC Builder

Excalibur Device Overview

Practical Hardware Debugging: Quick Notes On How to Simulate Altera s Nios II Multiprocessor Systems Using Mentor Graphics ModelSim

The Nios II Family of Configurable Soft-core Processors

System-on Solution from Altera and Xilinx

Designing with ALTERA SoC

StrongARM** SA-110/21285 Evaluation Board

9. Building Memory Subsystems Using SOPC Builder

Design of Embedded Hardware and Firmware

NIOS CPU Based Embedded Computer System on Programmable Chip

Intelop. *As new IP blocks become available, please contact the factory for the latest updated info.

ARM-Based Embedded Processor Device Overview

Five Ways to Build Flexibility into Industrial Applications with FPGAs

Qsys and IP Core Integration

ARM Processors for Embedded Applications

Introduction to the Qsys System Integration Tool

Ethernet Switch. WAN Gateway. Figure 1: Switched LAN Example

Applying the Benefits of Network on a Chip Architecture to FPGA System Design

Enabling New Low-Cost Embedded System Using Cyclone III FPGAs

Embedded Systems. "System On Programmable Chip" NIOS II Avalon Bus. René Beuchat. Laboratoire d'architecture des Processeurs.

System-on-a-Programmable-Chip (SOPC) Development Board

2001 Altera Corporation (1)

Interconnects, Memory, GPIO

SoC Platforms and CPU Cores

Lecture 5: Computing Platforms. Asbjørn Djupdal ARM Norway, IDI NTNU 2013 TDT

Designing with Nios II Processor for Hardware Engineers

2. System Interconnect Fabric for Memory-Mapped Interfaces

Laboratory Exercise 5

Test and Verification Solutions. ARM Based SOC Design and Verification

Simple Excalibur System

FPQ6 - MPC8313E implementation

Building A Custom System-On-A-Chip

NIOS CPU Based Embedded Computer System on Programmable Chip

3-D Accelerator on Chip

Copyright 2016 Xilinx

PCI to SH-3 AN Hitachi SH3 to PCI bus

DDR and DDR2 SDRAM Controller Compiler User Guide

Technology Roadmap 2002

Copyright 2014 Xilinx

Fujitsu System Applications Support. Fujitsu Microelectronics America, Inc. 02/02

Trends in Prototyping Systems. ni logic Pvt. Ltd., Pune, India

AT-501 Cortex-A5 System On Module Product Brief

Tutorial Introduction

Today s Agenda Background/Experience Course Information Altera DE2B Board do Overview Introduction to Embedded Systems Design Abstraction Microprocess

EMBEDDED SOPC DESIGN WITH NIOS II PROCESSOR AND VHDL EXAMPLES

Estimating Nios Resource Usage & Performance

Product Technical Brief S3C2440X Series Rev 2.0, Oct. 2003

Simultaneous Multi-Mastering with the Avalon Bus

Multi-core microcontroller design with Cortex-M processors and CoreSight SoC

LEON4: Fourth Generation of the LEON Processor

Rapidly Developing Embedded Systems Using Configurable Processors

The CoreConnect Bus Architecture

Field Programmable Gate Array (FPGA) Devices

«Real Time Embedded systems» Multi Masters Systems

Microtronix Avalon I 2 C

ASIC Logic. Speaker: Juin-Nan Liu. Adopted from National Chiao-Tung University IP Core Design

A First Look at Microprocessors

Product Technical Brief S3C2416 May 2008

Embedded Design Handbook

Celeron EPIC Computer with GUI and Dual Ethernet SBC4685

Welcome to the Future of Industrial Communication. Introducing the netx Family of Controllers by Hilscher

Fujitsu SOC Fujitsu Microelectronics America, Inc.

Product Technical Brief S3C2412 Rev 2.2, Apr. 2006

9. PIO Core. Core Overview. Functional Description

Full Linux on FPGA. Sven Gregori

386EX PC/104 Computer with CompactFlash and PCMCIA SBC1390

Z8 Encore! XP F1680 Series 8-Bit Flash Solution with Extended Peripherals

Excalibur ARM-Based. Embedded Processors PLDs. Hardware Reference Manual January 2001 Version 1.0

AN OPEN-SOURCE VHDL IP LIBRARY WITH PLUG&PLAY CONFIGURATION

CHAPTER 1 Introduction of the tnano Board CHAPTER 2 tnano Board Architecture CHAPTER 3 Using the tnano Board... 8

S2C K7 Prodigy Logic Module Series

«Real Time Embedded systems» Cyclone V SOC - FPGA

ALTERA FPGAs Architecture & Design

Section II. Peripheral Support

Introduction to the Altera SOPC Builder Using Verilog Designs. 1 Introduction

Product Technical Brief S3C2413 Rev 2.2, Apr. 2006

Multimedia Decoder Using the Nios II Processor

Overview of Microcontroller and Embedded Systems

Microprocessors/Microcontrollers

Next Generation Multi-Purpose Microprocessor

VXS-610 Dual FPGA and PowerPC VXS Multiprocessor

VXS-621 FPGA & PowerPC VXS Multiprocessor

High Aberrance AES System Using a Reconstructable Function Core Generator

FPQ9 - MPC8360E implementation

Digital Systems Design. System on a Programmable Chip

Graduate Institute of Electronics Engineering, NTU. ASIC Logic. Speaker: Lung-Hao Chang 張龍豪 Advisor: Prof. Andy Wu 吳安宇教授.

SISTEMI EMBEDDED AA 2013/2014

Microtronix ViClaro IV GX Camera Link Development Kit

CONTACT: ,

Embedded Computing Platform. Architecture and Instruction Set

PXA270 EPIC Computer with Power Over Ethernet & Six Serial Protocols SBC4670

DE2 Board & Quartus II Software

نﺎﻬﻔﺻا ﻲﺘﻌﻨﺻ هﺎﮕﺸﻧاد ﺮﺗﻮﻴﭙﻣﺎﻛ و قﺮﺑ هﺪﻜﺸﻧاد

University of Massachusetts Amherst Computer Systems Lab 2 (ECE 354) Spring Lab 1: Using Nios 2 processor for code execution on FPGA

MICROTRONIX AVALON MULTI-PORT FRONT END IP CORE

Transcription:

Designing Embedded Processors in FPGAs 2002

Agenda Industrial Control Systems Concept Implementation Summary & Conclusions

Industrial Control Systems Typically Low Volume Many Variations Required High Customization Number of Attached Sensors Types of Attached Sensors Required User Interface Needs Storage & Recording Needs Touch Panel Displays Increasing Use to Reduce Cost Industrial Equipment Touch Panel Display

Concept Flexibility Need to Easily Modify Design Allowing for Customization or Feature Enhancements Reaction to Customer Needs Changing Solution Needs: New Sensors/ New Control Time to Market Capability to Complete Development Work for Solution in Time to Meet Specific Market Window Rapid Design of New Control Solutions Reusability Ability to Reuse Much of Existing Design As Starting Point for New Solution

Concept Solution Requirements Minimal Cost Overall Solution Measured Not Only By Cost of Components, But Cost of Board The Lower the Solution Cost, The Easier It becomes to Win Business & Sustain Margins Manufacturability Can Existing Implementation Be Maintained If Devices Fail i.e., Is Supply Guaranteed? Device Qualification If Company Has Stringent Device Qualification Needs, Advantages of Utilizing Single Device for Many Applications Becomes Apparent

Conceptual Solution Industrial Control Flow Diagram Hardware Block Diagram Software System

Industrial Control Flow Diagram Example: PID Controller Typical Transfer Function Y U 2 ( s) K Ds + K Ps + K I = 2 () s ( m + K D ) s + ( b + K P ) s + K I ϑ + - KP KI KD + + + + - <=UL >=LL Lag Process

Hardware Block Diagram Hardware Block Diagram Control Processor Memory Custom I/F Custom I/F UART UART SPI SPI I2C I2C IDE Ethernet LCD Touch Panel Storage Control Devices/Sensors

Software System User Applications HTTP Server HTML Browser Telnet Server Telnet Client SMB Server SMB Client Window Server CGI Apps Custom App Operating System Graphical Services Networking Services File System Services Inter-Process Services Device Drivers Task Services Kernel Touch Panel LCD Interface Ethernet IDE I2C SPI UART Custom Interface

Implementation Selected System Components Cyclone FPGA Nios Embedded Processor µclinux Software Solution Development

Cyclone FPGA Advantages High-Density, Full-Featured FPGA Maximizes Flexibility, Avoids Obsolescence & Device Qualification Issues Low Cost Reduces Production Costs without Reducing Solution Functionality High Performance Maximizes Longevity of Solution & Functional Economy Migration Path Enables Same Board to Be Used for Different Solutions Enables High Levels of Integration Minimizes Component Count & Board Costs

Powerful Cyclone Functionality External Memory Interface Dedicated SDRAM & FCRAM Interface Circuitry 266-Mbps Performance Differential Signaling 311-Mbps Performance Up to 129 Channels Embedded Memory Up to 294,912 RAM Bits 200-MHz Performance Phase-Locked Loops System Clock Management Features Up to 2 PLLs

Nios Processor Systems Not Just A Processor Complete Microprocessor Subsystem Processor Core Plus Peripherals & Memory Interfaces Custom Peripherals Custom Instructions Simultaneous Multi-Master Avalon Bus Connects All Components Multiprocessor Systems Possible PIO: Parallel I/O SPI: Serial Peripheral Interface Nios Custom Logic Nios Nios Nios CPU On-Chip ROM On-Chip RAM Avalon Bus UART PIO Timer SPI SDRAM Controller Your Design Here

Nios System Architecture Nios CPU On-Chip Debug Core Off-Chip Software Trace Memory Instr. Data Address decoder Interrupt Controller Wait State Generation Data In Multiplexer Master Arbitration Avalon Master/ Slave Port Interfaces UART 0 Timer 0 SPI 0 GPIO 0 DMA 0 Memory Interface UART n Timer n SPI n GPIO n DMA n Dynamic Bus Sizing Avalon Bus Module User-Defined Interface

Peripheral Components Memory Interface On-Chip RAM, ROM Off-Chip SDRAM Controller SSRAM SRAM Flash, ROM DMA Controller Memory-Peripheral Memory-Memory Peripheral-Peripheral Bridges AHB to Avalon Bus Bridge Parallel I/O (PIO) Registers General-Purpose I/O Registers (PIO) Input Output Bidirectional User-Defined Interface Serial I/O UART SPI Timer Simple Timer Pulse Generator Watchdog Timer

Nios Embedded Processor Standard RISC Components Optimized for Size & Performance in PLDs Fully Synchronous Interface Instruction Address Instruction In 16 Instruction Fetch & Decode Program Counter Operand Fetch & Store ALU Read/Write Byte Enable Data Out Data Address Clock Wait Reset Clock Enable General Purpose Register File M U X Interrupt Control 6 Data In IRQ IRQ Number IRQ: Interrupt Request ALU: Arithmetic Logic Unit

Simultaneous Multi-Master Bus Master 1 (Nios CPU) I D Master 2 (100Base-T) Master n (100Base-T) Multi-Master Avalon Bus Avalon Bus Avalon Bus Avalon Bus Arbiter Arbiter Program Memory I/O 1 I/O 2 Data Memory 1 Data Memory n

Simultaneous Multi-Master Bus Master 1 (Nios CPU) I D Master 2 (100Base-T) Master n (100Base-T) Fetch Code Receive Packets Send Packets Avalon Bus Avalon Bus Avalon Bus Arbiter Arbiter Program Memory I/O 1 I/O 2 Data Memory 1 Data Memory n

State Machine/PLC Replacement System Development Complexity Development Time Resource Utilization Design Flexibility A High High High Low B Lower Lower Lower Higher System A Circuit 1 Circuit 2 System B Circuit 1 Circuit 2 Control Circuit 3 Control Control Circuit 4 Control Nios Circuit 3 Circuit 4

Nios Embedded Processor Advantages Highly Configurable 16-,32-Bit Variants, Add Peripherals as Required Optimized For PLD Implementation Minimal Size, Reduces Device Costs Royalty Free No per Product Fee Low Cost Minimal Investment Obsolescence Proof Migration to New Altera Device Families Longevity Associated with Altera Device Families

µclinux Software Linux 2.4 C++ Support μclibc Embedded Library Source Code Provided SOPC Builder Support Fully Supported in Cygwin Environment

µclinux Software Advantages Open Source Environment Availability of Solutions Simplifies Development HTTP Server, HTTP Browser, Telnet Server, Telnet Client Driver Availability Large Driver Resource Ability to Integrate Custom Drivers Integration with Altera Tools Quartus Software SOPC Builder

Solution Development Example System: Cookie Factory Network Control System Touch Panel Display Program # Temp Speed System # STOP RESET Motor Control Digital Sensor

Solution Development Cyclone Logic Element Implementation Cost Block LEs Block LEs 16-Bit Nios 900-1,100 IDE Interface 100-200 LCD I/F 100-2,500 Customer Interface 200 Touch Panel I/F 200-5,000 UART, SPI, I2C 200-300 Ethernet 100-2,500 CAN 100

Solution Development Memory Control Processor Cyclone UART UART UART UART IDE Ethernet I/F LCD I/F T. Panel I/F LCD Touch Panel Storage Memory

Solution Development Function Amount LE Cost Total Processor 1 1,200 1,200 UART 4 300 1,200 Touch Panel Interface 1 500 500 LCD Interface 1 700 700 Ethernet Interface 1 100 100 IDE 1 100 100 Total 3,800

Solution Development EP1C6 Has 5,980 Logic Elements Solution Requires 3,800 Logic Elements Device 63.5% Utilized Memory Requirements EP1C6 Has 92,160 RAM Bits External Memory Only for LCD Image Memory 614,400 RAM Bits Required for QVGA

Solution Development Processor Library Peripheral Library Hardware Development EDIF Netlist HDL Source Files Testbench SOPC Builder GUI Configure Processor Select & Configure Peripherals, IP Connect Blocks Generate Custom Instructions IP Modules Software Development C Header files Custom Library Peripheral Drivers Synthesis & Fitter Hardware Configuration File Verification & Debug Executable Code GNUPro Compiler User Design JTAG,Serial, or Ethernet User Code Other IP Blocks Quartus II Altera PLD On-Chip Debug Software Trace Hard Breakpoints SignalTap II Libraries RTOS GNUPro Tools

SOPC Builder Design Tool System Customization Component Integration Software Generation System Verification IP Testbench Software User Logic

SoPC Builder - Customization Pool of SOPC Builder-Ready Components Communications DSP User Created in DSP Builder Bus Interfaces Bridges Processors Nios and ARM Web-Based IP Deployment

SoPC Builder - Customization Table of Active Components Configure Each Component Interrupt Request (IRQ) Base Address Hardware Parameters Software Parameters Wizard-Based Configuration

SoPC Builder - Integration Bus Connection Patch Panel Multi-Master Bus Slave-Side Arbitration Optimized for Throughput Bus Bridging AMBA Advanced High-Performance Bus (AHB) Avalon Bus Atlantic Interface PCI

Nios OS / RTOS Support Provider Accelerated Technology Mapusoft Technologies Microtronix Shugyo Design MiSPO Co., Ltd. Product Nucleus PLUS OSChanger µclinux KROS NORTi Royalty-Free, Source-Available RTOS Tool to Convert psos / VxWorks Applications to Nucleus PLUS Open-Source OS Description Small-Footprint, Royalty-Free, POSIX- Compliant RTOS µitron 4.0-Compatible Real-Time Kernel

Nios Debug Solutions Provider Viosoft Microtronix Microtronix Sophia Systems Red Hat Product Arriba! Debugger Module OCD Solutions Kit WatchPoint GDB / Insight* IDE with Integrated Support for Nios On-Chip Debug Module - Hardware Breakpoints & Processor Trace External Memory Daughter Card for Use as Software Trace Capture Buffer Insight (gdb) Debugger Enhanced to Support Hard Breakpoints & Software Trace Full-Featured Debug Environment with Advanced On-Chip Debug Support Software Debugger Description Altera Tracelink* * Included in Nios Development Kit Interface to Nios On-Chip Debug Module Hardware Breakpoints & Processor Trace

Nios Development Kits Altera 10/100 Ethernet Development Kit PCI Development Kit 32-Bit 33-MHz PCI Master/Target PCI Bus Hosting Features Third Party Linux Development Kit IDE Interface Compact Flash SDRAM Controller VGA/LCD Touchscreen ADC/DAC Analog Module ACEX EP1K100 Development Kit The List Keeps Growing...

Other Industrial Applications 2002

Factory Automation System Video Input Video Input Video Input Buffer Memory Buffer Memory Buffer Memory FIR Filter 32-Bit Nios Processor Image to Data Conversion UART Profibus Controller Recognition Module System in Cyclone Host System

Process Control System Host System PHY Ethernet MAC 10/100 Receiver Module Measurement Device Profibus Controller A/D Converter Flash Memory EPROMS Clock 32-Bit Nios Processor Bus Interface 12C UART CAN Controller & Interface Automation System System in Cyclone

Network Test Equipment System 10/100 10/100 10/100 PHY PHY PHY Configuration Control Backplane Control Test Chassis 10/100 10/100 Ethernet PHY PHY MAC Network Traffic Generator Network Traffic Capture & Analysis 32-Bit Nios Processor ROM RAM DRAM System in Cyclone

Summary & Conclusions Provides Best All-Round Solution Addresses Major Design & Implementation Issues Design Considerations Flexibility Time to Market Reusability Solution Requirements Minimal Cost Manufacturability Device Qualification Remote Accessibility Multiple Applications