sincronismo.vhd

来自「simple thermometr in vhdl」· VHDL 代码 · 共 38 行

VHD
38
字号
----------------------------------------------------------------------------------
-- Bufon, Ferluga
-- Progetto elettronica 2 FPGA
-- Termometro visualizzato su VGA
----------------------------------------------------------------------------------

--Blocco che sincronizza l'uscita con il reset

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

--Dichiarazione variabili d'ingresso e di uscita:

entity Sincronismo is
port(clk : in std_logic;
	cfr1_in :in std_logic_vector (3 downto 0);
	cfr2_in :in std_logic_vector (3 downto 0);
	cfr3_in :in std_logic_vector (3 downto 0);
	cfr1_out :out std_logic_vector (3 downto 0);
	cfr2_out :out std_logic_vector (3 downto 0);
	cfr3_out :out std_logic_vector (3 downto 0));
end Sincronismo;

architecture Behavioral of Sincronismo is

begin
  process(clk)
  begin
  if(clk='1' and clk' event)then
  cfr1_out <= cfr1_in;
  cfr2_out <= cfr2_in;
  cfr3_out <= cfr3_in;
  end if;
  end process;
end Behavioral;

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?