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

Reply

VHDL - Please HELP !! register not change

 
Thread Tools Search this Thread
Old 02-29-2004, 05:34 PM   #1
Default Please HELP !! register not change


Hi all,

I'm newbie in vhdl coding style, and I'm becoming crazy to understand
some errors that compiler reports.

I'm trying to write a simple code that receive 8 bit data every clock
and try to find the sequence x"00" x"11" x"22", if data in is found it
write back x"aa" x"bb" then start to monitor data in again.

I'm becoming crazy because the compiles tells me that register DATA
and AABB_FOUND never changes and others are NEVER USED!

please could you help?? Which could be the correct VHDL code?

please find below error reports and vhdl code.
Thank you! Hope to learn more from your replies

Regards,
Hikawa



================================================== =======================
* HDL Analysis
*
================================================== =======================
Analyzing Entity <arch> (Architecture <behv>).
INFO:Xst:1304 - Contents of register <aabb_found> in unit <arch> never
changes during circuit operation. The register is replaced by logic.

INFO:Xst:1304 - Contents of register <data> in unit <arch> never
changes during circuit operation. The register is replaced by logic.

Entity <arch> analyzed. Unit <arch> generated.


================================================== =======================
* HDL Synthesis
*
================================================== =======================

Synthesizing Unit <arch>.
Related source file is C:/Programmi/Xilinx/parsec/new.vhd.
WARNING:Xst:646 - Signal <data_in1> is assigned but never used.
WARNING:Xst:646 - Signal <aabb_found> is assigned but never used.
Unit <arch> synthesized.



Here's the simple code:

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use ieee.std_logic_unsigned.all;

----------------------------------------------
package pak_array is
type x_array is array(0 to 2) of std_logic_vector(7 downto 0);
constant x: x_array :=
(x"00",x"11",x"22");
end pak_array ;
----------------------------------------------

library IEEE;
use IEEE.STD_LOGIC_1164.ALL;
use IEEE.STD_LOGIC_UNSIGNED.ALL;
use work.pak_array.all;

entity arch is
port (
clock: in std_logic;
reset: in std_logic;
data: inout std_logic_vector(7 downto 0) -- bidirectional port

);
end arch;

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

architecture behv of arch is

signal data_in1,
data_in2: std_logic_vector(7 downto 0);

constant reset_active: std_logic := '0'; -- active low reset
constant clock_low: std_logic := '0'; -- active low enable

constant data_in: std_logic_vector(15 downto 0):=x"aabb"; -- sequence
signal aabb_found: std_logic;

begin


-- ********************
-- ** SHIFT REGISTER **
-- ********************

SHIFT_reg: process(clock, reset) is
begin

if (reset=reset_active) then
data_in1<=(others=>'Z');data_in2<=(others=>'Z');
elsif (rising_edge(clock)) then
data_in2<=data;
data_in1<=data_in2;

if ((data_in2 & data_in1)=data_in)
then aabb_found<='1';
end if;

end if;
end process;

DATA_OUT: process(clock) is
begin
if (rising_edge(clock)) then

if aabb_found='1' then
for i in x'range loop
data <= x(i);
end loop;
end if;
end if;
end process;

end behv;


Hayami
  Reply With Quote
Old 03-02-2004, 08:59 AM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: Please HELP !! register not change
On 29 Feb 2004 09:34:51 -0800, (Hayami) wrote:

>Hi all,
>
>I'm newbie in vhdl coding style, and I'm becoming crazy to understand
>some errors that compiler reports.
>
>I'm trying to write a simple code that receive 8 bit data every clock
>and try to find the sequence x"00" x"11" x"22", if data in is found it
>write back x"aa" x"bb" then start to monitor data in again.
>
>I'm becoming crazy because the compiles tells me that register DATA
>and AABB_FOUND never changes and others are NEVER USED!


When does your code set AABB_FOUND to zero? Never!

Consider rewriting the whole design as a state machine.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services

Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
Tel: +44 (0)1425 471223 mail:
Fax: +44 (0)1425 471573 Web: http://www.doulos.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
Old 03-07-2004, 05:24 PM   #3
Hayami
 
Posts: n/a
Default Re: Please HELP !! register not change
Jonathan Bromley <> wrote in message news:<>. ..
> On 29 Feb 2004 09:34:51 -0800, (Hayami) wrote:
>
> >Hi all,
> >
> >I'm newbie in vhdl coding style, and I'm becoming crazy to understand
> >some errors that compiler reports.
> >
> >I'm trying to write a simple code that receive 8 bit data every clock
> >and try to find the sequence x"00" x"11" x"22", if data in is found it
> >write back x"aa" x"bb" then start to monitor data in again.
> >
> >I'm becoming crazy because the compiles tells me that register DATA
> >and AABB_FOUND never changes and others are NEVER USED!

>
> When does your code set AABB_FOUND to zero? Never!
>
> Consider rewriting the whole design as a state machine.
> --
> Jonathan Bromley, Consultant
>
> DOULOS - Developing Design Know-how
> VHDL, Verilog, SystemC, Perl, Tcl/Tk, Verification, Project Services
>
> Doulos Ltd. Church Hatch, 22 Market Place, Ringwood, BH24 1AW, UK
> Tel: +44 (0)1425 471223 mail:
> Fax: +44 (0)1425 471573 Web: http://www.doulos.com
>
> The contents of this message may contain personal views which
> are not the views of Doulos Ltd., unless specifically stated.



Thank you for your reply

ragards,

Hayami


Hayami
  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
Writing Register code in vhdl amirster Hardware 2 06-11-2007 03:22 PM
Why We Resist Change @ The TechZone Silverstrand Front Page News 0 09-07-2006 12:01 PM
If I could change the LotR movies... Opticreep DVD Video 33 03-03-2004 12:36 PM
DVD Register Beta Testers Needed Tom Orlofsky DVD Video 1 12-22-2003 02:21 AM
Can't Change IRQs in Windows 2000 Alicia White A+ Certification 8 09-01-2003 08:54 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