In reply to rishikpillai90:
There are certain restrictions in using replication operators. I would advise to make an API and set the values from that. The closest one can get is replicating same values:
typedef struct packed{
A a;
B b;
C c;
D d;
} lp_s; //A,B,C,D : integer enums
lp_s vari[$] = '{
//'{a: A_ENUM, b: B_ENUM, default:0},
15{a: A_ENUM, b: B_ENUM, default:0}
//{a: A_ENUM, b: B_ENUM, default:0}
};
Refer to this similar thread for more information.
Section 10.1 of IEEE 1800-2017 discusses about the legal and illegal combinations.