Hi, How can i transfer 20 zeros to a register having 20 bit memory in vhdl. a <= "00000000000000000000"; is there any short code for the above assignment?
: Edited by User
a <= (others => '0');
ui wrote: > a <= (others => '0'); thanks for your reply...and i have one more doubt. how can we assign a register with decimal value, like we are assigning in verilog if(req_cop_trst_cnt >= 20'd131072) // verilog
You cannot like in verilog. You need to do it explicity. For this you need to cast your integer first to unsigned or signed and then to std_logic_vector. see http://www.bitweenie.com/listings/vhdl-type-conversion/