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

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

?? picoblaze_dac_control.vhd

?? 環境ISE
?? VHD
字號:
--
-- KCPSM3 reference design - PicoBlaze driving the four channel D/A converter 
-- type LTC2624 from Linear Technology.
--
-- Design provided and tested on the Spartan-3E Starter Kit (Revision C)
--
-- Ken Chapman - Xilinx Ltd - 24th November 2005
-- Revised : 21st February 2006 
--
-- The JTAG loader utility is also available for rapid program development.
--
-- The design is set up for a 50MHz system clock.
-- The simple LEDs and J4 connector are utilised for development and monitoring.
-- The switches and press buttons are connected just for fun!
--  
------------------------------------------------------------------------------------
--
-- 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;
--
------------------------------------------------------------------------------------
--
--
entity picoblaze_dac_control is
    Port (         spi_sck : out std_logic;
                   spi_sdo : in std_logic;
                   spi_sdi : out std_logic;
                spi_rom_cs : out std_logic;
                spi_amp_cs : out std_logic;
              spi_adc_conv : out std_logic;
                spi_dac_cs : out std_logic;
              spi_amp_shdn : out std_logic;
               spi_amp_sdo : in std_logic;
               spi_dac_clr : out std_logic;
            strataflash_oe : out std_logic;
            strataflash_ce : out std_logic;
            strataflash_we : out std_logic;
          platformflash_oe : out std_logic;
                 simple_io : out std_logic_vector(12 downto 9);
                       led : out std_logic_vector(7 downto 0);
                    switch : in std_logic_vector(3 downto 0);
                 btn_north : in std_logic;
                  btn_east : in std_logic;
                 btn_south : in std_logic;
                  btn_west : in std_logic;
                       clk : in std_logic);
    end picoblaze_dac_control;
--
------------------------------------------------------------------------------------
--
-- Start of test architecture
--
architecture Behavioral of picoblaze_dac_control 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
--
  component dac_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;
--
------------------------------------------------------------------------------------
--
-- 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 :='0';
signal interrupt_ack   : std_logic;
signal kcpsm3_reset    : std_logic;
--
--
-- Signals used to generate interrupt 
--
signal int_count       : integer range 0 to 6249 :=0;
signal event_8khz      : std_logic;
--
------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--
-- Start of circuit description
--
begin
  --
  simple_io(12) <= clk;  --Test point

  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- Disable unused components  
  ----------------------------------------------------------------------------------------------------------------------------------
  --
  --StrataFLASH must be disabled to prevent it driving the SDI line with its D0 output
  --or conflicting with the LCD display 
  --
  strataflash_oe <= '1';
  strataflash_ce <= '1';
  strataflash_we <= '1';
  --
  --Platform FLASH must be disabled to prevent it driving the SDI line with its D0 output.
  --Since the CE is via the 9500 device, the OE/RESET is the easier direct control (OE active high).
  --
  platformflash_oe <= '0';
  --
  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- KCPSM3 and the program memory 
  ----------------------------------------------------------------------------------------------------------------------------------
  --

  processor: kcpsm3
    port map(      address => address,
               instruction => instruction,
                   port_id => port_id,
              write_strobe => write_strobe,
                  out_port => out_port,
               read_strobe => read_strobe,
                   in_port => in_port,
                 interrupt => interrupt,
             interrupt_ack => interrupt_ack,
                     reset => kcpsm3_reset,
                       clk => clk);
 
  program_rom: dac_ctrl
    port map(      address => address,
               instruction => instruction,
                proc_reset => kcpsm3_reset,
                       clk => clk);

  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- Interrupt 
  ----------------------------------------------------------------------------------------------------------------------------------
  --
  --
  -- Interrupt is used to set an 8KHz sample rate which is typical of audio telecommunication
  -- applications. Having a fixed time base also means that all waveform generation by PicoBlaze 
  -- can be made predictable.
  --
  -- A simple binary counter is used to divide the 50MHz system clock and provide interrupt pulses.
  --

  interrupt_control: process(clk)
  begin
    if clk'event and clk='1' then

      --divide 50MHz by 6250 to form 8KHz pulses
      if int_count=6249 then
         int_count <= 0;
         event_8khz <= '1';
       else
         int_count <= int_count + 1;
         event_8khz <= '0';
      end if;

      -- processor interrupt waits for an acknowledgement
      if interrupt_ack='1' then
         interrupt <= '0';
        elsif event_8khz='1' then
         interrupt <= '1';
        else
         interrupt <= interrupt;
      end if;

    end if; 
  end process interrupt_control;

  simple_io(9) <= event_8khz;  --Test point
  simple_io(10) <= interrupt;  --Test point

  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- KCPSM3 input ports 
  ----------------------------------------------------------------------------------------------------------------------------------
  --
  --
  -- The inputs connect via a pipelined multiplexer
  --

  input_ports: process(clk)
  begin
    if clk'event and clk='1' then

      case port_id(0) is

        -- read simple toggle switches and buttons at address 00 hex
        when '0' =>    in_port <= switch & btn_west & btn_south & btn_east & btn_north;

        -- read SPI data input SDO at address 01 hex
        -- called SDO because it connects to the data outputs of all the slave devices 
        -- Normal SDO data is bit7. 
        -- SDI data from the amplifier is at bit 6 because it is always driving and needs a separate pin.
        when '1' =>    in_port <= spi_sdo & spi_amp_sdo & "000000";

        -- Don't care used for all other addresses to ensure minimum logic implementation
        when others =>    in_port <= "XXXXXXXX";  

      end case;

     end if;

  end process input_ports;


  --
  ----------------------------------------------------------------------------------------------------------------------------------
  -- KCPSM3 output ports 
  ----------------------------------------------------------------------------------------------------------------------------------
  --

  -- adding the output registers to the processor
   
  output_ports: process(clk)
  begin

    if clk'event and clk='1' then
      if write_strobe='1' then

        -- Write to LEDs at address 80 hex.

        if port_id(7)='1' then
          led <= out_port;
        end if;

        -- Write to SPI data output at address 04 hex.
        -- called SDI because it connects to the data inputs of all the slave devices

        if port_id(2)='1' then
          spi_sdi <= out_port(7);
        end if;

        -- Write to SPI control at address 08 hex.

        if port_id(3)='1' then
          spi_sck <= out_port(0);
          spi_rom_cs <= out_port(1);
        --spare control <= out_port(2);
          spi_amp_cs <= out_port(3);
          spi_adc_conv <= out_port(4);
          spi_dac_cs <= out_port(5);
          spi_amp_shdn <= out_port(6);
          spi_dac_clr <= out_port(7);

          simple_io(11) <= out_port(5);  --Test point is copy of dac_cs

        end if;

      end if;

    end if; 

  end process output_ports;

  --
  ----------------------------------------------------------------------------------------------------------------------------------

