Altera提供FPGA, CPLD和ASIC解决方案
  • 下载
  • 文档资料
  • 产品
    • 器件
    • 设计软件
    • IP
    • 开发套件/电缆
    • 设计和支持服务
    • 资料
  • 最终市场
    • 汽车
    • 广播
    • 计算机和存储
    • 消费类
    • 工业
    • 医疗
    • 军事和航空航天
    • 测试和测量
    • 无线通信
    • 有线通信
  • 技术中心
    • DSP
    • 外部存储器
    • 嵌入式处理
    • 收发器
    • 并行I/O
    • 信号完整性
    • 系统集成
  • 教育与活动
    • 培训中心
    • 大学计划
    • 网络研讨会和视频
    • 演示
    • 活动日程
  • 支持
    • 设计和支持资源指南
    • 知识数据库
    • 器件
    • 软件
    • IP
    • 开发套件和电缆
    • 设计范例
    • 参考设计
    • 下载
    • 用户社区和论坛
    • mySupport
  • 公司介绍
    • 关于我们
    • 客户成功案例
    • 合作伙伴
    • 新闻中心
    • 投资者关系
    • 保护环境
    • 职位招聘
    • 联系我们
  • 在线购买
    • 器件
    • 设计软件
    • 开发和教育套件
    • 电缆和可编程硬件
    • IP
  • 全部页面
  • 产品型号
  • 知识数据库
  • 支持&技术资料
  • 论坛 & Wiki

Hardware Acceleration

主页 > 产品 > IP > 嵌入式处理器 > Nios II > 优势 > 高性能 > Hardware Acceleration

Need to boost performance? No problem. Hardware acceleration is as easy as using an FPGA's programmable logic to offload and accelerate tasks that are typically implemented in application software.

Want to automate hardware acceleration? Simply right-click to accelerate your performance-critical C-language software algorithms, and the tools will automatically convert them to hardware for you.

Read on to learn more about accelerating software in FPGAs. Nios® II developers typically use one of two main methods of hardware acceleration:

  • Hardware accelerators
  • Custom instructions

Hardware Accelerators

Hardware accelerators are blocks of logic that are either automatically generated by the Nios II C-to-Hardware Acceleration (C2H) Compiler or manually designed to offload specific tasks from the system processor. Many math operations are performed more quickly and efficiently when implemented in hardware versus software. SOPC Builder and the AvalonTM switch fabric support using hardware accelerators to boost the performance of software run on a Nios II processor. Among other things, hardware accelerators:

  • Access main memory and other system resources with fully pipelined and memory latency-matched master ports that can sustain extremely high memory bandwidth
  • Are controlled by the CPU through a slave port
  • Have software wrapper functions for control from the CPU, and which substitute for original C code in the tool chain

Figure 1 shows a typical hardware accelerator, which has two master ports to the Avalon switch fabric (read and write). The accelerator uses direct memory access (DMA) components to execute bus read and write operations, and it has a control port to allow for processor control. Finally, in the center, the accelerator logic represents the engine that computes the designated algorithm. 

Figure 1. Anatomy of a Typical Hardware Accelerator

Figure 1. Anatomy of a Typical Hardware Accelerator

  • If you use the Nios II C2H Compiler, all of these components are automatically created and integrated with your system.

Adding powerful capability to Altera's FPGAs, hardware accelerators can be implemented as complex, multi-cycle co-processors with pipelined access to any memory or peripheral in the system. They can utilize FPGA resources (such as on-chip memory and hard-macro multipliers) to implement local memory buffers and multiply-accumulate (MAC) circuits. Using as many master ports as necessary, they can initiate their own read and write operations and access any I/O pin in the system. Many Nios II developers have discovered that hardware accelerators are a great way to boost performance of their software code and take full advantage of the high-performance architecture of Altera® FPGAs.

Custom Instructions

Similar to hardware accelerators, custom instructions allow Nios II designers to increase system performance by offloading portions of the software code to hardware functions. Custom instructions, however, are implemented within the processor boundary, extending the CPU instruction set to accelerate time-critical software.

The configurable nature of Nios II processors enables designers to integrate custom logic directly into the arithmetic logic unit (ALU). Custom instructions let developers optimize software inner loops for applications such as digital signal processing (DSP), packet header processing, and computationally intensive applications, reducing complex operational sequences to a single instruction implemented in hardware. 

Using custom instructions, designers can optimize their system performance in a way not possible with traditional off-the-shelf processors. Altera's SOPC Builder provides a graphical user interface that developers can use to easily import their own hardware design files to create custom instructions that are automatically integrated into the Nios II processor.

Nios II processor custom instructions provide:

  • Up to 256 user-defined instructions
  • Fixed and variable-cycle operation
  • User-logic import wizard
  • C and assembly language software macros

Figure 2 shows the flexibility of the custom instruction logic. 

Figure 2. Custom Instruction Logic

Figure 1. Custom Instruction Logic

For more details, see the Nios II processor handbook.

给本页评分


  • IP和参考设计
    • 所有IP
    • 所有参考设计
    • 桥接和适配器
      • 存储器映射
      • Streaming
    • DSP
      • 滤波和变换
      • 错误检测和纠错
      • 调制和解调
      • 图像与视频处理
    • 嵌入式处理器
      • Nios II
        • 处理器核
          • 快速型CPU
          • 经济型CPU
          • 标准型CPU
        • 优势
          • 低成本
          • 高性能
          • 长生命周期
          • 灵活性
        • 软件工具
          • Nios II IDE
          • Nios II C2H 编译器
          • 软件
        • 开发套件
        • 最终市场
        • 客户成功案例
        • 资料
      • 32/16-Bit 微处理器
      • 8/4-Bit 微处理器
    • 接口协议
      • 通信
      • 以太网
      • 高速
      • PCI
      • 串行
      • 音频和视频
    • 存储器控制器
      • DMA
      • Flash
      • 片内
      • SDRAM
      • SRAM
    • 外设
      • 调试和性能
      • 显示
      • 微控制器外围设备
      • 多处理器协调
  • 关于IP
    • 采用IP设计
      • IP Base Suite
    • 评估和下载IP
    • IP认证
    • 系统设计
    • 申请IP
  • IP合作伙伴
    • 关于AMPP规划
    • IP合作伙伴列表
    请填写反馈意见
    产品 | 最终市场 | 技术中心 | 教育与活动 | 支持 | 公司介绍 | 在线购买
    联系我们 | 站点帮助 | 网站导航 | 个人信息 | 法律申明
    Copyright © 1995-2010 Altera International Limited. 版权所有
    Altera Forum
    Altera
    论坛
    RSS
    RSS
    Flickr
    Flickr
    Email Updates
    电邮新闻