rom.vhd

来自「2ask调制与解调包含顶层文件」· VHDL 代码 · 共 29 行

VHD
29
字号
--	Package File Template
--
--	Purpose: This package defines supplemental types, subtypes, 
--		 constants, and functions 


library IEEE;
use IEEE.STD_LOGIC_1164.all;

package rom is
       constant rom_width: integer :=8;
       constant rom_length: integer :=64;
	         subtype rom_word is  integer  range -255 to 255;
	  type rom_table is array (0 to rom_length-1) of rom_word;
	  constant rom : rom_table := ( 255,254,252,	249,	245,	239,	233,	225,	
                                     217,207,197,	186,	174,	162,	150,	137,	
                                     124,112	,99,	87,	75,	64,	53,	43,	
                                     34, 26,	19,	13,	8,	4,	1,	0,	
                                     0,	 1,	4,	8,	13,	19,	26,	34,	
                                     43, 53,	64,	75,	87,	99,	112,	124,	
                                     137,150,162,	174,	186,	197,	207,	217,	
                                     225,233,239,	245,	249,	252,	254,	255
);	
 	  end;



	
                            

⌨️ 快捷键说明

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