新聞中心

EEPW首頁 > 模擬技術(shù) > 設(shè)計(jì)應(yīng)用 > 如何使用STATECAD進(jìn)行多狀態(tài)機(jī)設(shè)計(jì)實(shí)例分析

如何使用STATECAD進(jìn)行多狀態(tài)機(jī)設(shè)計(jì)實(shí)例分析

作者: 時(shí)間:2012-03-26 來源:網(wǎng)絡(luò) 收藏
er1, Readcounter0)));

  Next_sreg=M0full;

  Next_sreg1=M0empty;

  IF ( RESET=''1'' ) THEN

  Next_sreg=STATE0;

  BP_dcounter = (Std_logic_vector''("00"));

  ELSE

  CASE Sreg IS

  WHEN M0full =>

  Next_sreg=M0writewait;

  BP_dcounter = (( Std_logic_vector''(BP_dcounter1, BP_dcounter0)));

  WHEN M0writewait =>

  IF ( (Sreg1=M0empty)) THEN

  Next_sreg=Write0;

  BP_dcounter = (( Std_logic_vector''(BP_dcounter1, BP_dcounter0)) + Std_logic_vector''("01"));

  ELSE

  Next_sreg=M0writewait;

  BP_dcounter = (( Std_logic_vector''(BP_dcounter1, BP_dcounter0)));

  END IF;

  WHEN STATE0 =>

  Next_sreg=Write0;

  BP_dcounter = (( Std_logic_vector''(BP_dcounter1, BP_dcounter0)) +

  Std_logic_vector''("01"));

  WHEN Write0 =>



關(guān)鍵詞: STATECAD 多狀態(tài)機(jī) 實(shí)例分析

評論


相關(guān)推薦

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

關(guān)閉