亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xianweiji.vhd

?? vhdl編寫的頻率計程序
?? VHD
字號:
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
entity xianweiji is
    Port (  clk : in std_logic; --50MHz標準脈沖;
         input0,input1 : in std_logic;--兩個正弦波輸入;
        shift0,shift1 : out std_logic_vector(3 downto 0);--數碼管位選信號;
       led1, led0  :  out std_logic_vector(7 downto 0));--數碼管BCD碼輸出
end  xianweiji ;

architecture Behavioral of  xianweiji is
signal  sign : std_logic;                          
subtype word is std_logic_vector(3 downto 0);
type unit is array(6 downto 0) of word;
signal bcd : unit;
signal h0,h1,h2,h3 : std_logic_vector(3 downto 0);
signal numb, cda  : integer range 0 to 499999;
signal y, yy : std_logic_vector(3 downto 0);
signal sss : std_logic_vector(3 downto 0);
signal x0,x1,x2,x3 : std_logic_vector(3 downto 0);  
signal y0,y1,y2,y3 : std_logic_vector(3 downto 0);  
signal cc : std_logic_vector(18 downto 0);    
begin     
process(clk)
variable b,d : std_logic;
begin
if clk'event and clk='1' then
     if input0='1' and b='0' then b:='1'; numb<=conv_integer(cc); cc<=(others=>'0');
     elsif input0='0' and b='1' then b:='0';
          if input1='1' and d='0' then d:='1'; cda<=conv_integer(cc); 
               if cc=49999999 then cc<=(others=>'0');
               else cc<=cc+1;
               end if;
          elsif input1='0' and d='1' then d:='0'; 
               if cc=49999999 then cc<=(others=>'0');
               else cc<=cc+1;
               end if;
          else  
               if cc=49999999 then cc<=(others=>'0');
               else cc<=cc+1;
               end if;
          end if; 
     else
          if cc=49999999 then cc<=(others=>'0');
             if input1='1' and d='0' then d:='1'; cda<=conv_integer(cc);
             elsif input1='0' and d='1' then d:='0'; 
             end if; 
          else cc<=cc+1;
             if input1='1' and d='0' then d:='1'; cda<=conv_integer(cc);
             elsif input1='0' and d='1' then d:='0'; 
             end if;
          end if;
     end if;
 end if;
end process;
process(clk)
variable count : integer range 0 to 19999999;
variable count0 : integer range 0 to 2000000000;
variable sum : integer range 0 to 1800000000;
begin
if rising_edge(clk) then
  if count=19999999 then count:=0; count0:=0; h0<="0000"; h1<="0000";
                         h2<="0000"; h3<="0000"; sum:=cda*3600;
  elsif count>=19999990 then count:=count+1; 
         y0<=h0; y1<=h1; y2<=h2; y3<=h3;
  elsif count<19999990 then count:=count+1;
    if count0<sum then count0:=count0+numb; 
        if h0="1001" then h0<="0000";
           if h1="1001" then h1<="0000";
              if h2="1001" then h2<="0000";
                 if h3="1001" then h3<="0000";
                 else h3<=h3+1;
                 end if;
              else h2<=h2+1;
              end if;
           else h1<=h1+1;
           end if;
        else h0<=h0+1;
        end if;
    end if;
  end if; 
 end if;
 end process;
process(clk) 
variable count : integer range 0 to 19999999;
variable aa : integer range 0 to 99999999;
variable b : std_logic;
begin
if rising_edge(clk) then
   if count=19999999 then count:=0;bcd(6)<="0000"; bcd(5)<="0000"; bcd(4)<="0000"; bcd(3)<="0000";
                         bcd(2)<="0000"; bcd(1)<="0000"; bcd(0)<="0000"; 
	elsif count>=19999990 then count:=count+1; aa:=0;
      if bcd(6)>"0000" then x3<=bcd(6); x2<=bcd(5); x1<=bcd(4); x0<=bcd(3); sss<="0001";
      elsif bcd(5)>"0000" then x3<=bcd(5); x2<=bcd(4); x1<=bcd(3); x0<=bcd(2); sss<="0010";
      elsif bcd(4)>"0000" then x3<=bcd(4); x2<=bcd(3); x1<=bcd(2); x0<=bcd(1); sss<="0100";
      else x3<=bcd(3); x2<=bcd(2); x1<=bcd(1); x0<=bcd(0); sss<="1000";
      end if;
   elsif count<19999990 then count:=count+1;
         if aa<49999999  then aa:=aa+numb; 
            if bcd(0)="1001" then bcd(0)<="0000";
               if bcd(1)="1001" then bcd(1)<="0000";
                  if bcd(2)="1001" then bcd(2)<="0000";
                     if bcd(3)="1001" then bcd(3)<="0000";
                        if bcd(4)="1001" then bcd(4)<="0000";
                           if bcd(5)="1001" then bcd(5)<="0000";
                              if bcd(6)="1001" then bcd(6)<="0000";
                              else bcd(6)<=bcd(6)+1;
                              end if;
                           else bcd(5)<=bcd(5)+1;
                           end if;
                        else bcd(4)<=bcd(4)+1;
                        end if;
                     else bcd(3)<=bcd(3)+1;
                     end if;
                  else bcd(2)<=bcd(2)+1;
                  end if;
               else bcd(1)<=bcd(1)+1;
               end if;
            else bcd(0)<=bcd(0)+1;
            end if;
		   end if;
	end if;
 end if;
