![]() |
|
|
|
#1 |
|
I have been searching around
for more than a day intensively but I was unable to find any answer. I am having a problem with constants substitution in VHDL and I have no idea why.I have a package where I defined a constant as an array of integers with the index from ( 0 downto 0). The constant I am talking about is g_nr_of_ahb_masters and is the last one in the post below. Code:
As can be seen g_nr_of_ahb_masters(0) is equal with 0 The tricky part is that I am using this constant in a process statement where for loops are defined as shown below Code:
When parsing this code it tries to go inside the "if" statement but it should avoid it. If I replace g_nr_of_ahb_masters(i) with g_nr_of_ahb_masters(0) it does not go inside the "if" anymore. What am I doing wrong? Thank you in advance for any answers, Octavian octavsly |
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| VHDL and EDK: Custom IP core containing an array as a port using EDK | allsey_1987 | Hardware | 0 | 10-27-2009 02:26 PM |
| Array Programme | rits | Software | 2 | 03-04-2009 05:18 PM |