Question: Identify the Error in the system verilig code and Rectify It class transaction _ A; bit [ 3 1 : 0 ] data; int id;
Identify the Error in the system verilig code and Rectify It
class transactionA;
bit : data;
int id;
transactionB trB new;
function void display;
$displaytransactionA: data d and id d data, id;
$displaytransactionB: addr d trBaddr;
endfunction
endclass
class transactionB;
bit : addr ;
endclass
module classexample;
initial begin
trA new;
trAdata ;
trAid ;
trAdisplay;
end
endmodule
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
