Thank you for your message. Now this example is for multiple slave devices and single master. Should I use this with the test_program.sv?
Moreover, In my case, there is one slave component which includes a few sub components. Therefore, What I need to do is writing into register across the same slave component.
For example, write data into 'hc0 to 'hce and write to 'h9f and so on. So will the above example helps me in that case?
I was trying to modify test_program.sv. I have a few questions
1. Can I replace the structure Command with an array of Command struct. Hence, each location consist of a particular address and iterate through it?
example snippet below:
typedef struct
{
Transaction trans;
Burstcount burstcount;
logic [ADDR_W-1: 0] addr;
logic [DATA_W-1:0] data [MAX_BURST-1:0];
logic [NUM_SYMBOLS-1:0] byteenable [MAX_BURST-1:0];
bit [31:0] cmd_delay;
bit [31:0] data_idles [MAX_BURST-1:0];
} Command;
can I change this in to an array of struct like in C? ( }Command[2]; )
While doing that, compiler returning the error that it failed to create a packed array from unpacked array.