pixel
Advanced Member level 2
I need to create new vector of size Nbits where most sinificant bits are filled in by
A(4). What is the best way to do that?
A: in STD_LOGIC_VECTOR(4 downto 0);
B: in STD_LOGIC_VECTOR(Nbits-1 downto 0);
This works only if I know Nbits
B=(A(4)&A(4)& .... A(4)&A(4)& A)
A(4). What is the best way to do that?
A: in STD_LOGIC_VECTOR(4 downto 0);
B: in STD_LOGIC_VECTOR(Nbits-1 downto 0);
This works only if I know Nbits
B=(A(4)&A(4)& .... A(4)&A(4)& A)