Reputation: 609
I have a bus:
A(7 downto 0)
and i'm creating an component that interfaces with it on 7, 6 and 0, is there a way for me to create a
std_logic_vector(7,6,0)?
simply for the sake of staying consistent with the pins on bus A()? I'm sure i could do something like:
std_logic_vector(2 downto 0) -- or maybe even
ASeven, Asix, Azero : in std_logic;
and assign the pins accordingly, but it'd be a lot nicer for reference etc(i think) if i could create a vector.
Thanks in Advance! :)
Upvotes: 1
Views: 962
Reputation: 620
You can't. Either make a signal x(7 downto 0) and disregard the spare signals (the compiler/synthesizer will do, anyway), or you can use an appropriate assignment in your port map like
port map(
or something. In general, use the first variant, as it is more consistent.
myoutport(0) => aZero,
...
Upvotes: 2