OCESS_RD:process (CLK) begin
 if CLK'event and CLK = '1' then
  if wr_en = '1' then
    ram(TO_INTEGER(UNSIGNED(A(8 downto 0)))) <= D_IN;
  end if;
 end if;
end process PROCESS_RD;

 D_OUT <= ram(TO_INTEGER(UNSIGNED(A(8 downto 0)))) when (rd_en = '1' and rd_en_o = '1') else (OTHERS => 'Z');

end asram_model_arch;
