新聞中心

EEPW首頁(yè) > 嵌入式系統(tǒng) > 設(shè)計(jì)應(yīng)用 > 狀態(tài)機(jī)“毛刺”的產(chǎn)生及消除方法

狀態(tài)機(jī)“毛刺”的產(chǎn)生及消除方法

作者: 時(shí)間:2010-09-17 來(lái)源:網(wǎng)絡(luò) 收藏

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

  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;

  ……

  


上一頁(yè) 1 2 3 下一頁(yè)

評(píng)論


相關(guān)推薦

技術(shù)專區(qū)

關(guān)閉