Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Problem about bram

Reply
Thread Tools

Problem about bram

 
 
baggio_bupt baggio_bupt is offline
Junior Member
Join Date: Dec 2007
Posts: 2
 
      12-04-2007
I use ise to design a ram on xilinx spardan3e.When I run Synthesize about the code below, the Synthesize runs a long time and does not stop. May someone can tell me the reason? thanks!


library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_unsigned.all;

entity vgaram is
port( clk : in std_logic;
addr : in std_logic_vector(12 downto 0);
data_o : out std_logic_vector(0 to 7);
data_i : in std_logic;
rwenable : in std_logic
);
end vgaram;

architecture vgaram_arch of vgaram is

type ramtype is array(0 to 19) of std_logic_vector(0 to 7);
signal vedioram : ramtype :=
(
"00000000","00000000","00000000","00000000","0 0000 000","00000000","00000000","00000000","00000000", " 00000000",
"00000000","00000000","00000000","00000000","0 0000 000","00000000","00000000","00000000","00000000", " 00000000"

);


begin

process(clk)
begin
if clk'event and clk = '1' then
if rwenable = '0' then
vedioram(conv_integer(addr(12 downto 3)))(conv_integer(addr(2 downto 0))) <= data_i;
else
data_o <= vedioram(conv_integer(addr(12 downto 3)));
end if;
end if;
end process;
end vgaram_arch;
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
question on design problem.. bram or lut for arrays? Mike Treseler VHDL 3 12-19-2005 06:52 PM
Bram Cohen woos Hollywood with Bit Torrent Silverstrand Front Page News 0 08-02-2005 09:07 PM
Xilinx BRAM Init VHDL formats Brad Smallridge VHDL 1 01-17-2005 10:58 PM
Using BRAM in Spartan 2 lomtik VHDL 0 12-15-2004 10:44 PM
BRAM init (again ?!) Michel Bieleveld VHDL 1 08-16-2004 11:05 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57