![]() |
|
|
|||||||
![]() |
VHDL - DOWNTO versus TO keyword on Component instantiation |
|
|
Thread Tools | Search this Thread |
|
|
#1 |
|
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.. pierre0102@gmail.com |
|
|
|
|
#2 |
|
Senior Member
Join Date: Mar 2008
Location: Denmark
Posts: 245
|
Well be sure that these rules followed:
Highnumber DOWNTO Lownumber like: 10 DOWNTO 0 Lownumber TO Highnumber like: 0 TO 10 Jeppe jeppe |
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| ARRAY(n DOWNTO 0) OF STD_LOGIC_VECTOR(m DOWNTO 0) - VHDL | freitass | Hardware | 0 | 11-01-2007 03:44 PM |