I'm wondering how to set a 64-bit variable in C++ for my testbench. When I use the variable_name.io_int_write(0,value0)
and variable_name.io_int_write(1,value1)
(for the lower & upper bits) I can see the variables are set but in the reverse manner.
Ex: When I want it to be 000...002, I see 200...000
Is there an alternate command that would help? Thanks
Edit: I have a function void set_function (set_ * dut)
and inside this function, I need to set a 64-bit variable dut->variable_name
Thanks for your answers, how would I go about fixing the Endianness in this case