a1out <= fp2real(testa1,8,-3);
b1out <= fp2real(testb1,8,-3);
a1std <= fp2std_logic_vector(testa1,8,-3);
b1std <= fp2std_logic_vector(testb1,8,-3);
testa2 <= std_logic_vector2fp(a1std,8,-3);
testsum <= std_logic_vector2fp(sum,8,-3);
a2out <= fp2real(testa2,8,-3);
sumout <= fp2real(testsum,8,-3);
report “a1out : “ & real’image(a1out);
report “a2out : “ & real’image(b1out);
report “sumout : “ & real’image(sumout);
end process p1;
end;
An important aspect to note in this model is the use of signals and
a clock (clk). By making this model synchronous, we have ensured
correct, predictable behavior, but on each clock cycle there are sev-
eral delays built in. The ...