Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
10 years ago

signed integer to std_logic_vector and vise versa

Hello Altera people !

I have two questions :

1 // I need to read a signed integer and compare it in vhdl !

Knowing that the output is std_logic (either vector or simple). how to do it ? what are the instructions !?

2// The component will be used as user peripheral in Qsys so I guess the input isn't considered as integer no ? the input is 32 bits how I can do my comparison as if it is signed integer ?!

thnx

2 Replies