end process;
--*                 *   
--*動態顯示的功能   *
--*                 *

process(clk)
variable count : integer range 0 to 131071;  --2^22;
begin 
 if rising_edge(clk) then
    if count<=32767 then count:=count+1; shift0<="0111"; shift1<="0111";
        y<=y3; led0(0)<='1';
        yy<=x3;
          if sss="1000" then led1(0)<='0';
          else led1(0)<='1';
          end if; 
    elsif count<=65535 then count:=count+1; shift0<="1011"; shift1<="1011";
        y<=y2; led0(0)<='1';
        yy<=x2;
          if sss="0100" then led1(0)<='0';
          else led1(0)<='1';
          end if; 
    elsif count<=98303 then count:=count+1; shift0<="1101"; shift1<="1101";
       y<=y1; led0(0)<='0';
       yy<=x1;
          if sss="0010" then led1(0)<='0';
          else led1(0)<='1';
          end if;
    elsif count<131071 then count:=count+1; shift0<="1110"; shift1<="1110";
       y<=y0; led0(0)<='1';
       yy<=x0;
          if sss="0001" then led1(0)<='0';
          else led1(0)<='1';
          end if;
    elsif count=131071 then count:=0; shift0<="1110"; shift1<="1110";
       y<=y0; led0(0)<='1';
       yy<=x0;
          if sss="0001" then led0(0)<='0';
          else led0(0)<='1';
          end if;
    end if;
case yy is
     when "0000" => led1(7 downto 1)<="0000001";
     when "0001" => led1(7 downto 1)<="1001111";
     when "0010" => led1(7 downto 1)<="0010010";
     when "0011" => led1(7 downto 1)<="0000110";
     when "0100" => led1(7 downto 1)<="1001100";
     when "0101" => led1(7 downto 1)<="0100100";
     when "0110" => led1(7 downto 1)<="0100000";
     when "0111" => led1(7 downto 1)<="0001111";
     when "1000" => led1(7 downto 1)<="0000000";
     when "1001" => led1(7 downto 1)<="0000100";
     when others => led1(7 downto 1)<="0000001";
end case;

case y is
     when "0000" => led0(7 downto 1)<="0000001";
     when "0001" => led0(7 downto 1)<="1001111";
     when "0010" => led0(7 downto 1)<="0010010";
     when "0011" => led0(7 downto 1)<="0000110";
     when "0100" => led0(7 downto 1)<="1001100";
     when "0101" => led0(7 downto 1)<="0100100";
     when "0110" => led0(7 downto 1)<="0100000";
     when "0111" => led0(7 downto 1)<="0001111";
     when "1000" => led0(7 downto 1)<="0000000";
     when "1001" => led0(7 downto 1)<="0000100";
     when others => led0(7 downto 1)<="0000001";
