if(ci.busy) begin// writing
**dataout** = {dataout,string'(**ci.dout**)};
$sformat( request,"%b",req.dout );
$fwrite(data, request);
end
here ci.dout is bit and dataout is string. This is the code I was using to convert bit to string using static casting. But the output of dataout at the end of test is 0. I would really appreciate help.