testram.vhd

来自「important paper cutting code」· VHDL 代码 · 共 142 行

VHD
142
字号
-------------------------------------------------------------------- Copyright (c) 1995-2005 Xilinx, Inc.-- All Right Reserved.--------------------------------------------------------------------   ____  ____ --  /   /\/   / -- /___/  \  /    Vendor: Xilinx -- \   \   \/     Version : 8.1i--  \   \         Application : --  /   /         Filename : testram.vhd-- /___/   /\     Timestamp : 9/20/2005 11:04:05-- \   \  /  \ --  \___\/\___\ ---- --    This Entity contains an array of data elements representing VGA display patterns library IEEE;use IEEE.STD_LOGIC_1164.ALL;use IEEE.STD_LOGIC_ARITH.ALL;use IEEE.STD_LOGIC_UNSIGNED.ALL;entity testram is Port ( 	address: in std_logic_vector(6 downto 0);	data: 	out std_logic_vector(3 downto 0)	);end testram;architecture behavioral of testram istype mem_array is array (0 to 79) of std_logic_vector(3 downto 0);constant characters: mem_array := (	-- 0	"0000",	"1111",	"1001",	"1001",	"1001",	"1001",	"1001",	"1111",	-- 1	"0000",	"0001",	"0001",	"0001",	"0001",	"0001",	"0001",	"0001",	-- 2	"0000",	"1111",	"0001",	"0001",	"1111",	"1000",	"1000",	"1111",	-- 3	"0000",	"1111",	"0001",	"0001",	"1111",	"0001",	"0001",	"1111",	-- 4	"0000",	"1001",	"1001",	"1001",	"1111",	"0001",	"0001",	"0001",	-- 5	"0000",	"1111",	"1000",	"1000",	"1111",	"0001",	"0001",	"1111",	-- 6	"0000",	"1111",	"1000",	"1000",	"1111",	"1001",	"1001",	"1111",	-- 7	"0000",	"1111",	"0001",	"0001",	"0001",	"0001",	"0001",	"0001",	-- 8	"0000",	"1111",	"1001",	"1001",	"1111",	"1001",	"1001",	"1111",	-- 9	"0000",	"1111",	"1001",	"1001",	"1111",	"0001",	"0001",	"0001"	);beginprocess (address )begin		data <= characters(conv_integer(address));end process;end behavioral;

⌨️ 快捷键说明

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