data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v
1: b"%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:39: Cannot find file containing module: 'Mux16B2to1'\n  Mux16B2to1 zeroBMux(\n  ^~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new,data/full_repos/permissive/42815087/Mux16B2to1\n             data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new,data/full_repos/permissive/42815087/Mux16B2to1.v\n             data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new,data/full_repos/permissive/42815087/Mux16B2to1.sv\n             Mux16B2to1\n             Mux16B2to1.v\n             Mux16B2to1.sv\n             obj_dir/Mux16B2to1\n             obj_dir/Mux16B2to1.v\n             obj_dir/Mux16B2to1.sv\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:48: Cannot find file containing module: 'Neg16B'\n  Neg16B negatorA (\n  ^~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:56: Cannot find file containing module: 'Neg16B'\n  Neg16B negatorB (\n  ^~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:73: Cannot find file containing module: 'RCAdder16B'\n  RCAdder16B rca(\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:82: Cannot find file containing module: 'BarrelShifter16B'\n  BarrelShifter16B shft(\n  ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:95: Cannot find file containing module: 'BitCounter16B'\n  BitCounter16B counter(\n  ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:102: Cannot find file containing module: 'Mux16B8to1'\n  Mux16B8to1 opMux(\n  ^~~~~~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:116: Cannot find file containing module: 'Neg16B'\n  Neg16B negOut(\n  ^~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:123: Cannot find file containing module: 'Buffer16B'\n    Buffer16B buf0(\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/42815087/cpu/SyzygyB100.srcs/sources_1/new/ALU.v:129: Cannot find file containing module: 'Buffer16B'\n  Buffer16B buf1(\n  ^~~~~~~~~\n%Error: Exiting due to 10 error(s)\n"
module ALU(
    input [15:0] aIn,
    input [15:0] bIn,
    input [2:0] op,
    input negA,
    input negB,
    input zeroB, 
    input negQ,
    input arg,
    input arth,
    input rot,
    input misc,
    output [15:0] aluOut
  );
  
  wire [15:0] zeroBOut;
  Mux16B2to1 zeroBMux(
    .aIn(bIn[15:0]),
    .bIn(16'b0000000000000000),
    .sel(zeroB),
    .dOut(zeroBOut[15:0])
  );
  

  wire [15:0] negAOut;
  Neg16B negatorA (
    .dIn(aIn[15:0]),
    .sel(negA),
    .dOut(negAOut[15:0])
  );
  

  wire [15:0] negBOut;
  Neg16B negatorB (
    .dIn(zeroBOut[15:0]),
    .sel(negB),
    .dOut(negBOut[15:0])
  );
  

  wire [15:0] orOut;
  wire [15:0] adderOut;
  wire [15:0] shifterOut;
  wire [15:0] xorOut;
  wire [4:0] countOut;
  

  assign orOut[15:0] = negAOut[15:0] | negBOut[15:0];
  

  RCAdder16B rca(
    .aIn(negAOut[15:0]),
    .bIn(negBOut[15:0]),
    .cIn(arg),
    .dOut(adderOut[15:0]),
    .cOut(overflow)
  );
  

  BarrelShifter16B shft(
    .dIn(negAOut[15:0]),
    .shAmt(negBOut[3:0]),
    .dOut(shifterOut[15:0]),
    .dir(arg),
    .rot(rot),
    .arth(arth)
  );
  

  assign xorOut[15:0] = negAOut[15:0] ^ negBOut[15:0];
  

  BitCounter16B counter(
    .dIn(negAOut[15:0]),
    .dOut(countOut[4:0])
  );
  

  wire [15:0] opMuxOut;
  Mux16B8to1 opMux(
    .dIn0(negAOut[15:0]),
    .dIn1(orOut[15:0]),
    .dIn2(adderOut[15:0]),
    .dIn3(shifterOut[15:0]),
    .dIn4(xorOut[15:0]),
    .dIn5({11'b00000000000, countOut[4:0]}),
    .dIn6(16'b0000000000000000),
    .dIn7(16'b0000000000000000),
    .sel(op[2:0]),
    .dOut(opMuxOut[15:0])
  );
  

  Neg16B negOut(
    .dIn(opMuxOut[15:0]),
    .sel(negQ),
    .dOut(wBuf0[15:0])
  );
  
  wire [15:0] wBuf0;
    Buffer16B buf0(
    .dIn(wBuf0[15:0]),
    .dOut(wBuf1[15:0])
  );
  
  wire [15:0] wBuf1;
  Buffer16B buf1(
    .dIn(wBuf1[15:0]),
    .dOut(aluOut[15:0])
  );
  
  
endmodule
module ALU(
    input [15:0] aIn,
    input [15:0] bIn,
    input [2:0] op,
    input negA,
    input negB,
    input zeroB, 
    input negQ,
    input arg,
    input arth,
    input rot,
    input misc,
    output [15:0] aluOut
  );

  
  wire [15:0] zeroBOut;
  Mux16B2to1 zeroBMux(
    .aIn(bIn[15:0]),
    .bIn(16'b0000000000000000),
    .sel(zeroB),
    .dOut(zeroBOut[15:0])
  );
  

  wire [15:0] negAOut;
  Neg16B negatorA (
    .dIn(aIn[15:0]),
    .sel(negA),
    .dOut(negAOut[15:0])
  );
  

  wire [15:0] negBOut;
  Neg16B negatorB (
    .dIn(zeroBOut[15:0]),
    .sel(negB),
    .dOut(negBOut[15:0])
  );
  

  wire [15:0] orOut;
  wire [15:0] adderOut;
  wire [15:0] shifterOut;
  wire [15:0] xorOut;
  wire [4:0] countOut;
  

  assign orOut[15:0] = negAOut[15:0] | negBOut[15:0];
  

  RCAdder16B rca(
    .aIn(negAOut[15:0]),
    .bIn(negBOut[15:0]),
    .cIn(arg),
    .dOut(adderOut[15:0]),
    .cOut(overflow)
  );
  

  BarrelShifter16B shft(
    .dIn(negAOut[15:0]),
    .shAmt(negBOut[3:0]),
    .dOut(shifterOut[15:0]),
    .dir(arg),
    .rot(rot),
    .arth(arth)
  );
  

  assign xorOut[15:0] = negAOut[15:0] ^ negBOut[15:0];
  

  BitCounter16B counter(
    .dIn(negAOut[15:0]),
    .dOut(countOut[4:0])
  );
  

  wire [15:0] opMuxOut;
  Mux16B8to1 opMux(
    .dIn0(negAOut[15:0]),
    .dIn1(orOut[15:0]),
    .dIn2(adderOut[15:0]),
    .dIn3(shifterOut[15:0]),
    .dIn4(xorOut[15:0]),
    .dIn5({11'b00000000000, countOut[4:0]}),
    .dIn6(16'b0000000000000000),
    .dIn7(16'b0000000000000000),
    .sel(op[2:0]),
    .dOut(opMuxOut[15:0])
  );
  

  Neg16B negOut(
    .dIn(opMuxOut[15:0]),
    .sel(negQ),
    .dOut(wBuf0[15:0])
  );
  
  wire [15:0] wBuf0;
    Buffer16B buf0(
    .dIn(wBuf0[15:0]),
    .dOut(wBuf1[15:0])
  );
  
  wire [15:0] wBuf1;
  Buffer16B buf1(
    .dIn(wBuf1[15:0]),
    .dOut(aluOut[15:0])
  );
  
  
endmodule