Question:

VHDL Code to implement RAM by INTEL.

Posted by Saradwata Bandyopadhyay on 28-02-2025

Tags : RAM by INTEL Model Sim program VHDL

Answer:

Here is the solution for the above question =>

                                      library IEEE;
use IEEE.std_logic_1164.all;
entity ram_intel is
port(
clock : in std_logic;
data : in std_logic_vector(3 downto 0);
write_addr : in integer range 0 to 31;
read_addr : in integer range 0 to 31;
we : in std_logic;
q : out std_logic_vector(3 downto 0)
);
end ram_intel;
architecture rtl of ram_intel is
type mem is array(0 to 31) of std_logic_vector(3 downto 0);
signal ram_block : mem;
begin
process(clock)
begin
if (clock'event and clock='1')then
if(we = '1')then
ram_block(write_addr)<=data;
end if;
q<=ram_block(read_addr);
end if;
end process;
end rtl;

You can directly download the Source Code and the Model Sim application from the links below =>

Add a Comment

Please Login to Comment.