Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Block Ram Problem

 
Thread Tools Search this Thread
Old 02-23-2004, 06:36 PM   #1
Default Block Ram Problem


Hi All,

I am a relative novice to vhdl and would really appreciate any
help with this problem. I am trying to construct a simple circuit
which would allow me to pass data from one block Ram on a Xilinx board
to another block Ram. My problem is that although the design
synthesized fine, the data does not show up on the destination block
Ram. The code is attached below. Thanks in advance for any help.
Cheers,

Tim.

--**************VHDL CODE******************


library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_ARITH.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;

library UNISIM;
use UNISIM.VComponents.all;

entity example1 is
port (clk: IN std_logic;
dout: out std_logic_vector(7 downto 0));
end example1;

architecture arch of example1 is

component first_bram
port (addr: IN std_logic_VECTOR(7 downto 0);
clk: IN std_logic;
dout: OUT std_logic_VECTOR(7 downto 0));
end component;

component second_bram
port (addr: IN std_logic_VECTOR(7 downto 0);
clk: IN std_logic;
din: IN std_logic_VECTOR(7 downto 0);
dout: OUT std_logic_VECTOR(7 downto 0);
en: IN std_logic;
we: IN std_logic);
end component;

component my_counter
port (Q: OUT std_logic_VECTOR(7 downto 0);
CLK: IN std_logic);
end component;

signal intermediate_output : std_logic_vector(7 downto 0);
signal counter_address : std_logic_vector(7 downto 0);
signal writeEnable : std_logic := '1';

begin

my_counter1 : my_counter port map(Q => counter_address, CLK => clk);
bram1 : first_bram port map (addr => counter_address, clk => clk,
dout => intermediate_output);
bram2 : second_bram port map (addr => counter_address, clk => clk,
din => intermediate_output, dout => dout, en => '1', we =>
writeEnable);
end arch;


Tim O' Sullivan
  Reply With Quote
Old 02-23-2004, 10:27 PM   #2
Mike Treseler
 
Posts: n/a
Default Re: Block Ram Problem
Tim O' Sullivan wrote:

> My problem is that although the design
> synthesized fine, the data does not show up on the destination block
> Ram.


Keep in mind that a null architecture will "synthesize fine".

Learning to use VHDL simulation may take a long time,
but debugging synthesis by trial and error may take
even longer.

-- Mike Treseler





Mike Treseler
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dial Up Problem smackedass A+ Certification 3 02-02-2007 11:59 PM
Re: Virus Problem ** Help!** David BlandIII A+ Certification 1 03-02-2004 06:00 PM
Re: Virus Problem ** Help!** jim6538980 A+ Certification 7 02-25-2004 04:39 PM
Re: Serious Computer Problem hootnholler A+ Certification 1 11-24-2003 12:18 PM
Re: Serious Computer Problem Bret A+ Certification 0 11-19-2003 12:51 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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