Wanted Actel ProAsic RAM VHDL models

Jul 14, 2005 1 Replies

Hi,



I've tried inferring RAMs, but it doesn't seem to work well, so I want to just instantiate the Actel RAM primitives.



Does anyone have a 4kx9 or 512x18 RAM model that uses instantiated ProAsic RAM primitives?



Thanks, Scott scd -at- teleport -dot- com


Why don't you use ACTGEN? If you have access to Precision then the example below will infer a synchronous memory block,

-------------------------------------------------------------------------------

-- Actel Synchronous Memory

------------------------------------------------------------------------------- LIBRARY ieee; USE ieee.std_logic_1164.all; USE ieee.std_logic_unsigned.all; -- yes I know, shouldn't use it :-)

entity ssram is port( clk : in std_logic; din128 : in std_logic_vector (127 downto 0); addr : in std_logic_vector (3 downto 0); we : in std_logic; dout128 : out std_logic_vector (127 downto 0) ); end ssram ;

architecture rtl of ssram is

type mem_type is array (15 downto 0) of std_logic_vector(127 downto 0) ; signal mem : mem_type;

begin

singleport : process (clk) begin if (clk'event and clk = '1') then if (we = '1') then mem(conv_integer(addr))

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required