📄 security.vhd
字号:
--
-- Definition of a dual port ROM for KCPSM2 or KCPSM3 program defined by security.psm
-- and assmbled using KCPSM2 or KCPSM3 assembler.
--
-- Standard IEEE libraries
--
library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
--
-- The Unisim Library is used to define Xilinx primitives. It is also used during
-- simulation. The source can be viewed at %XILINX%\vhdl\src\unisims\unisim_VCOMP.vhd
--
library unisim;
use unisim.vcomponents.all;
--
--
entity security is
Port ( address : in std_logic_vector(9 downto 0);
instruction : out std_logic_vector(17 downto 0);
check_address : in std_logic_vector(10 downto 0);
check_data : out std_logic_vector(8 downto 0);
clk : in std_logic);
end security;
--
architecture low_level_definition of security is
--
-- Declare signals internal to this module
--
signal jaddr : std_logic_vector(10 downto 0);
signal jparity : std_logic_vector(0 downto 0);
signal jdata : std_logic_vector(7 downto 0);
signal doa : std_logic_vector(7 downto 0);
signal dopa : std_logic_vector(0 downto 0);
signal tdo1 : std_logic;
signal tdo2 : std_logic;
signal update : std_logic;
signal shift : std_logic;
signal reset : std_logic;
signal tdi : std_logic;
signal sel1 : std_logic;
signal drck1 : std_logic;
signal drck1_buf : std_logic;
signal sel2 : std_logic;
signal drck2 : std_logic;
signal capture : std_logic;
signal tap5 : std_logic;
signal tap11 : std_logic;
signal tap17 : std_logic;
--
-- Attributes to define ROM contents during implementation synthesis.
-- The information is repeated in the generic map for functional simulation
--
attribute INIT_00 : string;
attribute INIT_01 : string;
attribute INIT_02 : string;
attribute INIT_03 : string;
attribute INIT_04 : string;
attribute INIT_05 : string;
attribute INIT_06 : string;
attribute INIT_07 : string;
attribute INIT_08 : string;
attribute INIT_09 : string;
attribute INIT_0A : string;
attribute INIT_0B : string;
attribute INIT_0C : string;
attribute INIT_0D : string;
attribute INIT_0E : string;
attribute INIT_0F : string;
attribute INIT_10 : string;
attribute INIT_11 : string;
attribute INIT_12 : string;
attribute INIT_13 : string;
attribute INIT_14 : string;
attribute INIT_15 : string;
attribute INIT_16 : string;
attribute INIT_17 : string;
attribute INIT_18 : string;
attribute INIT_19 : string;
attribute INIT_1A : string;
attribute INIT_1B : string;
attribute INIT_1C : string;
attribute INIT_1D : string;
attribute INIT_1E : string;
attribute INIT_1F : string;
attribute INIT_20 : string;
attribute INIT_21 : string;
attribute INIT_22 : string;
attribute INIT_23 : string;
attribute INIT_24 : string;
attribute INIT_25 : string;
attribute INIT_26 : string;
attribute INIT_27 : string;
attribute INIT_28 : string;
attribute INIT_29 : string;
attribute INIT_2A : string;
attribute INIT_2B : string;
attribute INIT_2C : string;
attribute INIT_2D : string;
attribute INIT_2E : string;
attribute INIT_2F : string;
attribute INIT_30 : string;
attribute INIT_31 : string;
attribute INIT_32 : string;
attribute INIT_33 : string;
attribute INIT_34 : string;
attribute INIT_35 : string;
attribute INIT_36 : string;
attribute INIT_37 : string;
attribute INIT_38 : string;
attribute INIT_39 : string;
attribute INIT_3A : string;
attribute INIT_3B : string;
attribute INIT_3C : string;
attribute INIT_3D : string;
attribute INIT_3E : string;
attribute INIT_3F : string;
attribute INITP_00 : string;
attribute INITP_01 : string;
attribute INITP_02 : string;
attribute INITP_03 : string;
attribute INITP_04 : string;
attribute INITP_05 : string;
attribute INITP_06 : string;
attribute INITP_07 : string;
--
-- Attributes to define ROM contents during implementation synthesis.
--
attribute INIT_00 of ram_1024_x_18 : label is "01B401640377033E05250364033E0512C0010328035BE01C0050C010000000E1";
attribute INIT_01 of ram_1024_x_18 : label is "014010E00252EE19ED18007F0D8E0E150360050A01540070006500F20360050A";
attribute INIT_02 of ram_1024_x_18 : label is "5AD0023203A903390154014010A0014010B00248EB1BEA1A00940154014010D0";
attribute INIT_03 of ram_1024_x_18 : label is "4F520129011D02BCE01C004600560154028F03D6403C029D03C854365BE05436";
attribute INIT_04 of ram_1024_x_18 : label is "02AA403C028900DE026F403C0154015400AE0154403C504F4F41504B4F455046";
attribute INIT_05 of ram_1024_x_18 : label is "C010000203600505C010000003600505C0100001403C028900BE6E196D180154";
attribute INIT_06 of ram_1024_x_18 : label is "A00001544067C301506E4310015701407030031701F2A000C010000003600505";
attribute INIT_07 of ram_1024_x_18 : label is "0410A00001544077C601507D4610014D70600617033E05200388033E05100339";
attribute INIT_08 of ram_1024_x_18 : label is "0D080E08000EEE40ED025C8D2001F03010D0010840808401B000441700867340";
attribute INIT_09 of ram_1024_x_18 : label is "ABF01B0054A04725AAF01A00549C47100101070008000906A0005487C101030C";
attribute INIT_0A of ram_1024_x_18 : label is "08000906409754ABC0014004B0008701DB00A00F54A847FADA00A00F54A4477F";
attribute INIT_0B of ram_1024_x_18 : label is "08000906A000015454B127FF54B4270F87010140010101570157014601540700";
attribute INIT_0C of ram_1024_x_18 : label is "54D4477FD010A00FA1F011E054CE4725D010A00FA1F011D054C8471040040700";
attribute INIT_0D of ram_1024_x_18 : label is "00E4090640C1B000870100ECD010A0F0A10F11E054DA47FAD010A0F0A10F11D0";
attribute INIT_0E of ram_1024_x_18 : label is "010B1100010B0140A0000118010B01D0010B012007000800A000C0400006A000";
attribute INIT_0F of ram_1024_x_18 : label is "011540F88201870150FF4217F0200101010B01900210070208010900A0000118";
attribute INIT_10 of ram_1024_x_18 : label is "0100C180C781C882C983A000C140400201060106C1400105C781C882C983A000";
attribute INIT_11 of ram_1024_x_18 : label is "552120044000A0000115511820800101A000010B01FFA000C14001060106C140";
attribute INIT_12 of ram_1024_x_18 : label is "1100A000AFDFBC004F7BB8004F61A000CF084123512720024000A0004F01411D";
attribute INIT_13 of ram_1024_x_18 : label is "A000803A8007593EC00AA0001100013BA00F10101200013B000E000E000E000E";
attribute INIT_14 of ram_1024_x_18 : label is "15201310012FA000014010700140108001401090A00001231F1001231F20012F";
attribute INIT_15 of ram_1024_x_18 : label is "0157A000015701230F3D0157A00001230F20A00001230F0DA00002FE153002FE";
attribute INIT_16 of ram_1024_x_18 : label is "01230F4201230F6F01230F6301230F6901230F5001540154A000015701230F2D";
attribute INIT_17 of ram_1024_x_18 : label is "015701230F7701230F6F01230F4C015701230F6501230F7A01230F6101230F6C";
attribute INIT_18 of ram_1024_x_18 : label is "0F6901230F7301230F6501230F44015701230F7401230F7301230F6F01230F43";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -