Fine-grain process control in SystemVerilog has the following definition.
class process;
typedef enum { FINISHED, RUNNING, WAITING, SUSPENDED, KILLED } state;
static function process self();
function state status();
......
endclass
How to declare an enum variable with the state type? I tried the code below, but it doesn’t work.
process :: state my_process_state;
My purpose is to display the status of a process in a waveform.