Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > Time Array

Reply
Thread Tools

Time Array

 
 
ALuPin@web.de
Guest
Posts: n/a
 
      11-29-2005
Hi,

I define the following type and a signal of that type:

TYPE type_t_time_vector IS ARRAY (34 DOWNTO 0) OF TIME := (3 ns, 3.5
ns, 4 ns, 4.5 ns, 5 ns, 5.5 ns, 6 ns, 6.5 ns, 7 ns, 7.5 ns, 8 ns, 8.5
ns, 9 ns, 9.5 ns, 10 ns, 10.5 ns,
11 ns, 11.5 ns, 12 ns, 12.5 ns, 13 ns, 13.5 ns, 14 ns, 14.5 ns,
15 ns, 15.5 ns, 16 ns, 16.5 ns, 17 ns, 17.5 ns, 18 ns, 18.5 ns,
19 ns, 19.5 ns, 20 ns);

SIGNAL t_time_vector : type_t_time_vector;

When compiling my VHDL testbench I get the followin error message:


** Error:
h:/eda/lattice/dvi_pc_top_ispLEVER51/complex_simu/fifo_vs_ddr_ip/tb_fifo_vs_ddr_ip.vhd(16:
near ":=": expecting: ';'
# ** Error: D:/Programme/Lattice/ISPLever51/modelsim/win32loem/vcom
failed.

Line 168 marks the line where the type declaration begins

Any idea what is wrong here ?

Rgds
André

 
Reply With Quote
 
 
 
 
Ajeetha
Guest
Posts: n/a
 
      11-29-2005
Andre,
Move the value initialization to the signal definition line than
to the TYPE itself. I tried on Simli, it works just fine.

HTH
Ajeetha
www.noveldv.com

 
Reply With Quote
 
 
 
 
ALuPin@web.de
Guest
Posts: n/a
 
      11-30-2005
Hi Ajeetha,

yes it works, thank you very much.

Rgds
André

 
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
Is time.time() < time.time() always true? flamesrock Python 8 11-24-2006 06:51 AM
Re: interpreting the fractional portion of time.clock() vs time.time(0measurements Peter Hansen Python 0 02-22-2006 02:02 PM
Re: interpreting the fractional portion of time.clock() vs time.time()measurements Peter Hansen Python 0 02-22-2006 12:03 AM
time.clock() or time.time() peterbe@gmail.com Python 8 08-05-2005 01:51 PM
delta time = time stop - time start engsol Python 2 01-26-2004 12:06 PM



Advertisments