| 
 | 
 
马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?注册  
 
×
 
一个基本的寄存器模型,用如下两种方式描述: 
1.进程 
process(clk,rst,d) 
..... 
if rst = '1' then 
    q <= '0'; 
elsif rising_edge(clk) then 
    q <= d; 
...... 
2.类似组合逻辑的方式 
q <= '0' when rst = '1' else 
         d when rising_edge(clk); 
 
用第2种方式描述的时候,nlint检查会报combinational loop |   
 
 
 
 |