scsc Posted May 30, 2021 Report Share Posted May 30, 2021 Someone seemed had used ac_math library. So here is my question. What's syntax error with the template keyword in the following line of rtest_ac_abs.cpp: ac_fixed<Wfl, Ifl, true> input_mant; // Set the sign bit to zero to ensure a positive value. input_mant[Wfl - 1] = 0; // Set the bit adjacent to the sign bit to 1 to ensure a normalized mantissa input_mant[Wfl - 2] = 1; // Set the remaining bits to the bit pattern stored in the last (Wfl - 2) bits in mant_i. input_mant.template set_slc(0, mant_i.template slc<Wfl - 2>(0)); //<<< this line has syntax error??? Quote Link to comment Share on other sites More sharing options...
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.