data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v
1: b"%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:43: Cannot find file containing module: 'Factorial_Top'\n    Factorial_Top Top (\n    ^~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new,data/full_repos/permissive/168234415/Factorial_Top\n             data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new,data/full_repos/permissive/168234415/Factorial_Top.v\n             data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new,data/full_repos/permissive/168234415/Factorial_Top.sv\n             Factorial_Top\n             Factorial_Top.v\n             Factorial_Top.sv\n             obj_dir/Factorial_Top\n             obj_dir/Factorial_Top.v\n             obj_dir/Factorial_Top.sv\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:52: Cannot find file containing module: 'button_debouncer'\n    button_debouncer DBNC (\n    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:58: Cannot find file containing module: 'led_mux'\n    led_mux LED (\n    ^~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:73: Cannot find file containing module: 'clk_gen'\n    clk_gen CLK (clk100MHz, dummy, DONT_USE, clk_5KHz);\n    ^~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:75: Cannot find file containing module: 'bin32_to_8hex'\n    bin32_to_8hex B2HEX (\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:87: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED0 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:92: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED1 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:97: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED2 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:102: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED3 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:107: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED4 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:112: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED5 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:117: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED6 (\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_FPGA.v:122: Cannot find file containing module: 'hex_to_7seg'\n    hex_to_7seg H2LED7 (\n    ^~~~~~~~~~~\n%Error: Exiting due to 13 error(s)\n"
module Factorial_FPGA(
    input go, clk100MHz, man_clk,
    input [3:0] n,
    output [7:0] LEDSEL, LEDOUT,
    output done, err,
    output [3:0] n_out
    );
    
    supply1 [7:0] vcc;
    wire DONT_USE, clk_5KHz;
    wire debounced_clk;
    wire [31:0] nf;
    wire dummy;
    assign dummy = 0;
    assign n_out = n;
    

    wire [7:0] LED0, LED1, LED2, LED3, LED4, LED5, LED6, LED7;
    wire [3:0] HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7;     
    
    Factorial_Top Top (
        .Go(go),
        .clk(debounced_clk),
        .Done(done),
        .Err(err),
        .n(n),
        .nf(nf)
     );
    
    button_debouncer DBNC (
        .clk(clk_5KHz),
        .button(man_clk),
        .debounced_button(debounced_clk)
    );
    
    led_mux LED (
        .clk(clk_5KHz),
        .rst(dummy),
        .LED0(LED0),
        .LED1(LED1),
        .LED2(LED2),
        .LED3(LED3),
        .LED4(LED4),
        .LED5(LED5),
        .LED6(LED6),
        .LED7(LED7),
        .LEDSEL(LEDSEL),
        .LEDOUT(LEDOUT)
    );
    
    clk_gen CLK (clk100MHz, dummy, DONT_USE, clk_5KHz);
    
    bin32_to_8hex B2HEX (
        .value(nf),
        .dig0(HEX0),
        .dig1(HEX1),
        .dig2(HEX2),
        .dig3(HEX3),
        .dig4(HEX4),
        .dig5(HEX5),
        .dig6(HEX6),
        .dig7(HEX7)
    );
    
    hex_to_7seg H2LED0 (
        .HEX(HEX0),
        .s(LED0)
    );

    hex_to_7seg H2LED1 (
        .HEX(HEX1),
        .s(LED1)
    );

    hex_to_7seg H2LED2 (
        .HEX(HEX2),
        .s(LED2)
    );

    hex_to_7seg H2LED3 (
        .HEX(HEX3),
        .s(LED3)
    );

    hex_to_7seg H2LED4 (
        .HEX(HEX4),
        .s(LED4)
    );

    hex_to_7seg H2LED5 (
        .HEX(HEX5),
        .s(LED5)
    );

    hex_to_7seg H2LED6 (
        .HEX(HEX6),
        .s(LED6)
    );

    hex_to_7seg H2LED7 (
        .HEX(HEX7),
        .s(LED7)
    );
    
    
    
    
    
    
endmodule
module Factorial_FPGA(
    input go, clk100MHz, man_clk,
    input [3:0] n,
    output [7:0] LEDSEL, LEDOUT,
    output done, err,
    output [3:0] n_out
    );

    
    supply1 [7:0] vcc;
    wire DONT_USE, clk_5KHz;
    wire debounced_clk;
    wire [31:0] nf;
    wire dummy;
    assign dummy = 0;
    assign n_out = n;
    

    wire [7:0] LED0, LED1, LED2, LED3, LED4, LED5, LED6, LED7;
    wire [3:0] HEX0, HEX1, HEX2, HEX3, HEX4, HEX5, HEX6, HEX7;     
    
    Factorial_Top Top (
        .Go(go),
        .clk(debounced_clk),
        .Done(done),
        .Err(err),
        .n(n),
        .nf(nf)
     );
    
    button_debouncer DBNC (
        .clk(clk_5KHz),
        .button(man_clk),
        .debounced_button(debounced_clk)
    );
    
    led_mux LED (
        .clk(clk_5KHz),
        .rst(dummy),
        .LED0(LED0),
        .LED1(LED1),
        .LED2(LED2),
        .LED3(LED3),
        .LED4(LED4),
        .LED5(LED5),
        .LED6(LED6),
        .LED7(LED7),
        .LEDSEL(LEDSEL),
        .LEDOUT(LEDOUT)
    );
    
    clk_gen CLK (clk100MHz, dummy, DONT_USE, clk_5KHz);
    
    bin32_to_8hex B2HEX (
        .value(nf),
        .dig0(HEX0),
        .dig1(HEX1),
        .dig2(HEX2),
        .dig3(HEX3),
        .dig4(HEX4),
        .dig5(HEX5),
        .dig6(HEX6),
        .dig7(HEX7)
    );
    
    hex_to_7seg H2LED0 (
        .HEX(HEX0),
        .s(LED0)
    );

    hex_to_7seg H2LED1 (
        .HEX(HEX1),
        .s(LED1)
    );

    hex_to_7seg H2LED2 (
        .HEX(HEX2),
        .s(LED2)
    );

    hex_to_7seg H2LED3 (
        .HEX(HEX3),
        .s(LED3)
    );

    hex_to_7seg H2LED4 (
        .HEX(HEX4),
        .s(LED4)
    );

    hex_to_7seg H2LED5 (
        .HEX(HEX5),
        .s(LED5)
    );

    hex_to_7seg H2LED6 (
        .HEX(HEX6),
        .s(LED6)
    );

    hex_to_7seg H2LED7 (
        .HEX(HEX7),
        .s(LED7)
    );
    
    
    
    
    
    
endmodule