To get process_id in Java, we use ProcessHandle.current().pid();
,. Jow we can get current-process-id in Systemverilog
?
Use the builtin process
class
begin
process pid;
pid = process::self();
...
end
See section 9.7 Fine-grain process control in the IEEE 1800-2017 SystemVerilog LRM