end case;
end if;
end process;
end Behavioral;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲人成人一区二区在线观看| 日韩一区二区三区四区五区六区| 久久成人精品无人区| 一区二区三区电影在线播| 亚洲人123区| 亚洲香蕉伊在人在线观| 一区二区三区免费| 日韩不卡一区二区| 蜜臀av国产精品久久久久| 欧美aaa在线| 激情偷乱视频一区二区三区| 免费精品视频最新在线| 精品一区二区三区在线播放 | 99久久综合99久久综合网站| 国产成人午夜视频| 成人深夜福利app| 色94色欧美sute亚洲线路一ni| 色吊一区二区三区| 欧美系列一区二区| 精品国产一区二区精华| 久久精品欧美一区二区三区不卡| 国产精品成人一区二区三区夜夜夜 | 日本欧美一区二区三区| 麻豆91精品91久久久的内涵| 国精产品一区一区三区mba视频| 国产福利视频一区二区三区| 色8久久精品久久久久久蜜| 884aa四虎影成人精品一区| 欧美精品一区视频| 亚洲欧美一区二区在线观看| 亚洲午夜久久久久久久久电影院 | 久久久九九九九| 亚洲丝袜美腿综合| 日韩激情一二三区| 国产成人av福利| 欧美三级在线视频| 中文字幕国产一区二区| 亚洲精品ww久久久久久p站| 日本欧美久久久久免费播放网| 成人黄色av网站在线| 7777精品伊人久久久大香线蕉 | 欧美日韩视频在线第一区| xf在线a精品一区二区视频网站| 亚洲欧美aⅴ...| 韩国成人福利片在线播放| 欧美在线短视频| 国产精品高清亚洲| 精品一区免费av| 欧美三级日韩在线| 亚洲欧洲一区二区在线播放| 精品一区二区三区的国产在线播放| 91丨porny丨国产| 国产午夜亚洲精品理论片色戒| 五月天网站亚洲| 在线日韩国产精品| 国产精品麻豆99久久久久久| 国产在线视频一区二区| 5858s免费视频成人| 亚洲老妇xxxxxx| 色综合一个色综合| 国产精品久线在线观看| 国产激情一区二区三区| 26uuu欧美日本| 国内外成人在线| 欧美不卡视频一区| 久久成人免费网站| 精品免费视频一区二区| 免费日韩伦理电影| 日韩视频一区在线观看| 另类小说综合欧美亚洲| 日韩一级二级三级精品视频| 免费观看一级欧美片| 日韩一本二本av| 久久成人免费网站| 亚洲精品一区在线观看| 国产乱一区二区| 欧美国产禁国产网站cc| 高清视频一区二区| 国产精品高潮呻吟久久| 91视频免费看| 亚洲国产成人va在线观看天堂| 欧美色成人综合| 免费在线看一区| 精品欧美乱码久久久久久 | 欧美日韩国产a| 亚洲电影激情视频网站| 欧美日本一区二区| 美女mm1313爽爽久久久蜜臀| 亚洲精品一区二区三区四区高清 | 99精品热视频| 夜夜爽夜夜爽精品视频| 欧美另类高清zo欧美| 蜜桃视频在线一区| 国产欧美精品国产国产专区| 99久久精品一区二区| 亚洲激情av在线| 欧美一区二区在线免费观看| 韩国精品在线观看| 亚洲视频免费看| 6080yy午夜一二三区久久| 国产成人在线视频网址| 亚洲精品一二三区| 欧美成人精品1314www| 国产精品一区在线观看你懂的| 中文字幕在线一区免费| 欧美一区三区四区| 福利电影一区二区| 亚洲一二三四区不卡| 久久久久久免费毛片精品| 99精品久久99久久久久| 日韩高清不卡一区| 中文字幕一区二区三区四区不卡| 欧美精品一二三| 高清国产午夜精品久久久久久| 亚洲午夜电影在线观看| 久久综合精品国产一区二区三区| 91豆麻精品91久久久久久| 国内精品国产三级国产a久久| 亚洲一区自拍偷拍| 中文字幕高清不卡| 精品国产1区2区3区| 欧美在线free| gogo大胆日本视频一区| 免费不卡在线观看| 亚洲电影第三页| 亚洲精品一卡二卡| 国产精品国产自产拍在线| 欧美一区二区三区日韩视频| 91蜜桃网址入口| 成人性生交大片免费| 国产一区二区在线视频| 日韩电影在线观看网站| 亚洲另类一区二区| 国产精品久久久久久久久久免费看 | 午夜精品123| 最新久久zyz资源站| 国产亚洲精品中文字幕| 精品久久一区二区三区| 这里只有精品电影| 欧美视频完全免费看| 日本二三区不卡| 91色.com| 在线看不卡av| 在线看一区二区| 欧美午夜在线一二页| 色www精品视频在线观看| av激情成人网| 日本精品一区二区三区高清| 91亚洲永久精品| 91蜜桃在线免费视频| 91黄视频在线| 欧美日韩综合不卡| 欧美日韩亚洲高清一区二区| 欧美日韩视频一区二区| 欧美日韩国产一区二区三区地区| 欧美视频在线一区二区三区 | 91精品一区二区三区久久久久久| 欧美日韩三级一区| 69久久夜色精品国产69蝌蚪网| 777久久久精品| 精品日韩av一区二区| 久久久午夜电影| 1024成人网色www| 亚洲资源中文字幕| 美女网站在线免费欧美精品| 精品一区精品二区高清| 国产1区2区3区精品美女| 91蜜桃网址入口| 91精品黄色片免费大全| 精品乱码亚洲一区二区不卡| 日本一区二区动态图| 综合av第一页| 婷婷久久综合九色综合伊人色| 奇米精品一区二区三区在线观看| 国产精品一区二区x88av| 色综合天天做天天爱| 91麻豆精品国产91久久久| 久久久久久夜精品精品免费| 亚洲同性同志一二三专区| 亚洲a一区二区| 成人在线综合网站| 欧美视频在线一区二区三区 | 欧美日韩一区二区三区视频| 日韩免费高清av| 1区2区3区欧美| 精东粉嫩av免费一区二区三区| 国产精品乡下勾搭老头1| 在线欧美日韩精品| 久久久不卡网国产精品一区| 亚洲一区二区三区中文字幕| 美女性感视频久久| 在线影视一区二区三区| 久久久高清一区二区三区| 亚洲综合久久av| 国产成人a级片| 91精品免费观看| 一区二区三区在线视频播放| 国产综合色在线视频区| 欧美日韩中字一区| 国产精品久久午夜|