summaryrefslogtreecommitdiff
path: root/platform/wavelet3d/main.cpp
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2024-03-08 04:36:35 -0600
committerAlejandro Soto <alejandro@34project.org>2024-03-08 04:36:35 -0600
commit9456d0f772502c4d9891f35cdc433da8332f55ea (patch)
treeebbddd6f410183289ed36e53005f156df6d11474 /platform/wavelet3d/main.cpp
parentc8b633207f42b85480635573fd2a271b842c1260 (diff)
platform/wavelet3d: refactor fpint pipeline
Diffstat (limited to '')
-rw-r--r--platform/wavelet3d/main.cpp128
1 files changed, 64 insertions, 64 deletions
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<unsigned*>(&a);
top.b = *reinterpret_cast<unsigned*>(&b);