F
funjoke
Guest
LIBRARY IEEE;使用IEEE.std_logic_1164.all;使用IEEE.std_logic_unsigned.all;实体DataMEM端口(DATAIN,地址:std_logic_vector(31 downto 0); CLK,wrtenb,readenb::出std_logic_vector(31 downto DATAOUT std_logic 0));结束DataMEM; DataMEM behav_DataMEM架构类型MEM_type是数组(1023)downto 0 std_logic_vector(7 downto 0);信号data_mem:MEM_type;开始过程(CLK,地址)开始(CLK的“事件和CLK = wrtenb '1'= '1'),然后data_mem(conv_integer(地址)3)