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

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

手机号码,快捷登录

手机号码,快捷登录

找回密码

  登录   注册  

快捷导航
搜帖子
查看: 2265|回复: 7

coding Style 的一些资料,分享一下

[复制链接]
发表于 2009-12-6 22:58:37 | 显示全部楼层 |阅读模式

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

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

x
本帖最后由 linhaidu 于 2009-12-8 20:09 编辑

很经典的,我看我们公司内部的那个编写规则中好多都用得里面的代码风格。
Table of Contents
About This Guide
1. Coding Styles for if Statements and case Statements
Basic if and case Statements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-1
Simple case Statement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1-8
2. Coding if and case Statements for Late Arriving Signals
Sequential if Statements: Late Arriving Data Signal . . . . . . . . . . . . 2-1
Single if Statement: Late Arriving Control Signal . . . . . . . . . . . . . . 2-4
if Statement With Nested case Statement: Late Arriving
Data Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-9
case Statement With Nested if Statement: Late Arriving
Control Signal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2-15
3. Coding Styles for Logic Building Blocks
Decoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-1
Priority Encoder. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-6
Reduction XOR . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-15
Multiplexer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3-21
4. High-Performance Coding Techniques
Data-Path Duplication . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-1
Operator in if Condition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4-8
5. General Coding Style Guidelines
Unintentional Latch Inference . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-1
Incomplete Sensitivity Lists . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-3
Unnecessary Calculations in for Loops . . . . . . . . . . . . . . . . . . . . . . 5-4
Resource Sharing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5-5

coding style.rar

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

发表于 2009-12-7 08:47:36 | 显示全部楼层
下来看看
 楼主| 发表于 2009-12-7 23:05:51 | 显示全部楼层
居然都没有人顶啊,真的很不错
 楼主| 发表于 2009-12-7 23:11:27 | 显示全部楼层
重新编辑了一下
发表于 2009-12-9 23:50:27 | 显示全部楼层
对什么语言的啊?
 楼主| 发表于 2009-12-10 22:06:43 | 显示全部楼层
举例的时候Verilog和VHDL都是用两种语言写的
发表于 2009-12-11 08:30:35 | 显示全部楼层
谢谢楼主分享
发表于 2010-3-25 12:17:26 | 显示全部楼层
thanks a lot
您需要登录后才可以回帖 登录 | 注册

本版积分规则

关闭

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

×

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

GMT+8, 2024-4-30 01:03 , Processed in 0.032824 second(s), 9 queries , Gzip On, Redis On.

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