data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v
1: b'%Error: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:1: Cannot find include file: sr_ff.v\n`include "sr_ff.v"\n         ^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/412284801/sr_ff,data/full_repos/permissive/412284801/sr_ff.v\n             data/full_repos/permissive/412284801/sr_ff,data/full_repos/permissive/412284801/sr_ff.v.v\n             data/full_repos/permissive/412284801/sr_ff,data/full_repos/permissive/412284801/sr_ff.v.sv\n             sr_ff.v\n             sr_ff.v.v\n             sr_ff.v.sv\n             obj_dir/sr_ff.v\n             obj_dir/sr_ff.v.v\n             obj_dir/sr_ff.v.sv\n%Error: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:17: Unsupported or unknown PLI call: $dumpfile\n        $dumpfile("sr_ff.vcd");\n        ^~~~~~~~~\n%Error: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:18: Unsupported or unknown PLI call: $dumpvars\n        $dumpvars(0, sr_ff_tb);\n        ^~~~~~~~~\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:24: Unsupported: Ignoring delay on this delayed statement.\n        #40 s = 1;\n        ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:25: Unsupported: Ignoring delay on this delayed statement.\n        #80 s = 0;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:26: Unsupported: Ignoring delay on this delayed statement.\n        #120 r = 1;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:27: Unsupported: Ignoring delay on this delayed statement.\n        #160 r = 0;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:29: Unsupported: Ignoring delay on this delayed statement.\n        #200 $finish;\n        ^\n%Warning-STMTDLY: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:32: Unsupported: Ignoring delay on this delayed statement.\nalways #10 clk = ~clk;\n       ^\n%Error: data/full_repos/permissive/412284801/sr_ff/sr_ff_tb.v:36: Unsupported or unknown PLI call: $monitor\n        $monitor("time = %0t, s = %b, r = %b, q = %b, q\' = %b", $time, s, r, q, qbar);\n        ^~~~~~~~\n%Error: Exiting due to 4 error(s), 6 warning(s)\n'
module sr_ff_tb();

reg clk, s, r;
wire q, qbar;

sr_ff uut(
    .clk(clk),
    .s(s),
    .r(r),
    .q(q),
    .qbar(qbar)
);

initial begin
        $dumpfile("sr_ff.vcd");
        $dumpvars(0, sr_ff_tb);
        
        s = 1'b0;   
        r = 1'b0;
        clk = 1'b0;

        #40 s = 1;
        #80 s = 0;
        #120 r = 1;
        #160 r = 0;

        #200 $finish;
end

always #10 clk = ~clk;


always @(posedge clk)
        $monitor("time = %0t, s = %b, r = %b, q = %b, q' = %b", $time, s, r, q, qbar);

endmodule
module sr_ff_tb();


reg clk, s, r;
wire q, qbar;

sr_ff uut(
    .clk(clk),
    .s(s),
    .r(r),
    .q(q),
    .qbar(qbar)
);

initial begin
        $dumpfile("sr_ff.vcd");
        $dumpvars(0, sr_ff_tb);
        
        s = 1'b0;   
        r = 1'b0;
        clk = 1'b0;

        #40 s = 1;
        #80 s = 0;
        #120 r = 1;
        #160 r = 0;

        #200 $finish;
end

always #10 clk = ~clk;


always @(posedge clk)
        $monitor("time = %0t, s = %b, r = %b, q = %b, q' = %b", $time, s, r, q, qbar);

endmodule