B
Brad Smallridge
Guest
According to a suggestion from a previous posting by Jonathan Bromley (July
14 Re signed binary Massi), I am trying to convert some VHDL to numeric_std.
I have one spot that uses conv_integer, which I suppose needs to be
rewritten as to_integer([un]signed(std_logic_vector)).
Another spot, I infer an adder with index <= index + 1 ; where index is also
std_logic_vector. The numeric_std library didn't like this.
So what happens here? Do I need to convert to integer, add, and then after
the addition, convert it back to std_logic_vector? If so, what does the code
look like?
What other compatibility issues will I encounter?
I use ModelSimXE and have had issues of variables not being easily
displayable in the Wave window so I use std_logic_vector. Will this
conversion to numeric_std be a problem?
Brad Smallridge
aivision
14 Re signed binary Massi), I am trying to convert some VHDL to numeric_std.
I have one spot that uses conv_integer, which I suppose needs to be
rewritten as to_integer([un]signed(std_logic_vector)).
Another spot, I infer an adder with index <= index + 1 ; where index is also
std_logic_vector. The numeric_std library didn't like this.
So what happens here? Do I need to convert to integer, add, and then after
the addition, convert it back to std_logic_vector? If so, what does the code
look like?
What other compatibility issues will I encounter?
I use ModelSimXE and have had issues of variables not being easily
displayable in the Wave window so I use std_logic_vector. Will this
conversion to numeric_std be a problem?
Brad Smallridge
aivision