I have many packed structs of the same size and I want to combine them to an array, so that I can go through all of them in a loop. When I create this array, a new instance of all structs will be created inside the array. Is it possible to do that by reference? I want to be able to address the single structs with and also without the array.
SystemVerilog does not have the concept of pointers, which is what you may be thinking about from the perspective of a different programming language. It does have the concept of class objects and reafenrece, but before I spend time going into that, it might help if you explain in better detail what behavior you are trying to capture.