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

Reply

VHDL - Warning of Xst:2677

 
Thread Tools Search this Thread
Old 04-11-2007, 07:17 PM   #1
Default Warning of Xst:2677


I am getting a warning of My Array is not connecting to the block.
when i test bench it i am getting 'U's.


WARNING:Xst:2677 - Node <COUNT_3_0> of sequential type is unconnected
in block <MemMod2d>.


Sample code:
architecture Behavioral of MemMod2d is
type MEM1 is array (0 to 255) of STD_LOGIC_VECTOR (7 downto 0); -- 1d
x 1d
signal COUNT: MEM1;

begin

DataIn: process (pixdata,clk,Reset_Frame)

begin
if (Reset_Frame = '1') then

if (clk'event and clk = '0') then
For i in 0 to 255 Loop
if (pixdata = i) then
COUNT (i) <= COUNT (i)+ "1";

end loop;
end if;
end if;


end process DataIn;



Sudeep Vhdl-Rookie
  Reply With Quote
Old 04-11-2007, 11:43 PM   #2
Andy Peters
 
Posts: n/a
Default Re: Warning of Xst:2677
On Apr 11, 11:17 am, "Sudeep Vhdl-Rookie" <getd...@gmail.com> wrote:
> I am getting a warning of My Array is not connecting to the block.
> when i test bench it i am getting 'U's.
>
> WARNING:Xst:2677 - Node <COUNT_3_0> of sequential type is unconnected
> in block <MemMod2d>.


Oy! Where to begin ...

> Sample code:
> architecture Behavioral of MemMod2d is
> type MEM1 is array (0 to 255) of STD_LOGIC_VECTOR (7 downto 0); -- 1d
> x 1d
> signal COUNT: MEM1;
>
> begin
> DataIn: process (pixdata,clk,Reset_Frame)
> begin
> if (Reset_Frame = '1') then
> if (clk'event and clk = '0') then
> For i in 0 to 255 Loop
> if (pixdata = i) then
> COUNT (i) <= COUNT (i)+ "1";
> end loop;
> end if;
> end if;
> end process DataIn;


Let's see ... first of all, XST is probably as confused by your code
as I am. pixdata shouldn't be on the sensitivity list if your intent
is to build synchronous logic (looks like you want an array of
counters). Also, the falling clock edge shouldn't be inside the
Reset_Frame "if" block.

Finally, nothing ever properly initializes COUNT. Think about the
statement:

COUNT(i) <= COUNT(i) + "1";

I don't see anything that loads a value into any of the elements of
COUNT(i), so of course when you first use it, COUNT(i) has the value
"UUUUUUUU". Adding 1 to "UUUUUUUU" is still "UUUUUUUUU."

-a



Andy Peters
  Reply With Quote
Old 04-12-2007, 08:49 AM   #3
Jonathan Bromley
 
Posts: n/a
Default Re: Warning of Xst:2677
On 11 Apr 2007 11:17:33 -0700, "Sudeep Vhdl-Rookie"
<> wrote:

>Sample code:


>architecture Behavioral of MemMod2d is
> type MEM1 is array (0 to 255) of STD_LOGIC_VECTOR (7 downto 0);
> signal COUNT: MEM1;
>begin
> DataIn: process (pixdata,clk,Reset_Frame)
> begin
> if (Reset_Frame = '1') then
> if (clk'event and clk = '0') then
> For i in 0 to 255 Loop
> if (pixdata = i) then
> COUNT (i) <= COUNT (i)+ "1";
> end loop;
> end if;
> end if;
> end process DataIn;


I totally agree with everything Andy Peters said.

A few other points:

(1)
Try using only 2-space indents. It makes the code far
easier to read.

(2)
Is this to gather an image histogram? If so, you should question
whether 8-bit counters are wide enough. Images often have many
thousands of pixels of the same colour - especially saturated white
or black. Your counters will wrap round from 255 to 0, giving
confusing results. You already have a lot of counters; increasing
their width to perhaps 12 bits would not be a huge overhead.

(3)
I suspect it's wrong for Reset_Frame to be in the sensitivity list.
Surely you have a *synchronous* frame reset signal?

(4)
How are you planning on getting data *out* of the counters?
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.


Jonathan Bromley
  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
Error: Physical sythesis tool PALAC is not supported by Formal Verification tool Conf bbiandov Software 0 12-22-2008 05:25 AM
RARE DOCUMENTARIES - OLD HBO UNDERCOVER & MORE, SELL OR TRADE Michelangelo098@aol.com DVD Video 0 10-03-2006 10:58 PM
Warning about JENOVIA DIRECT on eBay Fluffy DVD Video 0 05-05-2006 03:35 AM
WARNING - DVD Fire Hazzard davidmahoney@earthlin_.net DVD Video 24 09-15-2005 11:06 AM
WARNING - HANDLE DVDs WITH CAUTION listitem45y@consumerprotection.org DVD Video 71 01-31-2004 03:51 PM




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