Forum Discussion
Altera_Forum
Honored Contributor
14 years agovhdl coding
hi am new to vhdl programming. I need help in wirting the code for inserting variable data into a register. the length of the register should be based on the number of bits of data am giving to the r...
Altera_Forum
Honored Contributor
14 years agoya i will explain you clearly............
data is an output and numofbits is an input for me . let suppose data is a fixed length of 8 bits. Then if numofbits is 4. I have to place 4 bits of data in the data register. The remaining bits will be zero. So, for avoiding that zeros in my data register the length of the data register should vary with respect to the numofbits