c_rpg
Newbie level 3
I need to set and clear one bit in a large std_logic_vector, the position of the bit that needs to be changed is not static.
I have these signals:
And have tried:
But this doesn't work and I also think it will infer a latch because not all bits are assigned.
What is the proper way to set or clear this single bit?
I have these signals:
Code:
signal large_vector : std_logic_vector(299 downto 0);
signal position : std_logic_vector(8 downto 0);
Code:
large_vector(conv_integer(unsigned(signal position))) <= '1';
What is the proper way to set or clear this single bit?