Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Identify the error in the below system verilog code and rectify it class transaction; bit [ 3 1 : 0 ] data; int id; endclass
Identify the error in the below system verilog code and rectify it class transaction; bit : data; int id; endclass function void transaction::display; $displaydata d and id d data, id; endfunction task transaction::delay; #; $displayTime t delayed data d $time, data; endtask module classexample; transaction tr; initial begin trdata ; trid ; trdisplay; trdelay; end endmodule
Identify the error in the below system verilog code and rectify it
class transaction;
bit : data;
int id;
endclass
function void transaction::display;
$displaydata d and id d data, id;
endfunction
task transaction::delay;
#;
$displayTime t delayed data d $time, data;
endtask
module classexample;
transaction tr;
initial begin
trdata ;
trid ;
trdisplay;
trdelay;
end
endmodule
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered 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