keyboards.vhd
来自「总体演示程序DEMO_FPGA.rar」· VHDL 代码 · 共 60 行
VHD
60 行
--------------------------------------------------------------------------------
-- Company:
-- Engineer:
--
-- Create Date: 17:55:50 03/24/05
-- Design Name:
-- Module Name: keyboards - Behavioral
-- Project Name:
-- Target Device:
-- Tool versions:
-- Description:
--
-- Dependencies:
--
-- Revision:
-- Revision 0.01 - File Created
-- Additional Comments:
--
--------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
---- Uncomment the following library declaration if instantiating
---- any Xilinx primitives in this code.
--library UNISIM;
--use UNISIM.VComponents.all;
entity keyboards is
Port ( clk : in std_logic;
ienter : in std_logic;
istepa : in std_logic;
istepb : in std_logic;
ichose : in std_logic;
ireset : in std_logic;
-----------------------
oenter : out std_logic;
ostepa : out std_logic;
ostepb : out std_logic;
ochose : out std_logic;
oreset : out std_logic);
end keyboards;
architecture Behavioral of keyboards is
component button1 is
Port ( clk : in std_logic;
ibutton : in std_logic;
obutton :out std_logic);
end component;
begin
u0 : button1 port map(clk=>clk,ibutton=>ienter,obutton=>oenter);
u1 : button1 port map(clk=>clk,ibutton=>istepa,obutton=>ostepa);
u2 : button1 port map(clk=>clk,ibutton=>istepb,obutton=>ostepb);
u3 : button1 port map(clk=>clk,ibutton=>ichose,obutton=>ochose);
u4 : button1 port map(clk=>clk,ibutton=>ireset,obutton=>oreset);
end Behavioral;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?