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

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

?? frequency_counter.vhd

?? 晶振頻率實時顯示在LCD上,包含LCD驅動等程序.
?? VHD
?? 第 1 頁 / 共 2 頁
字號:
-- Reference design - Frequency counter for Spartan-3E Starter Kit (Rev.C).
--
-- Ken Chapman - Xilinx Ltd - 7th March 2006
--
--  *** This design contains an evaluation test feature of the DCM. ****
--  *** Before this design can be processed a special environment   ****
--  *** needs to be set or the 'dcm_fixed_osc' module removed.      ****
--  *** Please read the notes provided in 'dcm_fixed_osc.vhd' for   ****
--  *** details of this special requirement.                        ****
--
--
-- Provides a frequency counter with resolution of 1Hz up to a maximum frequency of 
-- approximately 200MHz (limited by maximum clock rate of design).
--
-- The 50MHz on board oscillator is used to provide a 1 second time base and therefore 
-- defines the accuracy of the measurement. If the frequency of the 50MHz oscillator can 
-- be determined using a calibrated frequency counter or frequency generator then this design 
-- could be tuned to match the particular board. 
--
-- Slide switches SW0, SW1, SW2 and SW3 allow selection of the input signal or one of three test 
-- signals. Only one switch should be selected and the LCD display will guide and confirm the 
-- selection process.
--
-- SW0 selects SMA connector (J17) as the input signal to be analysed. 
-- SW1 selects the 50MHz oscillator as a test signal and must yield a perfect result since it is 
--     also the definition of the measurement time base..
-- SW2 selects a signal of approximately 145MHz which is generated by one of the DCMs operating 
--     in a special test oscillator mode.
-- SW3 selects a ring oscillator implement using a combinatorial loop in the CLB fabric. 
--
-- LED indicate measurements in progress (1 second alternate flashing of 4 LEDs).
--
-- PicoBlaze performs calculations and conversions as well as driving the LCD display.
--
------------------------------------------------------------------------------------
--
-- NOTICE:
--
-- Copyright Xilinx, Inc. 2006.   This code may be contain portions patented by other 
-- third parties.  By providing this core as one possible implementation of a standard,
-- Xilinx is making no representation that the provided implementation of this standard 
-- is free from any claims of infringement by any third party.  Xilinx expressly 
-- disclaims any warranty with respect to the adequacy of the implementation, including 
-- but not limited to any warranty or representation that the implementation is free 
-- from claims of any third party.  Furthermore, Xilinx is providing this core as a 
-- courtesy to you and suggests that you contact all third parties to obtain the 
-- necessary rights to use this implementation.
--
------------------------------------------------------------------------------------
--
-- Library declarations
--
-- Standard IEEE libraries
--
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--
-- The Unisim Library is used to define Xilinx primitives. It is also used during
-- simulation. The source can be viewed at %XILINX%\vhdl\src\unisims\unisim_VCOMP.vhd
--
library unisim;
use unisim.vcomponents.all;
--
------------------------------------------------------------------------------------
--
--
entity frequency_counter is
    Port (             led : out std_logic_vector(7 downto 0);
                        sw : in std_logic_vector(3 downto 0);
            strataflash_oe : out std_logic;
            strataflash_ce : out std_logic;
            strataflash_we : out std_logic;
                     lcd_d : inout std_logic_vector(7 downto 4);
                    lcd_rs : out std_logic;
                    lcd_rw : out std_logic;
                     lcd_e : out std_logic;
                   sma_clk : in std_logic;
                 clk_50mhz : in std_logic);
    end frequency_counter;
--
------------------------------------------------------------------------------------
--
-- Start of test architecture
--
architecture Behavioral of frequency_counter is
--
------------------------------------------------------------------------------------
--
-- declaration of KCPSM3
--
  component kcpsm3 
    Port (      address : out std_logic_vector(9 downto 0);
            instruction : in std_logic_vector(17 downto 0);
                port_id : out std_logic_vector(7 downto 0);
           write_strobe : out std_logic;
               out_port : out std_logic_vector(7 downto 0);
            read_strobe : out std_logic;
                in_port : in std_logic_vector(7 downto 0);
              interrupt : in std_logic;
          interrupt_ack : out std_logic;
                  reset : in std_logic;
                    clk : in std_logic);
    end component;
--
-- declaration of program ROM used by data capture processor
--
  component fc_ctrl
    Port (      address : in std_logic_vector(9 downto 0);
            instruction : out std_logic_vector(17 downto 0);
             proc_reset : out std_logic;                       --JTAG Loader version
                    clk : in std_logic);
    end component;

--
-- Fixed frequency oscillator using a DCM
--
component dcm_fixed_osc 
  port(    clk_out : out std_logic;
        kick_start : in std_logic   );
  end component;  

--
-- Ring oscillator
--
component ring_osc
  port(   osc_out : out std_logic;
            reset : in std_logic   );
   end component;  

