data/full_repos/permissive/14593708/control/instruction-decoder.v
1: b"%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:11: Cannot find file containing module: 'register'\n    register#(4) r_opcode(instruction_data[31:28], 1, opcode);\n    ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/14593708/control,data/full_repos/permissive/14593708/register\n             data/full_repos/permissive/14593708/control,data/full_repos/permissive/14593708/register.v\n             data/full_repos/permissive/14593708/control,data/full_repos/permissive/14593708/register.sv\n             register\n             register.v\n             register.sv\n             obj_dir/register\n             obj_dir/register.v\n             obj_dir/register.sv\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:13: Cannot find file containing module: 'register'\n    register#(1) r_type_1(instruction_data[27], 1, input_type_1);\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:14: Cannot find file containing module: 'register'\n    register#(2) r_register_1(instruction_data[26:25], 1,\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:16: Cannot find file containing module: 'register'\n    register#(8) r_immediate_1(instruction_data[26:19], 1,\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:19: Cannot find file containing module: 'register'\n    register#(1) r_type_2(instruction_data[18], 1, input_type_1);\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:20: Cannot find file containing module: 'register'\n    register#(2) r_register_2(instruction_data[17:16], 1,\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:22: Cannot find file containing module: 'register'\n    register#(8) r_immediate_2(instruction_data[17:10], 1,\n    ^~~~~~~~\n%Error: data/full_repos/permissive/14593708/control/instruction-decoder.v:25: Cannot find file containing module: 'register'\n    register#(2) r_output_register(instruction_data[9:8], 1,\n    ^~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module instruction_decoder(input[31:0] instruction_data,
                           output[3:0] opcode,
                           output      input_type_1,
                           output[1:0] input_register_selector_1,
                           output[7:0] input_immediate_1,
                           output      input_type_2,
                           output[1:0] input_register_selector_2,
                           output[7:0] input_immediate_2,
                           output[1:0] output_register_selector);

    register#(4) r_opcode(instruction_data[31:28], 1, opcode);

    register#(1) r_type_1(instruction_data[27], 1, input_type_1);
    register#(2) r_register_1(instruction_data[26:25], 1,
                              input_register_selector_1);
    register#(8) r_immediate_1(instruction_data[26:19], 1,
                               input_immediate_1);

    register#(1) r_type_2(instruction_data[18], 1, input_type_1);
    register#(2) r_register_2(instruction_data[17:16], 1,
                              input_register_selector_2);
    register#(8) r_immediate_2(instruction_data[17:10], 1,
                               input_immediate_2);

    register#(2) r_output_register(instruction_data[9:8], 1,
                                   output_register_selector);

endmodule
module instruction_decoder(input[31:0] instruction_data,
                           output[3:0] opcode,
                           output      input_type_1,
                           output[1:0] input_register_selector_1,
                           output[7:0] input_immediate_1,
                           output      input_type_2,
                           output[1:0] input_register_selector_2,
                           output[7:0] input_immediate_2,
                           output[1:0] output_register_selector);


    register#(4) r_opcode(instruction_data[31:28], 1, opcode);

    register#(1) r_type_1(instruction_data[27], 1, input_type_1);
    register#(2) r_register_1(instruction_data[26:25], 1,
                              input_register_selector_1);
    register#(8) r_immediate_1(instruction_data[26:19], 1,
                               input_immediate_1);

    register#(1) r_type_2(instruction_data[18], 1, input_type_1);
    register#(2) r_register_2(instruction_data[17:16], 1,
                              input_register_selector_2);
    register#(8) r_immediate_2(instruction_data[17:10], 1,
                               input_immediate_2);

    register#(2) r_output_register(instruction_data[9:8], 1,
                                   output_register_selector);

endmodule