data/full_repos/permissive/165846232/projects/MiniCalc2/MiniCalc2Impl.v
 line:20: before: "="
1: b'%Error: data/full_repos/permissive/165846232/projects/MiniCalc2/MiniCalc2Impl.v:1: Cannot find include file: ../../components/Debouncer/Debouncer.v\n`include "../../components/Debouncer/Debouncer.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/165846232/projects/MiniCalc2,data/full_repos/permissive/165846232/../../components/Debouncer/Debouncer.v\n             data/full_repos/permissive/165846232/projects/MiniCalc2,data/full_repos/permissive/165846232/../../components/Debouncer/Debouncer.v.v\n             data/full_repos/permissive/165846232/projects/MiniCalc2,data/full_repos/permissive/165846232/../../components/Debouncer/Debouncer.v.sv\n             ../../components/Debouncer/Debouncer.v\n             ../../components/Debouncer/Debouncer.v.v\n             ../../components/Debouncer/Debouncer.v.sv\n             obj_dir/../../components/Debouncer/Debouncer.v\n             obj_dir/../../components/Debouncer/Debouncer.v.v\n             obj_dir/../../components/Debouncer/Debouncer.v.sv\n%Error: data/full_repos/permissive/165846232/projects/MiniCalc2/MiniCalc2Impl.v:2: Cannot find include file: ../../components/Synchronizer/Synchronizer.v\n`include "../../components/Synchronizer/Synchronizer.v" \n         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/projects/MiniCalc2/MiniCalc2Impl.v:3: Cannot find include file: MiniCalc2.v\n`include "MiniCalc2.v" \n         ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/165846232/projects/MiniCalc2/MiniCalc2Impl.v:26: syntax error, unexpected \'(\', expecting IDENTIFIER\n                .Clk(Clk),\n                ^\n%Error: Exiting due to 4 error(s)\n'
module MiniCalc2Impl
(
    input wire Clk,
    input wire [3:0] Btn,
    input wire [7:0] Switch,
    output wire [0:7] LED,
    output wire [0:6] IO_LED1,
    output wire [0:6] IO_LED2,
    output wire [0:6] IO_LED3,
    output wire [0:6] IO_LED4,
    input wire IO_RXD,
    output wire IO_TXD
);

    wire [3:0] BtnDebounced;
    wire [7:0] SwitchSync;
     
    genvar gi;
    generate
        for (gi=0; gi<=7; gi=gi+1) begin : genSynchronizer
            Synchronizer (
                .Clk(Clk),
                .Input(Switch[gi]),
                .Output(SwitchSync[gi])
            );
        end
    endgenerate
    
    generate
        for (gi=0; gi<=3; gi=gi+1) begin : genDebouncer
            Debouncer debounce0(
                .Clk(Clk),
                .Input(!Btn[gi]),
                .Output(BtnDebounced[gi])
            );
        end
    endgenerate
    
    MiniCalc2 miniCalc2 (
        .Clk(Clk),
        .UartTxWire(IO_TXD),
        .UartRxWire(IO_RXD),
        .Switch(SwitchSync),
        .BtnPushLow(BtnDebounced[1]),
        .BtnPushHi(BtnDebounced[2]),
        .BtnExecute(BtnDebounced[3]),
        .BtnOutputHi(!Btn[0]),
        .LED(LED),
        .LEDDisp3(IO_LED1[0:6]),
        .LEDDisp2(IO_LED2[0:6]),
        .LEDDisp1(IO_LED3[0:6]),
        .LEDDisp0(IO_LED4[0:6])
    );

endmodule
module MiniCalc2Impl
(
    input wire Clk,
    input wire [3:0] Btn,
    input wire [7:0] Switch,
    output wire [0:7] LED,
    output wire [0:6] IO_LED1,
    output wire [0:6] IO_LED2,
    output wire [0:6] IO_LED3,
    output wire [0:6] IO_LED4,
    input wire IO_RXD,
    output wire IO_TXD
);


    wire [3:0] BtnDebounced;
    wire [7:0] SwitchSync;
     
    genvar gi;
    generate
        for (gi=0; gi<=7; gi=gi+1) begin : genSynchronizer
            Synchronizer (
                .Clk(Clk),
                .Input(Switch[gi]),
                .Output(SwitchSync[gi])
            );
        end
    endgenerate
    
    generate
        for (gi=0; gi<=3; gi=gi+1) begin : genDebouncer
            Debouncer debounce0(
                .Clk(Clk),
                .Input(!Btn[gi]),
                .Output(BtnDebounced[gi])
            );
        end
    endgenerate
    
    MiniCalc2 miniCalc2 (
        .Clk(Clk),
        .UartTxWire(IO_TXD),
        .UartRxWire(IO_RXD),
        .Switch(SwitchSync),
        .BtnPushLow(BtnDebounced[1]),
        .BtnPushHi(BtnDebounced[2]),
        .BtnExecute(BtnDebounced[3]),
        .BtnOutputHi(!Btn[0]),
        .LED(LED),
        .LEDDisp3(IO_LED1[0:6]),
        .LEDDisp2(IO_LED2[0:6]),
        .LEDDisp1(IO_LED3[0:6]),
        .LEDDisp0(IO_LED4[0:6])
    );

endmodule