--
------------------------------------------------------------------------------------
--
-- Signals used to select and provide sources to be analysed
--
signal source_control          : std_logic_vector(7 downto 0);
signal dcm_oscillator          : std_logic;
signal ring_oscillator         : std_logic;
signal freq_for_measurement    : std_logic;
signal test_clk                : std_logic;
--
--
--
--
-- Signals used by clock cycle counters and controls
--
signal ab_switch_delay         : std_logic_vector (3 downto 0);
signal a_count_ce              : std_logic;
signal a_count_rst             : std_logic;
signal a_count                 : std_logic_vector (31 downto 0);
signal b_count_ce              : std_logic;
signal b_count_rst             : std_logic;
signal b_count                 : std_logic_vector (31 downto 0);
--
--
--
-- Signals for 1 second interrupt generation and counter switching
--
signal one_second_count       : integer range 0 to 49999999 :=0;
signal one_second_pulse       : std_logic;
signal ab_switch              : std_logic;
signal interrupt_delay        : std_logic_vector (99 downto 0);
--
--
-- Signals used to connect KCPSM3 to program ROM and I/O logic
--
signal address        : std_logic_vector(9 downto 0);
signal instruction    : std_logic_vector(17 downto 0);
signal port_id        : std_logic_vector(7 downto 0);
signal out_port       : std_logic_vector(7 downto 0);
signal in_port        : std_logic_vector(7 downto 0);
signal write_strobe   : std_logic;
signal read_strobe    : std_logic;
signal interrupt      : std_logic;
signal interrupt_ack  : std_logic;
signal reset          : std_logic;
--
--
-- Signals for LCD operation
--
-- Tri-state output requires internal signals
-- 'lcd_drive' is used to differentiate between LCD and StrataFLASH communications 
-- which share the same data bits.
--
signal   lcd_rw_control : std_logic;
signal  lcd_output_data : std_logic_vector(7 downto 4);
signal        lcd_drive : std_logic;
--
--
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
-- Start of circuit description
--
begin
  --
  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- Disable unused components  
  ----------------------------------------------------------------------------------------------------------------------------------
  --
  --StrataFLASH must be disabled to prevent it conflicting with the LCD display 
  --
  strataflash_oe <= '1';
  strataflash_ce <= '1';
  strataflash_we <= '1';
  --
  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- Select and Buffer signal to be analysed
  ----------------------------------------------------------------------------------------------------------------------------------
  --
  -- 
  -- The fixed frequency dcm oscillator using test mode of the DCM
  --
  dcm_fixed_oscillator: dcm_fixed_osc
  port map (    clk_out => dcm_oscillator,
             kick_start => source_control(7) );

  -- 
  -- ring Oscillator using logic fabric 
  --

  logic_oscillator: ring_osc
  port map (   osc_out => ring_oscillator,
                 reset => source_control(6) );

  -- 
  -- Source selection multiplexer (must be combinatorial) 
  --

  freq_for_measurement <= sma_clk when (source_control(1 downto 0)="00") 
                     else clk_50mhz when (source_control(1 downto 0)="01") 
                     else dcm_oscillator when (source_control(1 downto 0)="10") 
                     else ring_oscillator;


  -- 
  -- Global buffer on selected source 
  --

  buffer_clkin: BUFG
  port map( O => test_clk,
            I => freq_for_measurement);

  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- Frequency Counters
  --
  -- This is formed of two simple 32-bit binary counters such that one can be counting whilst the 
  -- other is being read and reset. Great care is taken to ensure the switch over between the two 

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
成人福利在线看| 国产日韩欧美a| 欧美午夜在线一二页| 一本一道久久a久久精品综合蜜臀| 成人手机在线视频| 波多野结衣在线aⅴ中文字幕不卡| 久久先锋影音av鲁色资源| 欧美一区二区三区在线电影| 欧美丰满美乳xxx高潮www| 666欧美在线视频| 91精品国产综合久久精品麻豆| 欧美精品aⅴ在线视频| 91精品国产综合久久精品| 91精品国产一区二区三区蜜臀 | 色琪琪一区二区三区亚洲区| 色综合一区二区| 欧美性色综合网| 7777精品伊人久久久大香线蕉经典版下载| 日韩和欧美一区二区三区| 三级久久三级久久久| 久久69国产一区二区蜜臀| 国产在线精品免费| 成人性生交大片免费看中文网站| 成人av网站在线观看| 欧美影片第一页| 正在播放一区二区| 久久色.com| 亚洲欧美在线观看| 午夜久久久久久久久久一区二区| 免费不卡在线视频| 高清成人免费视频| 一本色道**综合亚洲精品蜜桃冫| 欧美日韩三级视频| 精品久久久久一区| 国产精品美女久久久久久久久久久| 亚洲免费观看高清完整版在线观看 | 视频一区在线播放| 国产一区二区在线观看视频| 成人精品亚洲人成在线| 91精品办公室少妇高潮对白| 日韩一区二区免费在线观看| 国产日韩在线不卡| 亚洲一区在线播放| 国产综合久久久久久久久久久久 | 久久久亚洲国产美女国产盗摄 | 天堂资源在线中文精品| 国产成人一区在线| 欧美天堂一区二区三区| 久久精品亚洲一区二区三区浴池| 樱花草国产18久久久久| 精品亚洲国产成人av制服丝袜| www.在线成人| 91麻豆精品国产91久久久资源速度| 国产精品久久久久一区二区三区共| 五月婷婷久久综合| 99久久精品免费看国产免费软件| 91麻豆精品国产91久久久久久| 国产精品美女久久久久aⅴ| 日韩高清一区二区| 99vv1com这只有精品| 欧美mv和日韩mv国产网站| 91在线你懂得| 久久久精品欧美丰满| 午夜精品在线看| 91视频免费看| 久久综合色鬼综合色| 婷婷国产v国产偷v亚洲高清| 99国内精品久久| 久久久亚洲国产美女国产盗摄| 天堂在线一区二区| 日本电影亚洲天堂一区| 国产欧美视频在线观看| 久久精品噜噜噜成人av农村| 欧美日韩综合在线免费观看| 国产精品动漫网站| 国产剧情一区在线| 日韩一级二级三级| 亚洲aaa精品| 色综合久久综合中文综合网| 国产色综合一区| 韩国av一区二区| 日韩精品一区二区在线| 亚洲成av人片在线| 在线中文字幕一区二区| 国产精品久久久久久久久免费丝袜| 韩国视频一区二区| 欧美成人一区二区| 免费成人在线观看视频| 91精品国产综合久久久久久漫画| 亚洲综合一区二区三区| 色噜噜狠狠成人中文综合| 亚洲日本va在线观看| 99久久婷婷国产| 国产精品情趣视频| 懂色av一区二区三区免费观看 | 国产精品久久福利| 国产福利不卡视频| 欧美激情在线观看视频免费| 国产mv日韩mv欧美| 国产精品精品国产色婷婷| 成人毛片在线观看| 1000部国产精品成人观看| 成人高清av在线| 亚洲视频中文字幕| 在线观看国产日韩| 亚洲电影你懂得| 欧美夫妻性生活| 美女久久久精品| 欧美精品一区二区三区一线天视频| 久久精品国产99| 精品日韩成人av| 国产精品综合网| 国产欧美日产一区| 99热精品国产| 亚洲国产精品人人做人人爽| 欧美性色综合网| 人妖欧美一区二区| 欧美大胆人体bbbb| 国产精品一区二区三区乱码| 国产精品麻豆一区二区| 色网综合在线观看| 五月激情六月综合| 欧美xingq一区二区| 国产a视频精品免费观看| 亚洲欧洲av另类| 欧美精品色综合| 精品一区二区三区免费播放 | 欧美午夜在线观看| 美女一区二区视频| 中文一区二区在线观看| 91伊人久久大香线蕉| 香蕉加勒比综合久久| 精品理论电影在线| www.欧美色图| 亚洲一区二区三区美女| 欧美成人伊人久久综合网| 成人av高清在线| 亚洲大型综合色站| 久久久青草青青国产亚洲免观| 一本久久a久久免费精品不卡| 三级久久三级久久久| 国产亚洲欧美一区在线观看| 色综合天天性综合| 蜜臀久久99精品久久久久宅男 | 狠狠色狠狠色综合系列| 日韩毛片一二三区| 欧美一区二区三区公司| 成人在线视频一区二区| 亚洲福利一区二区| 国产视频不卡一区| 欧美另类高清zo欧美| 国产宾馆实践打屁股91| 亚洲超碰97人人做人人爱| 国产日产欧美一区| 欧美精品九九99久久| www.欧美.com| 精品亚洲porn| 亚洲午夜精品在线| 欧美国产精品一区二区三区| 91麻豆精品国产自产在线 | 国产精品沙发午睡系列990531| 欧美日韩国产乱码电影| 高清国产一区二区三区| 青青国产91久久久久久| 亚洲日本一区二区| 久久伊人中文字幕| 欧美日韩日日摸| voyeur盗摄精品| 国内精品嫩模私拍在线| 亚洲国产aⅴ成人精品无吗| 中文字幕av资源一区| 精品三级av在线| 欧美日韩一区三区四区| 91免费在线播放| 国产精品99久久久久久有的能看| 午夜精品久久久久久| 亚洲激情图片qvod| 亚洲国产电影在线观看| 欧美v亚洲v综合ⅴ国产v| 欧美日产在线观看| 一本一道久久a久久精品综合蜜臀| 激情深爱一区二区| 伦理电影国产精品| 午夜激情久久久| 亚洲国产aⅴ天堂久久| 亚洲精品乱码久久久久久久久 | 国产高清精品网站| 激情图片小说一区| 日韩av一区二区三区四区| 亚洲成人一区二区| 亚洲免费在线电影| 综合久久久久久久| 中日韩av电影| 国产精品免费人成网站| 欧美国产精品一区| 日本一区二区三区四区在线视频| 精品电影一区二区| 欧美精品一区视频| 亚洲精品一区二区三区福利| 2022国产精品视频|