data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_level_mon.v
1: b'%Warning-WIDTH: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_level_mon.v:52: Operator TASKREF \'finish_test\' expects 513 bits on the Function Argument, but Function Argument\'s CONST \'288\'h205369676e616c20746f67676c6573207768656e206e6f7420737570706f73656420746f\' generates 288 bits.\n                                                                                                : ... In instance ctu_level_mon\n   finish_test(" Signal toggles when not supposed to", mon_num);\n   ^~~~~~~~~~~\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/458737381/src/verilog-parser/tests/ctu_level_mon.v:47: Logical Operator LOGNOT expects 1 bit on the LHS, but LHS\'s TESTPLUSARGS \'ctu_mon_off\' generates 32 bits.\n                                                                                                : ... In instance ctu_level_mon\nif ( !$test$plusargs("ctu_mon_off")) begin\n     ^\n%Error: Exiting due to 2 warning(s)\n'
module ctu_level_mon (
 hi,
 lo,
 mon_en,
 mon_num,
 off_on

);


  input hi;
  input lo;
  input mon_en;
  input [31:0] mon_num;
  input off_on;


always @(hi or lo) 
begin
if ( !$test$plusargs("ctu_mon_off")) begin
 if ((mon_en == 1'b1)&& (off_on != 1'b1)) begin
   $display("ERROR : Signal hi or lo toggled when it shouldnt ; hi= %h ,lo=%d \n", hi,lo);
   $display("****NOTE : IF YOUR TEST INTEND TO TOGGLE THESE SIGNALS ******\n");
   $display("****  use -sim_run_args=+ctu_mon_off  as run argument******\n");
   finish_test(" Signal toggles when not supposed to", mon_num);
 end
end
end




task finish_test;
input [512:0] message;
input [31:0]   id;

begin
  $display("%0d ERROR: CTU Monitor : %s MONITOR NUMBER : %d", $time, message,mon_num);



  $error ("ctu_mon", "CTU monitor exited") ;
end
endtask


endmodule
module ctu_level_mon (
 hi,
 lo,
 mon_en,
 mon_num,
 off_on

);



  input hi;
  input lo;
  input mon_en;
  input [31:0] mon_num;
  input off_on;


always @(hi or lo) 
begin
if ( !$test$plusargs("ctu_mon_off")) begin
 if ((mon_en == 1'b1)&& (off_on != 1'b1)) begin
   $display("ERROR : Signal hi or lo toggled when it shouldnt ; hi= %h ,lo=%d \n", hi,lo);
   $display("****NOTE : IF YOUR TEST INTEND TO TOGGLE THESE SIGNALS ******\n");
   $display("****  use -sim_run_args=+ctu_mon_off  as run argument******\n");
   finish_test(" Signal toggles when not supposed to", mon_num);
 end
end
end




task finish_test;
input [512:0] message;
input [31:0]   id;

begin
  $display("%0d ERROR: CTU Monitor : %s MONITOR NUMBER : %d", $time, message,mon_num);



  $error ("ctu_mon", "CTU monitor exited") ;
end
endtask


endmodule