data/full_repos/permissive/129155059/03-library/cosa.v
[Errno 2] No such file or directory: 'preprocess.output'
1: b'%Warning-STMTDLY: data/full_repos/permissive/129155059/03-library/cosa.v:120: Unsupported: Ignoring delay on this delayed statement.\n    #1 LE = 0;\n    ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/129155059/03-library/cosa.v:123: Unsupported: Ignoring delay on this delayed statement.\n      #1 Contador = 0;\n      ^\n%Error: data/full_repos/permissive/129155059/03-library/cosa.v:128: Unsupported: Seeding $random doesn\'t map to C++, use $c("srand")\n    oprA = $random(semilla);\n           ^~~~~~~\n%Error: Internal Error: data/full_repos/permissive/129155059/03-library/cosa.v:128: ../V3Ast.cpp:358: Null item passed to setOp1p\n    oprA = $random(semilla);\n         ^\n                        ... See the manual and https://verilator.org for more assistance.\n'
module BancoPruebas;
  reg [7:0] oprA, oprB;
  reg [31:0] Contador;
  reg [`Ndir:0] dir;reg LE;
  integer semilla;
  wire [31:0] dato;
  wire [7:0] Suma;
  wire llevo;

  memTrans m1 (dir, LE, dato);

  assign dato = (~LE)? Contador : 32'bz;


  SUM8 #(1) sumadorRizado (oprA, oprB, 1'b0, Suma, llevo);
  initial begin

    #1 LE = 0;
    Contador = 0;
    for (dir=0; dir<=`NumPwrCntr; dir=dir+1)
      #1 Contador = 0;

    semilla = 0;

    #50
    oprA = $random(semilla);
    oprB = $random(semilla);
    repeat (5000) begin
      #50
      oprB = $random(semilla);
      oprA = $random(semilla);
    end

    #100 LE = 1;
    for (dir=0; dir<=`NumPwrCntr; dir=dir+1) begin
      #1 Contador = dato;
      $display(,,"PwrCntr[%d]: %d", dir, Contador);
    end
  #1 $finish;
  end
endmodule
module BancoPruebas;

  reg [7:0] oprA, oprB;
  reg [31:0] Contador;
  reg [`Ndir:0] dir;reg LE;
  integer semilla;
  wire [31:0] dato;
  wire [7:0] Suma;
  wire llevo;

  memTrans m1 (dir, LE, dato);

  assign dato = (~LE)? Contador : 32'bz;


  SUM8 #(1) sumadorRizado (oprA, oprB, 1'b0, Suma, llevo);
  initial begin

    #1 LE = 0;
    Contador = 0;
    for (dir=0; dir<=`NumPwrCntr; dir=dir+1)
      #1 Contador = 0;

    semilla = 0;

    #50
    oprA = $random(semilla);
    oprB = $random(semilla);
    repeat (5000) begin
      #50
      oprB = $random(semilla);
      oprA = $random(semilla);
    end

    #100 LE = 1;
    for (dir=0; dir<=`NumPwrCntr; dir=dir+1) begin
      #1 Contador = dato;
      $display(,,"PwrCntr[%d]: %d", dir, Contador);
    end
  #1 $finish;
  end
endmodule