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

Subversion Repositories xilinx_virtex_fp_library

[/] [xilinx_virtex_fp_library/] [trunk/] [DualPathFPAdder/] [DualPathFPAdder.v] - Diff between revs 13 and 17

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 13 Rev 17
Line 133... Line 133...
                special_cases_instance( .sp_case_a_number(sp_case_a_number),
                special_cases_instance( .sp_case_a_number(sp_case_a_number),
                                                                                .sp_case_b_number(sp_case_b_number),
                                                                                .sp_case_b_number(sp_case_b_number),
                                                                                .sp_case_result_o(resulted_exception_field));
                                                                                .sp_case_result_o(resulted_exception_field));
 
 
        //set zero_flag in case of equal numbers
        //set zero_flag in case of equal numbers
        assign zero_flag = (exp_difference > 1 | !eff_op)? ~(|fp_resulted_m_o) : ~(|cp_resulted_m_o);
        assign zero_flag = (exp_difference > 1 | !eff_op)?
 
                                                                ~((|{fp_resulted_m_o, resulted_exception_field[1]}) & (|resulted_exception_field))  :
 
                                                                ~((|{cp_resulted_m_o, resulted_exception_field[1]}) & (|resulted_exception_field));
 
 
        assign resulted_sign = (exp_difference > 1 | !eff_op)? (!a_greater_exponent[size_exponent]? s_a_number : (eff_op? ~s_b_number : s_b_number)) : (ovf ^ swap);
        assign resulted_sign = (exp_difference > 1 | !eff_op)? (!a_greater_exponent[size_exponent]? s_a_number : (eff_op? ~s_b_number : s_b_number)) : (ovf ^ swap);
 
 
        assign resulted_number_o = (zero_flag)? {size{1'b0}} :
        assign resulted_number_o = (zero_flag)? {size{1'b0}} :
                                                                        (exp_difference > 1 | !eff_op)?         {resulted_exception_field, resulted_sign, fp_resulted_e_o, fp_resulted_m_o[size_mantissa-2 : 0]}:
                                                                        (exp_difference > 1 | !eff_op)?         {resulted_exception_field, resulted_sign, fp_resulted_e_o, fp_resulted_m_o[size_mantissa-2 : 0]}:

powered by: WebSVN 2.1.0

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