data/full_repos/permissive/477054115/Mips16_singlecycle/ALUCtrl.v
1: b'%Warning-MULTITOP: data/full_repos/permissive/477054115/Mips16_singlecycle/ALUCtrl.v:27: Multiple top level modules\n                                                                                       : ... Suggest see manual; fix the duplicates, or use --top-module to select top.\n                   ... Use "/* verilator lint_off MULTITOP */" and lint_on around source to disable this message.\n                                                                                       : ... Top module \'ALUControl\'\n module ALUControl( ALU_Control, ALUOp, Function);  \n        ^~~~~~~~~~\n                                                                                       : ... Top module \'JR_Control\'\nmodule JR_Control( input[1:0] alu_op, \n       ^~~~~~~~~~\n%Error: Exiting due to 1 warning(s)\n'
module ALUControl( ALU_Control, ALUOp, Function);  
 output reg[2:0] ALU_Control;  
 input [1:0] ALUOp;  
 input [3:0] Function;  
 wire [5:0] ALUControlIn;  
 assign ALUControlIn = {ALUOp,Function};  
 always @(ALUControlIn)  
 casex (ALUControlIn)  
  6'b11xxxx: ALU_Control=3'b000;  
  6'b10xxxx: ALU_Control=3'b100;  
  6'b01xxxx: ALU_Control=3'b001;  
  6'b000000: ALU_Control=3'b000;  
  6'b000001: ALU_Control=3'b001;  
  6'b000010: ALU_Control=3'b010;  
  6'b000011: ALU_Control=3'b011;  
  6'b000100: ALU_Control=3'b100;
  6'b000101: ALU_Control=3'b101;
  6'b000110: ALU_Control=3'b110;
  6'b000111: ALU_Control=3'b111;
  default: ALU_Control=3'b000;  
  endcase  
 endmodule
module ALUControl( ALU_Control, ALUOp, Function);
  
 output reg[2:0] ALU_Control;  
 input [1:0] ALUOp;  
 input [3:0] Function;  
 wire [5:0] ALUControlIn;  
 assign ALUControlIn = {ALUOp,Function};  
 always @(ALUControlIn)  
 casex (ALUControlIn)  
  6'b11xxxx: ALU_Control=3'b000;  
  6'b10xxxx: ALU_Control=3'b100;  
  6'b01xxxx: ALU_Control=3'b001;  
  6'b000000: ALU_Control=3'b000;  
  6'b000001: ALU_Control=3'b001;  
  6'b000010: ALU_Control=3'b010;  
  6'b000011: ALU_Control=3'b011;  
  6'b000100: ALU_Control=3'b100;
  6'b000101: ALU_Control=3'b101;
  6'b000110: ALU_Control=3'b110;
  6'b000111: ALU_Control=3'b111;
  default: ALU_Control=3'b000;  
  endcase  
 endmodule