Guest
#6425243
I stumbled over this several times now and would like to know how to properly do this in VHDL: I have a signed number and would like to multiply this with a positive factor (which is given by an unsigned). VHDL does not allow me to multiply signed with unsigned. What I did so far: - Convert unsigned into std_logic_vector - Append leading zero bit - Convert into signed. Since the first bit is always zero, I know no that the number is always positive, although represented with a signed type. This process works but seems retarded to me. I googled how to do this properly but surprisingly didn't find a lot, although I can't believe I'm the only one having to do this. Any hint on how to write this in a clean proper way?