From 9456d0f772502c4d9891f35cdc433da8332f55ea Mon Sep 17 00:00:00 2001 From: Alejandro Soto Date: Fri, 8 Mar 2024 04:36:35 -0600 Subject: platform/wavelet3d: refactor fpint pipeline --- platform/wavelet3d/main.cpp | 128 ++++++++++++++++++++++---------------------- 1 file changed, 64 insertions(+), 64 deletions(-) (limited to 'platform/wavelet3d/main.cpp') diff --git a/platform/wavelet3d/main.cpp b/platform/wavelet3d/main.cpp index 037aee4..49c96c1 100644 --- a/platform/wavelet3d/main.cpp +++ b/platform/wavelet3d/main.cpp @@ -30,76 +30,76 @@ int main(int argc, char **argv) std::cin >> a >> b; // int->fp - top.mul_float_m1 = 0; - top.unit_b_m1 = 1; - top.float_a_1 = 0; - top.int_hi_a_1 = 0; - top.int_lo_a_1 = 1; - top.zero_flags_1 = 1; - top.zero_b_1 = 1; - top.copy_flags_2 = 0; - top.int_signed_4 = 1; - top.int_operand_5 = 1; - top.copy_flags_5 = 1; - top.enable_norm_6 = 1; - top.copy_flags_10 = 0; - top.copy_flags_11 = 0; - top.enable_round_11 = 1; - top.encode_special_13 = 1; + top.setup_mul_float = 0; + top.setup_unit_b = 1; + top.mnorm_put_hi = 0; + top.mnorm_put_lo = 1; + top.mnorm_put_mul = 0; + top.mnorm_zero_flags = 1; + top.mnorm_zero_b = 1; + top.minmax_copy_flags = 0; + top.shiftr_int_signed = 1; + top.addsub_int_operand = 1; + top.addsub_copy_flags = 1; + top.clz_force_nop = 1; + top.shiftl_copy_flags = 0; + top.round_copy_flags = 0; + top.round_enable = 1; + top.encode_enable = 1; // mul int - //top.mul_float_m1 = 0; - //top.unit_b_m1 = 0; - //top.float_a_1 = 0; - //top.int_hi_a_1 = 0; - //top.int_lo_a_1 = 1; - //top.zero_flags_1 = 1; - //top.zero_b_1 = 1; - //top.copy_flags_2 = 1; - //top.int_signed_4 = 0; - //top.int_operand_5 = 0; - //top.copy_flags_5 = 1; - //top.enable_norm_6 = 0; - //top.copy_flags_10 = 1; - //top.copy_flags_11 = 1; - //top.enable_round_11 = 0; - //top.encode_special_13 = 0; + //top.setup_mul_float = 0; + //top.setup_unit_b = 0; + //top.mnorm_put_hi = 0; + //top.mnorm_put_lo = 1; + //top.mnorm_put_mul = 0; + //top.mnorm_zero_flags = 1; + //top.mnorm_zero_b = 1; + //top.minmax_copy_flags = 1; + //top.shiftr_int_signed = 0; + //top.addsub_int_operand = 0; + //top.addsub_copy_flags = 1; + //top.clz_force_nop = 0; + //top.shiftl_copy_flags = 1; + //top.round_copy_flags = 1; + //top.round_enable = 0; + //top.encode_enable = 0; // mul fp - //top.mul_float_m1 = 1; - //top.unit_b_m1 = 0; - //top.float_a_1 = 1; - //top.int_hi_a_1 = 0; - //top.int_lo_a_1 = 0; - //top.zero_flags_1 = 0; - //top.zero_b_1 = 1; - //top.copy_flags_2 = 1; - //top.copy_flags_5 = 1; - //top.int_signed_4 = 0; - //top.int_operand_5 = 0; - //top.enable_norm_6 = 1; - //top.copy_flags_10 = 1; - //top.copy_flags_11 = 1; - //top.enable_round_11 = 1; - //top.encode_special_13 = 1; + //top.setup_mul_float = 1; + //top.setup_unit_b = 0; + //top.mnorm_put_hi = 0; + //top.mnorm_put_lo = 0; + //top.mnorm_put_mul = 1; + //top.mnorm_zero_flags = 0; + //top.mnorm_zero_b = 1; + //top.minmax_copy_flags = 1; + //top.shiftr_int_signed = 0; + //top.addsub_int_operand = 0; + //top.addsub_copy_flags = 1; + //top.clz_force_nop = 1; + //top.shiftl_copy_flags = 1; + //top.round_copy_flags = 1; + //top.round_enable = 1; + //top.encode_enable = 1; // suma/resta - //top.mul_float_m1 = 0; - //top.unit_b_m1 = 1; - //top.float_a_1 = 0; - //top.int_hi_a_1 = 0; - //top.int_lo_a_1 = 1; - //top.zero_flags_1 = 0; - //top.zero_b_1 = 0; - //top.copy_flags_2 = 0; - //top.copy_flags_5 = 0; - //top.int_signed_4 = 0; - //top.int_operand_5 = 0; - //top.enable_norm_6 = 1; - //top.copy_flags_10 = 0; - //top.copy_flags_11 = 0; - //top.enable_round_11 = 1; - //top.encode_special_13 = 1; + //top.setup_mul_float = 0; + //top.setup_unit_b = 1; + //top.mnorm_put_hi = 0; + //top.mnorm_put_lo = 1; + //top.mnorm_put_mul = 0; + //top.mnorm_zero_flags = 0; + //top.mnorm_zero_b = 0; + //top.minmax_copy_flags = 0; + //top.shiftr_int_signed = 0; + //top.addsub_int_operand = 0; + //top.addsub_copy_flags = 0; + //top.clz_force_nop = 1; + //top.shiftl_copy_flags = 0; + //top.round_copy_flags = 0; + //top.round_enable = 1; + //top.encode_enable = 1; top.a = *reinterpret_cast(&a); top.b = *reinterpret_cast(&b); -- cgit v1.2.3