data/full_repos/permissive/196851857/mips.v
1: b"%Error: data/full_repos/permissive/196851857/mips.v:22: Cannot find file containing module: 'ctrl'\n  ctrl ctrl(\n  ^~~~\n        ... Looked in:\n             data/full_repos/permissive/196851857,data/full_repos/permissive/196851857/ctrl\n             data/full_repos/permissive/196851857,data/full_repos/permissive/196851857/ctrl.v\n             data/full_repos/permissive/196851857,data/full_repos/permissive/196851857/ctrl.sv\n             ctrl\n             ctrl.v\n             ctrl.sv\n             obj_dir/ctrl\n             obj_dir/ctrl.v\n             obj_dir/ctrl.sv\n%Error: data/full_repos/permissive/196851857/mips.v:32: Cannot find file containing module: 'datapath'\n  datapath datapath(\n  ^~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module mips(
  input clk,
  input rst
);

  wire [5:0] opcode, funct;
  wire bit16;

  wire RegWrite;
  wire [1:0] RwIdSrc, RwDataSrc;

  wire MemRead, MemWrite, MemOpType;

  wire [2:0] BranchType;
  wire [1:0] JumpType;

  wire [4:0] AluCtr;
  wire [1:0] AluBSrc;

  wire ExtType, MemDataExtType;

  ctrl ctrl(

    .opcode(opcode), .funct(funct), .bit16(bit16),

    .RegWrite(RegWrite), .RwIdSrc(RwIdSrc),.RwDataSrc(RwDataSrc),
    .MemRead(MemRead), .MemWrite(MemWrite), .MemOpType(MemOpType),
    .BranchType(BranchType), .JumpType(JumpType),
    .AluCtr(AluCtr), .AluBSrc(AluBSrc),
    .ExtType(ExtType), .MemDataExtType(MemDataExtType)
  );
  datapath datapath(

    .clk(clk), .rst(rst),
    
    .RegWrite(RegWrite), .RwIdSrc(RwIdSrc),.RwDataSrc(RwDataSrc),
    .MemRead(MemRead), .MemWrite(MemWrite), .MemOpType(MemOpType),
    .BranchType(BranchType), .JumpType(JumpType),
    .AluCtr(AluCtr), .AluBSrc(AluBSrc),
    .ExtType(ExtType), .MemDataExtType(MemDataExtType),

    .opcode(opcode), .funct(funct), .bit16(bit16)
  );

endmodule
module mips(
  input clk,
  input rst
);


  wire [5:0] opcode, funct;
  wire bit16;

  wire RegWrite;
  wire [1:0] RwIdSrc, RwDataSrc;

  wire MemRead, MemWrite, MemOpType;

  wire [2:0] BranchType;
  wire [1:0] JumpType;

  wire [4:0] AluCtr;
  wire [1:0] AluBSrc;

  wire ExtType, MemDataExtType;

  ctrl ctrl(

    .opcode(opcode), .funct(funct), .bit16(bit16),

    .RegWrite(RegWrite), .RwIdSrc(RwIdSrc),.RwDataSrc(RwDataSrc),
    .MemRead(MemRead), .MemWrite(MemWrite), .MemOpType(MemOpType),
    .BranchType(BranchType), .JumpType(JumpType),
    .AluCtr(AluCtr), .AluBSrc(AluBSrc),
    .ExtType(ExtType), .MemDataExtType(MemDataExtType)
  );
  datapath datapath(

    .clk(clk), .rst(rst),
    
    .RegWrite(RegWrite), .RwIdSrc(RwIdSrc),.RwDataSrc(RwDataSrc),
    .MemRead(MemRead), .MemWrite(MemWrite), .MemOpType(MemOpType),
    .BranchType(BranchType), .JumpType(JumpType),
    .AluCtr(AluCtr), .AluBSrc(AluBSrc),
    .ExtType(ExtType), .MemDataExtType(MemDataExtType),

    .opcode(opcode), .funct(funct), .bit16(bit16)
  );

endmodule