M
m
Guest
....don't know why I am numbering my questions, but I'm on a roll, so
I'll keep it that way.
Just ran into this:
signal A: std_logic_vector(5 downto 0);
....
later on in a conditional statement it is used this way:
.........A(5 downto 7).......
What does that mean? There isn't a seventh element to this vector.
Also, wouldn't "downto" require the second index to be less than or
equal to the first?
Similarly, elsewhere in the code I found:
.....ext("0", (3 - 2))...
Of course "(3-2)" is actually an expression that results in these
numbers. I'm simplifying here.
Now, from what I gather, if the SIZE portion of "ext" is < 0 it is
interpreted as 0. Presumably, then, this would simply return "0".
I think I got the second one right. The first one I can't figure
out. The three books on my desk don't seem to help either.
Thanks,
-Martin
I'll keep it that way.
Just ran into this:
signal A: std_logic_vector(5 downto 0);
....
later on in a conditional statement it is used this way:
.........A(5 downto 7).......
What does that mean? There isn't a seventh element to this vector.
Also, wouldn't "downto" require the second index to be less than or
equal to the first?
Similarly, elsewhere in the code I found:
.....ext("0", (3 - 2))...
Of course "(3-2)" is actually an expression that results in these
numbers. I'm simplifying here.
Now, from what I gather, if the SIZE portion of "ext" is < 0 it is
interpreted as 0. Presumably, then, this would simply return "0".
I think I got the second one right. The first one I can't figure
out. The three books on my desk don't seem to help either.
Thanks,
-Martin