新闻中心

EEPW首页 > 嵌入式系统 > 设计应用 > 状态机“毛刺”的产生及消除措施

状态机“毛刺”的产生及消除措施

作者:时间:2012-08-11来源:网络收藏

when st4 => if (eoc =’0’)then next_state=st4;else next_state =st5; end if;

本文引用地址:http://www.eepw.com.cn/article/148615.htm

  when st5 => next_state =st6;

  when st6 => next_state =st0;

  when others=> next_state =st0;

  end case;

  out4=current_state(5 downto 2);

  ale=current_state(5); start =current_state(4);

  oe=current_state(3); lock1=current_state(2);

  end process;

  process(clk)

  begin

  if (clk’event and clk =‘1’) then

  current_state =next_state;

  end if ;

  end process ;

  process (lock1)

  if lock1=‘1’ and lock1’event then

  regl=d ;

  end if ;

  end process ;

  q=regl;

  ……

  


上一页 1 2 3 下一页

评论


相关推荐

技术专区

关闭