data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv
1: b'%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:3: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\nimport mult_types::*;\n       ^~~~~~~~~~\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:11: syntax error, unexpected \'@\', expecting \';\'\ndefault clocking mon_clk @(negedge itf.monclk); endclocking\n                         ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:15: syntax error, unexpected \'@\'\n    @(mon_clk);\n    ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:17: syntax error, unexpected $display\n        $display("MON: Reset detected at time %0t with", $time,\n        ^~~~~~~~\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:19: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.tr_time = itf.timestamp;\n                   ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:20: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.tr_type = RESET;\n                   ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:21: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.op1 = 0;\n               ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:22: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.op2 = 0;\n               ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:24: syntax error, unexpected \'.\', expecting IDENTIFIER\n        itf.transbox.put(tr);\n                    ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:29: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.tr_time = itf.timestamp;\n                   ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:30: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.tr_type = MULT_START;\n                   ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:31: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.op1 = mitf.multiplicand;\n               ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:32: syntax error, unexpected \'=\', expecting IDENTIFIER\n        tr.op2 = mitf.multiplier;\n               ^\n%Error: data/full_repos/permissive/444559342/mp1/multiplier/grading/transaction_monitor.sv:34: syntax error, unexpected \'.\', expecting IDENTIFIER\n        itf.transbox.put(tr);\n                    ^\n%Error: Cannot continue\n'
module transaction_monitor(
    grader_itf.TrMon itf,
    multiplier_itf mitf
);

default clocking mon_clk @(negedge itf.monclk); endclocking
initial forever begin
    automatic trans_t tr;
    operand_t op1, op2;
    @(mon_clk);
    if (!mitf.reset_n) begin
        $display("MON: Reset detected at time %0t with", $time,
                " multiplier in state: %s", mitf.mult_op.name);
        tr.tr_time = itf.timestamp;
        tr.tr_type = RESET;
        tr.op1 = 0;
        tr.op2 = 0;
        $display("MON: Reset sent at time %0t", $time);
        itf.transbox.put(tr);
    end
    else if (mitf.start) begin


        tr.tr_time = itf.timestamp;
        tr.tr_type = MULT_START;
        tr.op1 = mitf.multiplicand;
        tr.op2 = mitf.multiplier;
        $display("MON: Start sent at time %0t", $time);
        itf.transbox.put(tr);
    end
end

endmodule
module transaction_monitor(
    grader_itf.TrMon itf,
    multiplier_itf mitf
);


default clocking mon_clk @(negedge itf.monclk); endclocking
initial forever begin
    automatic trans_t tr;
    operand_t op1, op2;
    @(mon_clk);
    if (!mitf.reset_n) begin
        $display("MON: Reset detected at time %0t with", $time,
                " multiplier in state: %s", mitf.mult_op.name);
        tr.tr_time = itf.timestamp;
        tr.tr_type = RESET;
        tr.op1 = 0;
        tr.op2 = 0;
        $display("MON: Reset sent at time %0t", $time);
        itf.transbox.put(tr);
    end
    else if (mitf.start) begin


        tr.tr_time = itf.timestamp;
        tr.tr_type = MULT_START;
        tr.op1 = mitf.multiplicand;
        tr.op2 = mitf.multiplier;
        $display("MON: Start sent at time %0t", $time);
        itf.transbox.put(tr);
    end
end

endmodule