In the driver I want to assign the concatenation of the transaction data to itself. For examle if the data contain FFFFFFFF, I havt to concatenate FFFFFFFF to FFFFFFFF, and then assign it to the virtual interface
pseudo code:
vif.DATA <= trx.data[i] (concatenation) trx.tata[i]
How can I do it?
Forgot to keep a curly brace before replication iterator. Here is a working pseudo code:
module top();
int j;
bit [31:0] q[$];
bit [63:0] data;
initial begin
q[0] = 'hABCD_1234;
j=2;
data = {j{q[0]}};
$display("data = 0x%0x",data); // data = 0xabcd1234abcd1234
end
endmodule