正在加载图片...
Step 4-Modify the Source Code BEGIN IF clearI THEN cnt<=l ELSE IF (rowfp'event and rowfp=I") THEN IF cnt=9 THEN ELSE cnt<=cnt+I TIPUT END IF- DEPENDS END IF DFF COUNTER ON THE DFF END IF ANC COUNTER CASE cnt Is When 9=>csnode<=000000001 WHEN I =>csnode<=000000010 WHEN 2 =>csnode<="000000100" WhEn 3 =>csnode<="000001000 WHEN 4 =>csnode<="000010000" WHEN 5=>csnode<=000100000 WHEN 6=>csnode<=001000000 WHEN 7=>csnode<=010000000 HEN8= anode<="100000000 HEN OTHERS =>csnode<=000000000 END CASE Output depends on the END PROCESS. process(rowfp, csnode ADVANCE counter Add an extra dFe if (rowfp'event and rowtp=I') then value cs<= csnode- end if Copyright 1997 Altera Corporation 9/12/97Copyright © 1997 Altera Corporation 9/12/97 Step 4 - Modify the Source Code BEGIN IF clear='1' THEN cnt<=1; ELSE IF (rowfp'event and rowfp='1') THEN IF cnt=9 THEN cnt<=1; ELSE cnt<=cnt+1; END IF; END IF; END IF; CASE cnt IS WHEN 9 =>csnode<="000000001"; WHEN 1 =>csnode<="000000010"; WHEN 2 =>csnode<="000000100"; WHEN 3 =>csnode<="000001000"; WHEN 4 =>csnode<="000010000"; WHEN 5 =>csnode<="000100000"; WHEN 6 =>csnode<="001000000"; WHEN 7 =>csnode<="010000000"; WHEN 8 =>csnode<="100000000"; WHEN OTHERS =>csnode<="000000000"; END CASE; END PROCESS; process(rowfp,csnode) begin if (rowfp'event and rowfp='1') then cs <= csnode; end if; end process; DFF COUNTER DFF OUTPUT DEPENDS ON THE ADVANCE COUNTER VALUE DFF DFF Add an extra DFF Output depends on the ADVANCEcounter value
<<向上翻页向下翻页>>
©2008-现在 cucdc.com 高等教育资讯网 版权所有