Question: 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
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
