data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu/alu.v
1: b"%Error: data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu/alu.v:23: Cannot find file containing module: 'ta181_bar'\nta181_bar U1 (\n^~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu,data/full_repos/permissive/174155074/ta181_bar\n             data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu,data/full_repos/permissive/174155074/ta181_bar.v\n             data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu,data/full_repos/permissive/174155074/ta181_bar.sv\n             ta181_bar\n             ta181_bar.v\n             ta181_bar.sv\n             obj_dir/ta181_bar\n             obj_dir/ta181_bar.v\n             obj_dir/ta181_bar.sv\n%Error: data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu/alu.v:48: Cannot find file containing module: 'ta181_bar'\nta181_bar U2 (\n^~~~~~~~~\n%Error: data/full_repos/permissive/174155074/systems/microprocessors/programable-8-bit-microprocessor/alu/alu.v:73: Cannot find file containing module: 'and2'\nand2 AND1 (\n^~~~\n%Error: Exiting due to 3 error(s)\n"
module alu (
    input  [7:0]    IN_A,
    input  [7:0]    IN_B,
    input           CIN,
    input  [19:15]  ALU_FUNC,
    output [7:0]    OUT8,
    output          C4,
    output          C8,
    output          Z
);


wire CARRY;
wire NOTHING1, NOTHING2;
wire NOTHING3, NOTHING4;
wire AEQB1, AEQB2;

assign C4 = CARRY;

ta181_bar U1 (
    .A3_BAR(IN_A[3]),
    .A2_BAR(IN_A[2]),
    .A1_BAR(IN_A[1]),
    .A0_BAR(IN_A[0]),
    .B3_BAR(IN_B[3]),
    .B2_BAR(IN_B[2]),
    .B1_BAR(IN_B[1]),
    .B0_BAR(IN_B[0]),
    .S3(ALU_FUNC[18]),
    .S2(ALU_FUNC[17]),
    .S1(ALU_FUNC[16]),
    .S0(ALU_FUNC[15]),
    .M(ALU_FUNC[19]),
    .CI(CIN),
    .F3_BAR(OUT8[3]),
    .F2_BAR(OUT8[2]),
    .F1_BAR(OUT8[1]),
    .F0_BAR(OUT8[0]),
    .CO(CARRY),
    .AEQB(AEQB1),
    .P_BAR(NOTHING1),
    .G_BAR(NOTHING2)
);

ta181_bar U2 (
    .A3_BAR(IN_A[7]),
    .A2_BAR(IN_A[6]),
    .A1_BAR(IN_A[5]),
    .A0_BAR(IN_A[4]),
    .B3_BAR(IN_B[7]),
    .B2_BAR(IN_B[6]),
    .B1_BAR(IN_B[5]),
    .B0_BAR(IN_B[4]),
    .S3(ALU_FUNC[18]),
    .S2(ALU_FUNC[17]),
    .S1(ALU_FUNC[16]),
    .S0(ALU_FUNC[15]),
    .M(ALU_FUNC[19]),
    .CI(CARRY),
    .F3_BAR(OUT8[7]),
    .F2_BAR(OUT8[6]),
    .F1_BAR(OUT8[5]),
    .F0_BAR(OUT8[4]),
    .CO(C8),
    .AEQB(AEQB2),
    .P_BAR(NOTHING3),
    .G_BAR(NOTHING4)
);

and2 AND1 (
    .a(AEQB1),
    .b(AEQB2),
    .y(Z)
);

endmodule
module alu (
    input  [7:0]    IN_A,
    input  [7:0]    IN_B,
    input           CIN,
    input  [19:15]  ALU_FUNC,
    output [7:0]    OUT8,
    output          C4,
    output          C8,
    output          Z
);



wire CARRY;
wire NOTHING1, NOTHING2;
wire NOTHING3, NOTHING4;
wire AEQB1, AEQB2;

assign C4 = CARRY;

ta181_bar U1 (
    .A3_BAR(IN_A[3]),
    .A2_BAR(IN_A[2]),
    .A1_BAR(IN_A[1]),
    .A0_BAR(IN_A[0]),
    .B3_BAR(IN_B[3]),
    .B2_BAR(IN_B[2]),
    .B1_BAR(IN_B[1]),
    .B0_BAR(IN_B[0]),
    .S3(ALU_FUNC[18]),
    .S2(ALU_FUNC[17]),
    .S1(ALU_FUNC[16]),
    .S0(ALU_FUNC[15]),
    .M(ALU_FUNC[19]),
    .CI(CIN),
    .F3_BAR(OUT8[3]),
    .F2_BAR(OUT8[2]),
    .F1_BAR(OUT8[1]),
    .F0_BAR(OUT8[0]),
    .CO(CARRY),
    .AEQB(AEQB1),
    .P_BAR(NOTHING1),
    .G_BAR(NOTHING2)
);

ta181_bar U2 (
    .A3_BAR(IN_A[7]),
    .A2_BAR(IN_A[6]),
    .A1_BAR(IN_A[5]),
    .A0_BAR(IN_A[4]),
    .B3_BAR(IN_B[7]),
    .B2_BAR(IN_B[6]),
    .B1_BAR(IN_B[5]),
    .B0_BAR(IN_B[4]),
    .S3(ALU_FUNC[18]),
    .S2(ALU_FUNC[17]),
    .S1(ALU_FUNC[16]),
    .S0(ALU_FUNC[15]),
    .M(ALU_FUNC[19]),
    .CI(CARRY),
    .F3_BAR(OUT8[7]),
    .F2_BAR(OUT8[6]),
    .F1_BAR(OUT8[5]),
    .F0_BAR(OUT8[4]),
    .CO(C8),
    .AEQB(AEQB2),
    .P_BAR(NOTHING3),
    .G_BAR(NOTHING4)
);

and2 AND1 (
    .a(AEQB1),
    .b(AEQB2),
    .y(Z)
);

endmodule