Posted on:

dear all, i want to concatenate a register(of dynamic size as for concatenation) with n no:of zeros where n is a generic integer number.please help!!! Thanks in advance....
Posted on:

dear all, i want to concatenate a register(of dynamic size as for concatenation) with n no:of zeros where n is a generic integer number. say for eg num1_reg := "00" & num1;here only two zeros are only used i would like to make it something that would work like this num1_reg := "N zeros" & num1;wherein n is a generic number how to make it work..please advice... thanks in advance
Posted on:

sreeram sam wrote: > num1_reg := "N zeros" & num1;wherein n is a generic number num1_reg := (n1 downto 0 => '0') & num1; But you don't need a generic num1_reg := (num1_reg'high downto num1'length => '0') & num1; does the same. Tom
Posted on:

Thomas Reinemann wrote in post > > num1_reg := (num1_reg'high downto num1'length => '0') & num1; > > does the same. i don know what this statement does!! num1_reg'high downto num1'length => '0' ?? num1_reg'high ?? num1_reg'length ??
Posted on:

http://www.seas.upenn.edu/~ese171/vhdl/vhdl_primer.html#_Toc526061358 then scroll a bit down ...