CoMoDoS

afisor_entity

May 9th, 2016
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VHDL 0.98 KB | None | 0 0
  1. library ieee;
  2. use ieee.std_logic_1164.all;
  3. use ieee.std_logic_arith.all;
  4. use ieee.std_logic_unsigned.all;
  5.  
  6.  
  7. entity asta is
  8.     port(clok : in std_logic;
  9.          unitati_BCD: in std_logic_vector(3 downto 0);
  10.          zeci_BCD: in std_logic_vector(3 downto 0);
  11.          anod:out std_logic_vector(3 downto 0);
  12.          catod:out std_logic_vector(6 downto 0));
  13.        
  14. end asta;    
  15.  
  16. architecture asta1 of afisor is  
  17. signal clk_div1: std_logic;
  18.  
  19. component div_frec is
  20.     port(clk:in std_logic;
  21.         --clk_div:out std_logic;
  22.         clk_div_afis:out std_logic);
  23. end component;   
  24.  
  25. component afisor is
  26.     port(--clkb:in std_logic;
  27.          clk_div1: in std_logic;
  28.          unitati_BCD: in std_logic_vector(3 downto 0);
  29.          zeci_BCD: in std_logic_vector(3 downto 0);
  30.          anod:out std_logic_vector(3 downto 0);
  31.          catod:out std_logic_vector(6 downto 0));
  32.        
  33. end component;
  34. begin
  35.    
  36.     C1: div_frec port map(clok, clk_div1);
  37.     C2: afisor port map(clk_div1,unitati_bcd, zeci_bcd,anod,catod);
  38. end architecture asta1;
Add Comment
Please, Sign In to add comment