Hi
I have four regmodels with names cp_0,cp_1,cp_2, and cp_3. While using the register models the code for all four is the same instead of doing repetitive work I wanted to use $sformatf in place of numerics
m_p_rm.$sformatf("cp_%0d",regr).system.read(.status(status),.value(rdVal),.parent(this));
where regr is number between 0 to 2 .
I'm having compilation errors saying cant have an identifier .
Any help in formating this reg model ?