Is there any operator to divide a
Code:
std_logic_vector[\code], either by another [code]std_logic_vector[\code] or by an [code]integer[\code]?
I am using the following code at the moment
[code]temp := CONV_INTEGER(buf2) / q ;
ZRLOut <= CONV_STD_LOGIC_VECTOR(temp,11);[\code]
where [code]buf2[\code] and [code]ZRLOut[\code] are signals of type [code]std_logic_vector[\code], [code]temp[\code] is a variable of type [code]integer[\code], and [code]q[\code] is a signal of type [code]integer[\code].
Thanks
Ciarán Hughes
This works fine in behavioural simulation, but when I run a post translate simulation, the division seems to be ignored, i.e. [code]ZRLOut[\code] is equal [code]buf2[\code]. It is like the division can't be synthesised, and is ignored (like the [code]after[\code] statement).