data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v
1: b'%Error: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:14: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("encoder.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:15: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(0, encoder_tb);\n    ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:17: Unsupported: Ignoring delay on this delayed statement.\n    enablen = 1;  numpad = 10\'b0000000010; #10;  \n                                           ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:18: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000000000; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:19: Unsupported: Ignoring delay on this delayed statement.\n    enablen = 0;  numpad = 10\'b0000000000; #10;  \n                                           ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:22: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000000001; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:23: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000000010; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:24: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000000100; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:25: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000001001; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:26: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000001000; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:27: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000010000; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:28: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0000100000; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0001000000; #10;\n                             ^\n%Warning-STMTDLY: data/full_repos/permissive/491294671/timer_input_control/encoder/encoder_tb.v:30: Unsupported: Ignoring delay on this delayed statement.\n    numpad = 10\'b0010000000; #10;\n                             ^\n%Error: Exiting due to 2 error(s), 12 warning(s)\n        ... See the manual and https://verilator.org for more assistance.\n'
module encoder_tb;
  
  reg enablen;
  output loadn;
  output [3:0] saida_encoder;
  reg [9:0] numpad;
  
  codificador_prioridade dut(.saida_cod(saida_encoder), .loadn(loadn), .teclado_microondas(numpad), .enablen(enablen));
  
  initial begin
    
    $dumpfile("encoder.vcd");
    $dumpvars(0, encoder_tb);
    
    enablen = 1;  numpad = 10'b0000000010; #10;
    numpad = 10'b0000000000; #10;
    enablen = 0;  numpad = 10'b0000000000; #10;
    

    numpad = 10'b0000000001; #10;
    numpad = 10'b0000000010; #10;
    numpad = 10'b0000000100; #10;
    numpad = 10'b0000001001; #10;
    numpad = 10'b0000001000; #10;
    numpad = 10'b0000010000; #10;
    numpad = 10'b0000100000; #10;
    numpad = 10'b0001000000; #10;
    numpad = 10'b0010000000; #10;
    
    

    
  end
  
endmodule
module encoder_tb;

  
  reg enablen;
  output loadn;
  output [3:0] saida_encoder;
  reg [9:0] numpad;
  
  codificador_prioridade dut(.saida_cod(saida_encoder), .loadn(loadn), .teclado_microondas(numpad), .enablen(enablen));
  
  initial begin
    
    $dumpfile("encoder.vcd");
    $dumpvars(0, encoder_tb);
    
    enablen = 1;  numpad = 10'b0000000010; #10;
    numpad = 10'b0000000000; #10;
    enablen = 0;  numpad = 10'b0000000000; #10;
    

    numpad = 10'b0000000001; #10;
    numpad = 10'b0000000010; #10;
    numpad = 10'b0000000100; #10;
    numpad = 10'b0000001001; #10;
    numpad = 10'b0000001000; #10;
    numpad = 10'b0000010000; #10;
    numpad = 10'b0000100000; #10;
    numpad = 10'b0001000000; #10;
    numpad = 10'b0010000000; #10;
    
    

    
  end
  
endmodule