data/full_repos/permissive/444559342/mp2/hdl/control.sv
1: b"%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:1: syntax error, unexpected IDENTIFIER, expecting PACKAGE-IDENTIFIER or STRING\nimport rv32i_types::*;  \n       ^~~~~~~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:16: syntax error, unexpected ::, expecting ')' or ','\n    output pcmux::pcmux_sel_t pcmux_sel,\n                ^~\n                                                                  : ... Perhaps 'pcmux' is a package which needs to be predeclared? (IEEE 1800-2017 26.3)\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:25: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic load_ir,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:26: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic load_regfile,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:27: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic load_mar,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:28: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic load_mdr,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:29: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic load_data_out,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:30: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic mem_read,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:31: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic mem_write,\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:32: syntax error, unexpected output, expecting IDENTIFIER or '=' or do or final\n    output logic [3:0] mem_byte_enable\n    ^~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:33: syntax error, unexpected ')', expecting ',' or ';'\n);\n^\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:40: syntax error, unexpected IDENTIFIER\nbranch_funct3_t branch_funct3;\n^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:136: syntax error, unexpected ::, expecting ';'\n  pcmux_sel = pcmux::pc_plus4;\n                   ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:137: syntax error, unexpected ::, expecting ';'\n  alumux1_sel = alumux::rs1_out;\n                      ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:138: syntax error, unexpected ::, expecting ';'\n    alumux2_sel = alumux::i_imm;\n                        ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:139: syntax error, unexpected ::, expecting ';'\n    regfilemux_sel = regfilemux::alu_out;\n                               ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:140: syntax error, unexpected ::, expecting ';'\n    marmux_sel = marmux::pc_out;\n                       ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:141: syntax error, unexpected ::, expecting ';'\n    cmpmux_sel = cmpmux::rs2_out;\n                       ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:153: syntax error, unexpected ::, expecting ')'\nfunction void loadPC(pcmux::pcmux_sel_t sel);\n                          ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:158: syntax error, unexpected ::, expecting ')'\nfunction void loadRegfile(regfilemux::regfilemux_sel_t sel);\n                                    ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:163: syntax error, unexpected ::, expecting ')'\nfunction void loadMAR(marmux::marmux_sel_t sel);\n                            ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:184: syntax error, unexpected ::, expecting ')'\nfunction void setALU(alumux::alumux1_sel_t sel1,\n                           ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:186: syntax error, unexpected IDENTIFIER, expecting ',' or ';'\n                     logic setop = 1'b0, alu_ops op = alu_add);\n                                                 ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:196: syntax error, unexpected ::, expecting ')'\nfunction automatic void setCMP(cmpmux::cmpmux_sel_t sel, branch_funct3_t op = beq, logic setop = 1'b0);\n                                     ^~\n%Error: data/full_repos/permissive/444559342/mp2/hdl/control.sv:196: syntax error, unexpected ')', expecting ',' or ';'\nfunction automatic void setCMP(cmpmux::cmpmux_sel_t sel, branch_funct3_t op = beq, logic setop = 1'b0);\n                                                                                                     ^\n%Error: Exiting due to 25 error(s)\n"
function void set_defaults();
	 load_pc = 1'b0;
    load_ir = 1'b0;
    load_regfile = 1'b0;
    load_mar = 1'b0;
    load_mdr = 1'b0;
    load_data_out = 1'b0;
	 pcmux_sel = pcmux::pc_plus4;
	 alumux1_sel = alumux::rs1_out;
    alumux2_sel = alumux::i_imm;
    regfilemux_sel = regfilemux::alu_out;
    marmux_sel = marmux::pc_out;
    cmpmux_sel = cmpmux::rs2_out;
	 aluop = alu_add;
	 cmpop = beq;
	 mem_read = 1'b0;
    mem_write = 1'b0;
	 mem_byte_enable = 4'b1111;
endfunction
function void set_defaults();

	 load_pc = 1'b0;
    load_ir = 1'b0;
    load_regfile = 1'b0;
    load_mar = 1'b0;
    load_mdr = 1'b0;
    load_data_out = 1'b0;
	 pcmux_sel = pcmux::pc_plus4;
	 alumux1_sel = alumux::rs1_out;
    alumux2_sel = alumux::i_imm;
    regfilemux_sel = regfilemux::alu_out;
    marmux_sel = marmux::pc_out;
    cmpmux_sel = cmpmux::rs2_out;
	 aluop = alu_add;
	 cmpop = beq;
	 mem_read = 1'b0;
    mem_write = 1'b0;
	 mem_byte_enable = 4'b1111;
endfunction