Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17263 Discussions

convert an integer to a vector

Altera_Forum
Honored Contributor II
1,159 Views

I have a constant for eg. 5.Now i have to convert into vector form.How can i do it in vhdl code?I think there is no necessary to write a code in testbench for the waveform,because there is no need of waveform. Where i have to see the result............ please help.....

0 Kudos
1 Reply
Altera_Forum
Honored Contributor II
361 Views

std_logic_vector(to_unsigned(integer,integer'length))

0 Kudos
Reply