Vector Slicing in assigments

N

nrivera.eng

Hi,

I want to assign to a vector of 64 bits "0001" and the rest to
zeroes

I tries

output <= ( 64 downto 4 => '0', 3 downto 0 => "0001" ) ;

but that didn't work. Does anyone know how I can achieve want I want to
do?

Thanks,
Noel
 
A

arulk77

Try this
output(64 downto 4) <= (others => '0');
output(3 dowtno 0) <= "0001";

regards,
Arul
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top