Forum Discussion
Altera_Forum
Honored Contributor
11 years agofor a start, you cannot do arithmatic on a std_logic_vector in standard VHDL (pre 2008) - you need non-standard libraries for that. And they do not include a division function. You need to use the numeric_std library for arithmatic, with is done on unsigned and signed data types.
Your attempts at using integer will not work as there is no fraction in in the integer. eg. 3/2 = 1. You need to look into the lpm_divider megafunction. It has pipelining that a division function would not.