`uvm_info(get_name(), $sformatf("int'(~1'b0) = %d",int'(~1'b0)), UVM_LOW)
UVM_INFO testbench.sv(28) @ 0: reporter [m_obj] int'(~1'b0) = -1
This wasted some of my time as I assumed this would return 1.
So, how come it returns -1?
Isn't ~1'b0 = 1'b1, and then int'(1'b1) = 32b'1?
Where did the minus come from?