新闻中心

EEPW首页 > 模拟技术 > 设计应用 > 如何使用STATECAD进行多状态机设计实例分析

如何使用STATECAD进行多状态机设计实例分析

作者:时间:2012-03-26来源:网络收藏
FONT: 14px/25px 宋体, arial; TEXT-TRANSFORM: none; COLOR: rgb(0,0,0); TEXT-INDENT: 0px; PADDING-TOP: 0px; WHITE-SPACE: normal; LETTER-SPACING: normal; BACKGROUND-COLOR: rgb(255,255,255); orphans: 2; widows: 2; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px">  IF ( BP_dcounter0=''1'' AND BP_dcounter1=''1'' ) THEN

  Next_sreg=M0full;

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

  ELSE

  Next_sreg=Write0;

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

  Std_logic_vector''("01"));

  END IF;

  WHEN OTHERS =>

  END CASE;

  END IF;

  IF ( RESET=''1'' ) THEN

  Next_sreg1=STATE1;

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

  ELSE

  CASE Sreg1 IS

  WHEN M0empty =>

  Next_sreg1=M0readwait;

  Readcounter = (( Std_logic_vector''(Readcounter1, Readcounter0)));

  WHEN M0readwait =>

  IF ( (Sreg=M0full)) THEN

  Next_sreg1=Read0;

  Readcounter = (( Std_logic_vector''(Readcounter1, Readcounter0)) +



关键词: STATECAD 多状态机 实例分析

评论


相关推荐

技术专区

关闭