Sylvain,
Assuming that vect4bit has the range 3 downto 0:
port map (
vect4bit(3) => bit,
vect4bit(2 downto 0) => vect,
. . .
) ;
Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Jim Lewis
Director of Training private.php?do=newpm&u=
SynthWorks Design Inc.
http://www.SynthWorks.com
1-503-590-4787
Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
> Hi,
>
> I have a component that wants a std_logic_vector of 4 bits.
> Now, I have a std_logic and a std_logic_vector of 3 bits.
>
> Is it possible to port map it without defining an intermediate signal, like
>
> signal vect : std_logic_vector(2 downto 0);
> signal bit : std_logic;
>
> ... port map (
> vect4bit => bit & vect,
> ...
> );
>
> But that doesn't work ...
>
>
>
> Sylvain Munaut