OpenCores
URL https://opencores.org/ocsvn/fpu100/fpu100/trunk

Subversion Repositories fpu100

Compare Revisions

  • This comparison shows the changes necessary to convert path
    /
    from Rev 11 to Rev 12
    Reverse comparison

Rev 11 → Rev 12

/trunk/fpu.vhd
397,28 → 397,18
end if;
end process;
-- Output Multiplexer
process(clk_i)
begin
if rising_edge(clk_i) then
if fpu_op_i="000" or fpu_op_i="001" then
s_output1 <= postnorm_addsub_output_o;
s_ine_o <= postnorm_addsub_ine_o;
elsif fpu_op_i="010" then
s_output1 <= post_norm_mul_output;
s_ine_o <= post_norm_mul_ine;
elsif fpu_op_i="011" then
s_output1 <= post_norm_div_output;
s_ine_o <= post_norm_div_ine;
elsif fpu_op_i="100" then
s_output1 <= post_norm_sqrt_output;
s_ine_o <= post_norm_sqrt_ine_o;
else
s_output1 <= (others => '0');
s_ine_o <= '0';
end if;
end if;
end process;
-- Output Multiplexer. Arithmetic units that are not needed can be just commented out(Notice: you have to comment both s_output1 and s_ine_o)
s_output1<= postnorm_addsub_output_o when fpu_op_i="000" or fpu_op_i="001" else
post_norm_mul_output when fpu_op_i="010" else
post_norm_div_output when fpu_op_i="011" else
post_norm_sqrt_output when fpu_op_i="100" else
(others => '0');
s_ine_o<= postnorm_addsub_ine_o when fpu_op_i="000" or fpu_op_i="001" else
post_norm_mul_ine when fpu_op_i="010" else
post_norm_div_ine when fpu_op_i="011" else
post_norm_sqrt_ine_o when fpu_op_i="100" else
'0';
------------------------
 
s_infa <= '1' when s_opa_i(30 downto 23)="11111111" else '0';

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.