Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   VHDL (http://www.velocityreviews.com/forums/f18-vhdl.html)
-   -   DOWNTO versus TO keyword on Component instantiation (http://www.velocityreviews.com/forums/t645053-downto-versus-to-keyword-on-component-instantiation.html)

pierre0102@gmail.com 11-18-2008 10:59 AM

DOWNTO versus TO keyword on Component instantiation
 
Hello,

Does anyone know about the following error in Modelsim ?

** Error: xxx.vhd(2435): (vcom-1012) Slice range direction (to) does
not match slice prefix dire
ction (downto).

The slice range direction on the concerned port are identical on the
entity and on the component declaration (DOWNTO keyword) but I cant
use slice range direction (TO) in the assigned signal.
If I set TO every where is does not work better. The only solution is
using "downto" everywhere...

Is it a VHDL restriction ?

Thanks..

jeppe 11-18-2008 12:12 PM

Well be sure that these rules followed:

Highnumber DOWNTO Lownumber like: 10 DOWNTO 0

Lownumber TO Highnumber like: 0 TO 10

Jeppe


All times are GMT. The time now is 08:37 AM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, 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 47 48 49 50 51 52 53 54 55 56 57