Altera_Forum
Honored Contributor
11 years agoDivision using STD_LOGIC_VECTOR
Hello everybody,
I'm trying to divide two STD_LOGIC_VECTOR variables, but the "/" operator isn't recognized to this type of variable. When I try to multiply using "*" it works, but when I try to divide it doesn't work. I already try to convert the STD_LOGIC_VETOR to a INTEGER and then divide, but the function CONV_INTEGER returns me a wrong answer. Can somebody help me? Thanks!