Hardware & Software Requirements
To use the design files provided with this application note, you must have the following software and hardware:
■ ■ ■ ■
Altera Corporation AN417-1.1
Quartus II development software version 6.0 or later, installed on a Windows or Linux computer Nios II Embedded Design Suite (EDS) version 6.0 or later Nios development board provided by Altera, such as the Nios Development Board, Cyclone II Edition JTAG download cable compatible with your target hardware, such as a USB-Blaster cable 1
Background: Scatter-Gather DMA
Background: Scatter-Gather DMA
Embedded systems frequently employ DMA engines to increase data throughput and offload memory copy operations from the processor. In many cases the memory locations being accessed are dispersed throughout the address space. A scatter-gather DMA engine can manage multiple DMA transfers to noncontiguous memory locations, instead of having the processor issue separate DMA transfers for each region of memory. A scattergather DMA creates a table of address and length pairs called a descriptor table, which prepares the engine for all of the transfers. The DMA engine incurs very little overhead when switching between buffer locations, because no software intervention is necessary.
Software-Only Implementation
Example 1 shows the software implementation of the checksum algorithm, which is based on the Braden, Borman and Partridge's implementation of RFC 1071. This implementation is typical for execution on a processor. It is not optimal for the C2H Compiler and does not exploit knowledge of the underlying hardware to create higher performance results. Example 1: Software Implementation of Internet Checksum
/****************************************************************************** * Portable C implementation of the Internet checksum, derived * * from Braden, Borman, and Partridge's example implementation * * in RFC 1071. * * * * Inputs: unsigned short *: base address of the buffer to be summed * * int: length of the buffer to be summed * * Outputs: unsigned short: calculated 16 bit checksum * *******************************************************************************/ unsigned short sw_checksum(unsigned short * addr, int count) { /* Compute Internet Checksum for "count" bytes * beginning at location "addr". */ register long sum = 0; while( count > 1 ) { /* This is the inner loop */ sum += *addr++; count -= 2; } /* Add left-over byte, if any */ if( count > 0 ) sum += * (unsigned char *)addr; /* Fold 32-bit sum to 16 bits */ while (sum>>16) sum = (sum & 0xffff) + (sum >> 16); return (~sum); }
- flywiththewind > accelerating functions with the c2h compiler: scatter ...
-
accelerating functions with the c2h compiler: scatter ...
下载该文档 文档格式:PDF 更新时间:2006-07-02 下载次数:0 点击次数:1文档基本属性 文档语言: Simplified Chinese 文档格式: pdf 文档作者: ISOYES 关键词: 主题: 备注: 点击这里显示更多文档属性 经理: 单位: ISOYES国际认证联盟 分类: 创建时间: 上次保存者: 修订次数: 编辑时间: 文档创建者: 修订: 加密标识: 幻灯片: 段落数: 字节数: 备注: 演示格式: 上次保存时间:
- 下载地址 (推荐使用迅雷下载地址,速度快,支持断点续传)
- PDF格式下载
- 更多文档...
-
上一篇:the us alliance with saudi arabia
下一篇:aspy@cbahawaiiedu
点击查看更多关于flywiththewind的相关文档
- 您可能感兴趣的
- flywiththewind flyinthewind gonewiththewind runwiththewind rollwiththewind gongwiththewind conewiththewind comewiththewind gownwiththewind gunwiththewind
- 大家在找
-
- · 台湾安威刀具
- · 河北教育网
- · 四十五年的守望
- · autocad2011激活码
- · 汽车为什么会跑下载
- · 残疾儿童车
- · 历代书法碑帖全集下载
- · 小学五年级体育说课稿
- · 结肠术后饮食
- · 齐齐哈尔有哪些制药厂
- · 安徽农村信用社考试
- · 长度单位练习题
- · 免费下载大智慧机构版
- · 初三化学第二章试卷
- · petct是什么
- · 佳能ix4000打印机使用
- · 官路风流最新章节900
- · 数学六年级上册练习题
- · 电路第二版课后答案
- · mastercamx4下载
- · 建筑地基处理技术规程
- · 单片机函数信号发生器
- · 材料现代分析与测试方法
- · 高级测量员考试
- · 生产车间规章制度范本
- · 头孢福建古田药业
- · 英语听力免费下载
- · 五大财经类院校
- · 别克凯越钥匙点火
- · 开学安全教育讲稿
- 赞助商链接