data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v
1: b'%Error: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:23: Cannot find include file: modulos/norGate.v\n`include "modulos/norGate.v" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/100331186/tarea3/pruebas,data/full_repos/permissive/100331186/modulos/norGate.v\n             data/full_repos/permissive/100331186/tarea3/pruebas,data/full_repos/permissive/100331186/modulos/norGate.v.v\n             data/full_repos/permissive/100331186/tarea3/pruebas,data/full_repos/permissive/100331186/modulos/norGate.v.sv\n             modulos/norGate.v\n             modulos/norGate.v.v\n             modulos/norGate.v.sv\n             obj_dir/modulos/norGate.v\n             obj_dir/modulos/norGate.v.v\n             obj_dir/modulos/norGate.v.sv\n%Error: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:29: Unsupported or unknown PLI call: $dumpfile\n    $dumpfile("tests/testNorGate.vcd");\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:30: Unsupported or unknown PLI call: $dumpvars\n    $dumpvars(0, testNorGate);\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:40: Unsupported or unknown PLI call: $monitor\n    $monitor("%t | %b | %b | %b | %f ns", $time, a, b, y, retardo);\n    ^~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:50: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 0;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:51: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 1\'bx;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:52: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:53: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:56: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 1\'bx;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:57: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:58: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:59: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:62: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:63: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 1\'bx;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:64: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:65: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:68: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 1\'bx;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:69: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:70: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:71: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:74: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:75: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:76: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:77: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:80: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:81: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:82: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:83: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:86: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:87: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:88: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:89: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:92: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 a = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:93: Unsupported: Ignoring delay on this delayed statement.\n    # 0 b = 1;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:94: Unsupported: Ignoring delay on this delayed statement.\n    # 0 retardo = 0;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:95: Unsupported: Ignoring delay on this delayed statement.\n    # 0 inicio = $realtime;\n    ^\n%Warning-STMTDLY: data/full_repos/permissive/100331186/tarea3/pruebas/testNorGate.v:98: Unsupported: Ignoring delay on this delayed statement.\n    # 1000 $finish;\n    ^\n%Error: Exiting due to 4 error(s), 33 warning(s)\n'
module testNorGate;
  initial begin
    $display ("testNorGate");
    $dumpfile("tests/testNorGate.vcd");
    $dumpvars(0, testNorGate);
  end

  reg a, b;
  wire y;

  realtime inicio, retardo;

  initial begin
    inicio = $realtime;
    $monitor("%t | %b | %b | %b | %f ns", $time, a, b, y, retardo);

    $display("------------------------------------------");
    $display("Test para la compuerta NOR");
    $display("---------------------+---+---+---+--------");
    $display("              Tiempo | a | b | y | Retardo");
    $display("---------------------+---+---+---+--------");

    $display("x nor x = x");

    # 1000 a = 0;
    # 0 b = 1'bx;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor x = x");

    # 1000 a = 1'bx;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("x nor 0 = x");

    # 1000 a = 1;
    # 0 b = 1'bx;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor x = 0");

    # 1000 a = 1'bx;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("x nor 1 = 0");

    # 1000 a = 0;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor 0 = 1");

    # 1000 a = 1;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor 0 = 0");

    # 1000 a = 0;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor 1 = 0");

    # 1000 a = 1;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor 1 = 0");

    # 1000 $finish;
  end

  always @ (y) begin
    retardo = $realtime-inicio;
  end

  norGate norGate1 (.a(a), .b(b), .y(y));
endmodule
module testNorGate;

  initial begin
    $display ("testNorGate");
    $dumpfile("tests/testNorGate.vcd");
    $dumpvars(0, testNorGate);
  end

  reg a, b;
  wire y;

  realtime inicio, retardo;

  initial begin
    inicio = $realtime;
    $monitor("%t | %b | %b | %b | %f ns", $time, a, b, y, retardo);

    $display("------------------------------------------");
    $display("Test para la compuerta NOR");
    $display("---------------------+---+---+---+--------");
    $display("              Tiempo | a | b | y | Retardo");
    $display("---------------------+---+---+---+--------");

    $display("x nor x = x");

    # 1000 a = 0;
    # 0 b = 1'bx;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor x = x");

    # 1000 a = 1'bx;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("x nor 0 = x");

    # 1000 a = 1;
    # 0 b = 1'bx;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor x = 0");

    # 1000 a = 1'bx;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("x nor 1 = 0");

    # 1000 a = 0;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor 0 = 1");

    # 1000 a = 1;
    # 0 b = 0;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor 0 = 0");

    # 1000 a = 0;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("0 nor 1 = 0");

    # 1000 a = 1;
    # 0 b = 1;
    # 0 retardo = 0;
    # 0 inicio = $realtime;
    $display("1 nor 1 = 0");

    # 1000 $finish;
  end

  always @ (y) begin
    retardo = $realtime-inicio;
  end

  norGate norGate1 (.a(a), .b(b), .y(y));
endmodule