P
Peter Bluer
Guest
Hi,
Please could someone help with the following:
I have an output on an entity which is a std_ulogic_vector(31 DOWNTO 0) and
is called data_out.
Within the VHDL I have a std_ulogic called c_store.
At one point I want to do data_out <= "0000000000000000000000000000000" &
c_store;
(so all zeroes apart from the lsb which is replaced by the value of
c_store).
Is there any better way of defining it so I don't have to put in all those
zeroes?
ie: somehow using OTHERS => '0' etc.
Hope this makes sense,
Thanks.
Please could someone help with the following:
I have an output on an entity which is a std_ulogic_vector(31 DOWNTO 0) and
is called data_out.
Within the VHDL I have a std_ulogic called c_store.
At one point I want to do data_out <= "0000000000000000000000000000000" &
c_store;
(so all zeroes apart from the lsb which is replaced by the value of
c_store).
Is there any better way of defining it so I don't have to put in all those
zeroes?
ie: somehow using OTHERS => '0' etc.
Hope this makes sense,
Thanks.