| 
 | 
 
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册  
 
×
 
新思的HDL编码指南,对学习coding的同志们有大大的好处 
下面是目录 
 
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 
v1999.10 Guide to HDL Coding Styles for Synthesis 
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 |   
 
 
 
 |