请不要将bit类型与std_logic类型混用。将RA : OUT BIT RM : OUT BIT_VECTOR (7 downto 0);改成RA : OUT std_logic RM : OUT std_logic_VECTOR (7 downto 0);