At the moment the constant is cast to a string resulting in a something like max_write_data: <slvcodec.typs.unresolvedconstrainedunsigned object at 0x7f8a8079ce48> in the testbench.