Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started