Free VHDL library

  • Main Page
  • Related Pages
  • Design Unit List
  • Files
  • File List

lpp_cna/CNA_TabloC.vhd

Go to the documentation of this file.
00001 ------------------------------------------------------------------------------
00002 --  This file is a part of the LPP VHDL IP LIBRARY
00003 --  Copyright (C) 2009 - 2010, Laboratory of Plasmas Physic - CNRS
00004 --
00005 --  This program is free software; you can redistribute it and/or modify
00006 --  it under the terms of the GNU General Public License as published by
00007 --  the Free Software Foundation; either version 3 of the License, or
00008 --  (at your option) any later version.
00009 --
00010 --  This program is distributed in the hope that it will be useful,
00011 --  but WITHOUT ANY WARRANTY; without even the implied warranty of
00012 --  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013 --  GNU General Public License for more details.
00014 --
00015 --  You should have received a copy of the GNU General Public License
00016 --  along with this program; if not, write to the Free Software
00017 --  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA 
00018 ------------------------------------------------------------------------------
00019 --                    Author : Martin Morlot
00020 --                     Mail : martin.morlot@lpp.polytechnique.fr
00021 ------------------------------------------------------------------------------
00022 library IEEE;
00023 use IEEE.std_logic_1164.all;
00024 use IEEE.numeric_std.all;
00025 use work.Convertisseur_config.all;
00026 
00028 
00029 entity CNA_TabloC is
00030   port(
00031     clock       : in std_logic;
00032     rst         : in std_logic;
00033     enable      : in std_logic;
00034     Data_C      : in std_logic_vector(15 downto 0);
00035     SYNC        : out std_logic;
00036     SCLK        : out std_logic;
00037     flag_sd     : out std_logic;
00038     Data        : out std_logic
00039     );
00040 end CNA_TabloC;
00041 
00044 
00045 architecture ar_CNA_TabloC of CNA_TabloC is
00046 
00047 component CLKINT
00048 port( A : in    std_logic := 'U';
00049       Y : out   std_logic);
00050 end component;
00051 
00052 signal clk      : std_logic;
00053 
00054 signal raz          : std_logic;
00055 signal s_SCLK      : std_logic;
00056 signal OKAI_send    : std_logic;
00057 
00058 begin
00059 
00060 CLKINT_0 : CLKINT
00061     port map(A  => clock, Y  => clk );
00062 
00063 CLKINT_1 : CLKINT
00064     port map(A  => rst , Y  => raz );
00065 
00066 
00067 SystemCLK : entity work.Systeme_Clock     generic map (nb_serial)
00068     port map (clk,raz,s_SCLK);
00069 
00070 
00071 Signal_sync : entity work.Gene_SYNC     port map (s_SCLK,raz,enable,OKAI_send,SYNC);
00072 
00073 
00074 Serial : entity work.serialize     port map (clk,raz,s_SCLK,Data_C,OKAI_send,flag_sd,Data);
00075 
00076 
00077 SCLK        <= s_SCLK;
00078 
00079 end ar_CNA_TabloC;
00080 

© Copyright 2011 LPP-CNRS | Design by Alexis Jeandet