⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 testram.vhd

📁 Pong is a mixed schematic, VHDL, Verilog project featuring the PS2 and VGA monitor connections of
💻 VHD
字号:
------------------------------------------------------------------

-- Copyright (c) 1995-2004 Xilinx, Inc.

-- All Right Reserved.

------------------------------------------------------------------

--   ____  ____ 

--  /   /\/   / 

-- /___/  \  /    Vendor: Xilinx 

-- \   \   \/     Version : 7.1i

--  \   \         Application : 

--  /   /         Filename : testram.vhd

-- /___/   /\     Timestamp : 10/27/2004 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 ( 
	clk: 		in std_logic;
	address: in std_logic_vector(6 downto 0);
	data: 	out std_logic_vector(3 downto 0)
	);
end testram;

architecture behavioral of testram is

type 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"
	);

begin

process (clk, address )
begin
		data <= characters(conv_integer(address));
end process;

end behavioral;

⌨️ 快捷键说明

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