在线咨询
eetop公众号 创芯大讲堂 创芯人才网
切换到宽版

EETOP 创芯网论坛 (原名:电子顶级开发网)

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 4969|回复: 13

[资料] IEEE-Standard-754 compliant double-precision floating point unit

[复制链接]
发表于 2011-4-27 19:50:58 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
The following describes the IEEE-Standard-754 compliant, double-precision floating point unit,
written in Verilog.  The module consists of the following files:

1.
fpu_double.v (top level)
2.
fpu_add.v
3.
fpu_sub.v
4.
fpu_mul.v
5.
fpu_div.v
6.
fpu_round.v
7.
fpu_exceptions.v


And a testbench file is included, containing 50 test-case operations:
1.
fpu_tb.v

This unit has been extensively simulated, covering all operations, rounding modes, exceptions
like underflow and overflow, and even the obscure corner cases, like when overflowing from
denormalized to normalized, and vice-versa.  

The floating point unit supports denormalized numbers,
4 operations (add, subtract, multiply, divide), and 4 rounding
modes (nearest, zero, + inf, - inf).  The unit was synthesized with an
estimated frequency of 230 MHz, for a Virtex5 target device.  The synthesis results
are below.  fpu_double.v is the top-level module, and it contains the input
and output signals from the unit.  The unit was designed to be synchronous with
one global clock, and all of the registers can be reset with an synchronous global reset.
When the inputs signals (a and b operands, fpu operation code, rounding mode code) are
available, set the enable input high, then set it low after 2 clock cycles.  When the
operation is complete and the output is available, the ready signal will go high.  To start
the next operation, set the enable input high.

Each operation takes the following amount of clock cycles to complete:
1.
addition :
20 clock cycles
2.
subtraction:
21 clock cycles
3.
multiplication:
24 clock cycles
4.
division:
71 clock cycles

verilog_code_for_double_fpu_with_document.rar

114.54 KB, 下载次数: 119 , 下载积分: 资产 -2 信元, 下载支出 2 信元

code for fpu

发表于 2011-4-27 20:48:21 | 显示全部楼层
非常感谢
发表于 2011-4-27 20:53:39 | 显示全部楼层
非常感谢,下来学习学习
发表于 2011-5-21 19:11:49 | 显示全部楼层
看看~~~~
发表于 2011-10-28 16:19:04 | 显示全部楼层
下下来学习一下
发表于 2012-1-26 11:50:02 | 显示全部楼层
www.opencores.org
发表于 2012-2-16 14:37:04 | 显示全部楼层
非常感谢
发表于 2012-6-25 17:33:33 | 显示全部楼层
謝謝分享
发表于 2013-5-14 12:46:02 | 显示全部楼层
非常感谢!!!
发表于 2014-12-6 21:33:42 | 显示全部楼层
学习学习
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

站长推荐 上一条 /2 下一条


小黑屋| 手机版| 关于我们| 联系我们| 在线咨询| 隐私声明| EETOP 创芯网
( 京ICP备:10050787号 京公网安备:11010502037710 )

GMT+8, 2024-12-1 14:19 , Processed in 0.025073 second(s), 9 queries , Gzip On, Redis On.

eetop公众号 创芯大讲堂 创芯人才网
快速回复 返回顶部 返回列表