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

 找回密码
 注册

手机号码,快捷登录

手机号码,快捷登录

查看: 3103|回复: 4

[原创] 请教大家问题!

[复制链接]
发表于 2010-5-9 09:03:55 | 显示全部楼层 |阅读模式

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

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

x
我用for循环时,自己设置啦一个临时变量,是integer类型的,请问,他能综合吗?
还有,假如可以综合的话,和我定义一个reg类型的临时变量两者相比,哪个更好?麻烦大家啦!!
发表于 2010-5-15 14:11:30 | 显示全部楼层
好像可以
如果for循环不是很大,reg我认为比较好
发表于 2010-5-16 20:19:44 | 显示全部楼层
学习中。。。。。
发表于 2010-6-17 18:30:04 | 显示全部楼层
Yes. From the hardware point of view, a logic synthesizer actually expands and duplicates the circuit in a 'for' statement. However, the data type of an 'integer' is 32-bit by default, while 'reg' is 1-bit.
发表于 2010-6-17 18:37:38 | 显示全部楼层
只要循环次数是确定了的应该就可以!
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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


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

GMT+8, 2025-8-2 17:52 , Processed in 0.022359 second(s), 9 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表