end Behavioral;

------------------------------------------------------------------------------------------------------------------------------------
--
-- END OF FILE picoblaze_dac_control.vhd
--
------------------------------------------------------------------------------------------------------------------------------------

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品国产91久久久久久一区二区| 欧美一级日韩一级| 欧美日韩极品在线观看一区| 欧美精品一区视频| 一区二区三区精品视频| 国产精品一级在线| 欧美精品一级二级| 国产精品的网站| 国产一区在线精品| 欧美理论片在线| 亚洲男人电影天堂| 国产成人精品免费一区二区| 日韩午夜三级在线| 亚洲一区在线观看视频| 成人一区二区视频| 国产日韩精品一区二区浪潮av| 天堂成人国产精品一区| 欧美视频精品在线观看| 亚洲欧美自拍偷拍| 成人动漫一区二区| 欧美激情自拍偷拍| 国产成人在线视频免费播放| 日韩欧美国产电影| 蜜桃久久久久久| 日韩精品在线一区二区| 免费观看一级特黄欧美大片| 欧美日韩国产一二三| 亚洲精品国产成人久久av盗摄| 国产99久久久国产精品潘金| 久久免费午夜影院| 国产成人综合网| 欧美韩日一区二区三区四区| 成人免费视频网站在线观看| 国产日韩亚洲欧美综合| 成人综合婷婷国产精品久久| 日本一区二区动态图| 成人精品鲁一区一区二区| 国产欧美日韩另类一区| 成人听书哪个软件好| 国产精品女主播av| 91猫先生在线| 亚洲妇熟xx妇色黄| 日韩一区二区三| 国产精品资源站在线| 久久久久99精品国产片| 成人国产精品免费网站| 一区二区在线观看av| 91.com在线观看| 久久er精品视频| 国产精品天美传媒| 欧美怡红院视频| 日本欧美久久久久免费播放网| 欧美一区二区啪啪| 国产馆精品极品| 亚洲日韩欧美一区二区在线| 欧美日韩高清在线| 经典一区二区三区| 亚洲伦理在线免费看| 欧美一区午夜视频在线观看| 激情另类小说区图片区视频区| 国产欧美精品日韩区二区麻豆天美| av高清不卡在线| 五月婷婷久久丁香| 日本一区二区三区电影| 在线一区二区观看| 精品一区二区三区在线视频| 国产精品久久毛片| 3d动漫精品啪啪| jlzzjlzz亚洲日本少妇| 香港成人在线视频| 国产精品美女一区二区三区 | 国产成人综合网站| 亚洲在线观看免费视频| 久久久久久**毛片大全| 欧美日韩一级片网站| 国产精品中文字幕日韩精品| 亚洲成av人片观看| 中文字幕国产一区二区| 欧美一级一级性生活免费录像| 成人福利电影精品一区二区在线观看| 午夜av一区二区| 日韩理论片网站| 久久精品人人做人人爽人人| 在线精品视频一区二区| 成人精品一区二区三区四区| 美女任你摸久久| 一区二区三区日韩| 国产清纯美女被跳蛋高潮一区二区久久w | 亚洲一区二区三区不卡国产欧美| xf在线a精品一区二区视频网站| 日本高清不卡aⅴ免费网站| 国产高清不卡一区二区| 天天综合色天天| 一区二区三区中文字幕电影| 欧美激情一区二区三区全黄| 日韩免费在线观看| 欧美日韩一区精品| 在线看国产一区| 99久精品国产| 成人app下载| 国产jizzjizz一区二区| 国产伦精品一区二区三区免费迷| 丝袜美腿亚洲一区| 午夜欧美2019年伦理| 亚洲精品国产一区二区三区四区在线 | 成人性色生活片| 国产一区二区三区精品欧美日韩一区二区三区| 亚洲精品写真福利| 亚洲日韩欧美一区二区在线| 国产精品成人免费 | 久久综合狠狠综合久久激情| 欧美精品xxxxbbbb| 欧美电影在哪看比较好| 欧美日韩不卡一区二区| 欧美人xxxx| 69精品人人人人| 欧美一级理论性理论a| 欧美精品高清视频| 日韩欧美一级二级三级| 欧美tickling网站挠脚心| 日韩精品一区二区三区蜜臀| 精品三级在线观看| 久久色视频免费观看| 国产女人水真多18毛片18精品视频 | 亚洲6080在线| 美女脱光内衣内裤视频久久网站| 久久精品免费观看| 国产乱子伦一区二区三区国色天香| 国产乱码字幕精品高清av| 国产精品一二三区在线| 成人黄色小视频| 色悠久久久久综合欧美99| 欧美三级视频在线播放| 91精品久久久久久蜜臀| 精品美女一区二区| 中文字幕欧美国产| 亚洲精品视频免费看| 丝袜脚交一区二区| 国产一区二区三区电影在线观看 | 国产精品狼人久久影院观看方式| 国产精品家庭影院| 亚洲国产sm捆绑调教视频| 日本不卡在线视频| 粉嫩av亚洲一区二区图片| 一本久久a久久免费精品不卡| 欧美无砖砖区免费| 精品国产一区a| 亚洲精品视频在线观看免费| 男男gaygay亚洲| 成人av影视在线观看| 欧美日韩免费高清一区色橹橹| 精品国产乱码久久久久久蜜臀| 亚洲三级免费电影| 国内精品免费在线观看| 色婷婷综合在线| 久久人人97超碰com| 亚洲综合久久久久| 国产91在线观看丝袜| 在线观看日韩毛片| 亚洲国产精品传媒在线观看| 亚洲成av人片| 91日韩一区二区三区| 久久色成人在线| 日韩黄色一级片| 91浏览器入口在线观看| 久久免费国产精品| 夜夜嗨av一区二区三区| 国产经典欧美精品| 欧美美女直播网站| 中文字幕佐山爱一区二区免费| 久久国产精品99精品国产| 91久久国产综合久久| 国产亚洲婷婷免费| 毛片不卡一区二区| 欧美调教femdomvk| 亚洲人成在线观看一区二区| 国产成人在线免费| 精品日韩99亚洲| 日韩福利电影在线| 在线观看视频一区二区| 亚洲色大成网站www久久九九| 国产福利精品导航| 欧美精品一区二区久久婷婷| 亚洲成av人片www| 欧美三级中文字| 一区二区三区四区视频精品免费| 国产精品一二三在| 久久久久久久久99精品| 麻豆成人久久精品二区三区红 | 久久亚洲影视婷婷| 捆绑调教美女网站视频一区| 欧美视频在线观看一区二区| 亚洲另类在线制服丝袜| 99在线热播精品免费| 国产三级精品三级在线专区| 激情综合色播激情啊| 精品国产一区二区亚洲人成毛片 | 国产亚洲精品久| 国产大陆亚洲精品国产| 中文一区在线播放|