data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_Top.v
1: b"%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_Top.v:34: Cannot find file containing module: 'Factorial_DP'\n    Factorial_DP DP (\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_DP\n             data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new,data/full_repos/permissive/168234415/Factorial_DP.v\n             data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new,data/full_repos/permissive/168234415/Factorial_DP.sv\n             Factorial_DP\n             Factorial_DP.v\n             Factorial_DP.sv\n             obj_dir/Factorial_DP\n             obj_dir/Factorial_DP.v\n             obj_dir/Factorial_DP.sv\n%Error: data/full_repos/permissive/168234415/A1_Factorial_Accelerator/CMPE140_Assignment1.srcs/sources_1/new/Factorial_Top.v:47: Cannot find file containing module: 'Factorial_CU'\n    Factorial_CU CU (\n    ^~~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module Factorial_Top(
    input Go, clk,
    input [3:0] n,
    output Done, Err,
    output [31:0] nf
    );
    
    wire Sel, Load_Reg, Load_Cnt, OE, En;
    wire GT_Fact, GT_Input;
    
    
    Factorial_DP DP (
        .Clk(clk),
        .En(En),
        .n(n),
        .Sel(Sel),
        .Load_Reg(Load_Reg),
        .Load_Cnt(Load_Cnt),
        .OE(OE),
        .GT_Fact(GT_Fact),
        .GT_Input(GT_Input),
        .nf(nf)
    );
    
    Factorial_CU CU (
        .En(En),
        .go(Go),
        .clk(clk),
        .Sel(Sel),
        .Load_Reg(Load_Reg),
        .Load_Cnt(Load_Cnt),
        .OE(OE),
        .GT_Fact(GT_Fact),
        .GT_Input(GT_Input),
        .Done(Done),
        .Err(Err)
    );
endmodule
module Factorial_Top(
    input Go, clk,
    input [3:0] n,
    output Done, Err,
    output [31:0] nf
    );

    
    wire Sel, Load_Reg, Load_Cnt, OE, En;
    wire GT_Fact, GT_Input;
    
    
    Factorial_DP DP (
        .Clk(clk),
        .En(En),
        .n(n),
        .Sel(Sel),
        .Load_Reg(Load_Reg),
        .Load_Cnt(Load_Cnt),
        .OE(OE),
        .GT_Fact(GT_Fact),
        .GT_Input(GT_Input),
        .nf(nf)
    );
    
    Factorial_CU CU (
        .En(En),
        .go(Go),
        .clk(clk),
        .Sel(Sel),
        .Load_Reg(Load_Reg),
        .Load_Cnt(Load_Cnt),
        .OE(OE),
        .GT_Fact(GT_Fact),
        .GT_Input(GT_Input),
        .Done(Done),
        .Err(Err)
    );
endmodule