Go Back   Velocity Reviews > General Computer Discussion > Hardware
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 11-13-2007, 04:48 AM   #1
Default synthesis error


when iam synthesizing this code i am getting these errors
d" line 58: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 58: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 60: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 60: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 57: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 58: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 58: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 60: Index value(s) does not match array range, simulation mismatch.
WARNING:Xst:790 - "C:/Xilinx/proj1/alg.vhd" line 60: Index value(s) does not match array range, simulation mismatch.


code is
library ieee;
use ieee.std_logic_1164.all;
use ieee.std_logic_arith.all;
use work.pack1.all;
entity cn1 is
port(y:in mat;s,t:in integer range 0 to 5;o: out mat1);
end cn1;
architecture cn1 of cn1 is
begin
process(y,s,t)
variable a:a1;
variable i,k,min:integer range -5 to 99;
variable d:mat;
variable path:mat1;
variable p:a1;
begin
--- assigning i/p y--> d
for i in 0 to n-1 loop
for j in 0 to n-1 loop
d(i,j):=y(i,j);
end loop;
end loop;

--intialisation of all nodes
for i in 0 to n-1 loop
a(i).pre:=-1;
a(i).len:=inf;
a(i).lab:=ten;
end loop;

a(t).len:=0;
a(t).lab:=per;
k:=t;

-- calculating shotest path
l1:loop
for i in 0 to n-1 loop
if((d(k,i)/=0) and (a(i).lab=ten)) then
if ((a(k).len+d(k,i))<(a(i).len)) then
a(i).pre:=k;
a(i).len:=(a(k).len + d(k,i));
end if;
end if;
end loop;
k:=0;
min:=inf;
for i in 0 to n-1 loop
if((a(i).lab=ten) and (a(i).len<min))then
min:=a(i).len;
k:=i;
-- a(i).pre:=k; --extra
end if;
end loop;
a(k).lab:=per;
exit when (k=s);
end loop l1;
--end loop;
i:=0;
k:=s;
-- l2:loop
-- path(i):=k;
-- i:=i+1;
-- k:=a(i).pre;
-- exit when (k<=0);
-- end loop l2;
for i in 0 to n-1 loop
if(k>=0) then
path(i):=k;
k:=a(k).pre;
end if;
end loop;


for i in 0 to n-1 loop
o(i)<=path(i);
end loop;
--o<=path;
end process;
end architecture ;


package:
package pack1 is
constant n:integer:=3; --no of nodes
constant inf:integer:=99; ---no connection
type x is (per,ten); ---perm/fixed ,,enum type
type sekhar is
record
pre:integer;
len:integer;
lab;
end record;
type a1 is array( 0 to n-1) of sekhar; --creating n records
-- type a1ptr is access a1;
type mat is array (0 to n-1, 0 to n-1) of integer range -2 to 99;
type mat1 is array (0 to n-1) of integer range -2 to 99;
end pack1;
package body pack1 is
end pack1;
and when adding test bench waveform it will automatically shutdowns
please give me suggestions


sekhar_kollati
sekhar_kollati is offline   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
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob rasmita General Help Related Topics 0 09-05-2006 05:46 AM
Synplicity synthesis error etoktas Hardware 0 07-12-2006 01:52 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