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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? frequency_counter.vhd

?? 晶振頻率實(shí)時顯示在LCD上,包含LCD驅(qū)動等程序.
?? 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 

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美美女bb生活片| 一区二区三区蜜桃网| 欧美一个色资源| 欧美美女黄视频| 欧美精品在欧美一区二区少妇 | 在线播放/欧美激情| 欧美午夜一区二区三区| 欧美日韩美少妇| 欧美日韩精品欧美日韩精品| 日本久久一区二区| 欧美在线小视频| 在线成人av网站| 日韩三级中文字幕| 精品999久久久| 国产午夜精品久久久久久免费视| 久久网这里都是精品| 国产农村妇女毛片精品久久麻豆| 欧美国产日本视频| 亚洲精品va在线观看| 一区二区三区中文在线观看| 亚洲va欧美va人人爽午夜| 水野朝阳av一区二区三区| 美腿丝袜亚洲一区| 国产激情91久久精品导航| 97aⅴ精品视频一二三区| 欧美性xxxxxxxx| 精品国产乱码久久久久久牛牛 | 久久精品人人做人人综合| 中文一区二区完整视频在线观看| 日韩久久一区二区| 日韩高清国产一区在线| 国产在线不卡视频| 色偷偷88欧美精品久久久| 欧美色网站导航| 日韩精品一区二| 中文字幕日韩欧美一区二区三区| 亚洲精品国久久99热| 日本不卡一二三区黄网| 成人成人成人在线视频| 欧美日韩国产首页在线观看| 久久久亚洲欧洲日产国码αv| 亚洲少妇中出一区| 美国毛片一区二区三区| 成人精品一区二区三区四区| 欧美精品在线视频| 中文字幕第一区| 亚洲高清视频的网址| 国产美女精品人人做人人爽| 91看片淫黄大片一级| 日韩情涩欧美日韩视频| 国产精品久久久久久久久晋中| 亚洲丶国产丶欧美一区二区三区| 精品无人码麻豆乱码1区2区| 91免费看`日韩一区二区| 日韩欧美一区二区免费| 亚洲欧洲精品一区二区精品久久久| 日本午夜一区二区| 在线视频欧美精品| 国产亚洲欧美激情| 午夜精品一区二区三区电影天堂| 国产乱码一区二区三区| 欧美视频在线一区| 亚洲国产精品高清| 免费不卡在线视频| 91成人免费网站| 国产偷国产偷精品高清尤物| 亚洲电影在线播放| 不卡一二三区首页| 久久亚洲一级片| 日本欧美一区二区在线观看| 91久久线看在观草草青青| 国产午夜三级一区二区三| 蜜臀久久久久久久| 精品视频在线视频| 亚洲日本青草视频在线怡红院| 国内国产精品久久| 日韩欧美中文一区| 亚洲va在线va天堂| 欧日韩精品视频| 亚洲欧美在线高清| 成人午夜激情在线| 国产日韩精品一区二区三区 | 欧美嫩在线观看| 一区二区成人在线视频| 97se狠狠狠综合亚洲狠狠| 欧美激情中文不卡| 国产精品一区二区久久精品爱涩| 欧美精品v日韩精品v韩国精品v| 亚洲日本在线看| 91性感美女视频| 欧美激情一区不卡| 国产成都精品91一区二区三| 精品久久久久av影院| 麻豆成人免费电影| 日韩欧美国产一区二区三区| 日韩精品色哟哟| 欧美一级精品在线| 奇米精品一区二区三区四区 | 日韩国产精品91| 欧美日韩国产在线观看| 亚洲成人1区2区| 欧美日韩国产经典色站一区二区三区| 亚洲免费资源在线播放| 91麻豆swag| 一区二区三区免费| 欧美日韩情趣电影| 视频一区二区三区入口| 欧美福利视频导航| 蜜桃视频一区二区三区| 欧美电影免费观看高清完整版| 奇米精品一区二区三区四区 | 久久久电影一区二区三区| 精品一二三四在线| 国产欧美精品区一区二区三区 | 蜜桃在线一区二区三区| 精品欧美久久久| 国产美女在线观看一区| 国产区在线观看成人精品| 懂色av一区二区三区免费观看| 国产亚洲美州欧州综合国| 高清在线不卡av| 亚洲欧美色综合| 欧美色图第一页| 美脚の诱脚舐め脚责91| 国产亲近乱来精品视频| 91丨国产丨九色丨pron| 午夜一区二区三区在线观看| 日韩午夜激情电影| 国产乱子轮精品视频| 日韩一区有码在线| 欧美日韩黄色影视| 国产精品69毛片高清亚洲| 中文字幕一区二区三区蜜月| 欧美视频自拍偷拍| 国内精品在线播放| 亚洲人成精品久久久久久| 欧美日韩国产区一| 国产成人在线观看免费网站| 亚洲视频图片小说| 91精品蜜臀在线一区尤物| 一本久道久久综合中文字幕| 五月婷婷久久综合| 欧美一级欧美三级| 成人免费高清在线| 日日夜夜免费精品视频| 久久午夜国产精品| 成人影视亚洲图片在线| 亚洲国产一区二区视频| 欧美精品一区二区三区久久久| 成人午夜精品在线| 日韩va欧美va亚洲va久久| 国产精品美女久久久久久久| 69精品人人人人| 播五月开心婷婷综合| 日本最新不卡在线| 综合自拍亚洲综合图不卡区| 日韩欧美一区二区不卡| 99这里只有精品| 全部av―极品视觉盛宴亚洲| 亚洲欧洲精品天堂一级 | 亚洲欧美另类图片小说| 欧美一区二区在线不卡| 91女人视频在线观看| 精久久久久久久久久久| 亚洲国产成人精品视频| 国产精品第13页| 精品国产乱码久久久久久牛牛| 欧美三级三级三级| 99re这里只有精品首页| 国产精品自拍三区| 人人狠狠综合久久亚洲| 亚洲精品第一国产综合野| 国产精品午夜久久| 欧美电影免费观看高清完整版在线 | 久久精品99久久久| 亚洲一区二区欧美日韩| 亚洲国产精品v| 日韩免费性生活视频播放| 91福利视频久久久久| 北岛玲一区二区三区四区| 黄页网站大全一区二区| 亚瑟在线精品视频| 亚洲精品国久久99热| 日本一区二区电影| 久久精品欧美一区二区三区不卡 | 成人午夜在线视频| 国内精品嫩模私拍在线| 美国十次了思思久久精品导航| 亚洲一区二区三区爽爽爽爽爽| 国产精品午夜电影| 久久综合九色综合欧美98| 日韩一级高清毛片| 欧美精三区欧美精三区| 在线观看日韩高清av| 99精品热视频| 91最新地址在线播放| 成人av网站大全| 成人免费毛片片v| 成人福利视频在线看| 国产69精品久久久久毛片|