data/full_repos/permissive/469509877/rtl/HorizGap3.v
1: b"%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:42: Cannot find file containing module: 'GapStateMachine'\n    GapStateMachine GapStateMachine(.clk(clk), .btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(WallEdgeDetect), .SlugRedDetect(RedDetect), \n    ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachine\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachine.v\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/GapStateMachine.sv\n             GapStateMachine\n             GapStateMachine.v\n             GapStateMachine.sv\n             obj_dir/GapStateMachine\n             obj_dir/GapStateMachine.v\n             obj_dir/GapStateMachine.sv\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:46: Cannot find file containing module: 'GapWallDetect'\n    GapWallDetect GapWallDetect (.DwStartingPosition(DwOut), .UpStartingPosition(UpOut), .Upper(10'b0000001000), \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:48: Cannot find file containing module: 'EdgeDetector'\n    EdgeDetector EdgeDetector (.btn(WallDetect), .clkin(clk), .out(WallEdgeDetect));                             \n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:50: Cannot find file containing module: 'SlugRedDetect'\n    SlugRedDetect SlugRedDetect (.Green(Green), .Red(RedOut), .Hcount(Vcount), .LowerRange(10'b0010110010), .UpperRange(10'b0010111001), .SlugRedDetect(RedDetect));\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:52: Cannot find file containing module: 'EdgeDetector'\n    EdgeDetector SecEdge (.btn(sec), .clkin(clk), .out(secEdge));\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:53: Cannot find file containing module: 'countU10'\n    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(secOut));\n    ^~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:54: Cannot find file containing module: 'FlashModule'\n    FlashModule FlashModule (.flash(flash), .sec(secOut[0]), .flashOut(flashOut));                           \n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:56: Cannot find file containing module: 'GapHorizontalComponent'\n    GapHorizontalComponent GapHorizontalComponent (.Hcount(Vcount), .RedIn(RedIn), .RedOut(RedHoriz),\n    ^~~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/HorizGap3.v:59: Cannot find file containing module: 'GapVerticalComponent'\n    GapVerticalComponent GapVerticalComponent (.Vcount(Hcount), .RedIn(RedIn), .clk(clk), .sw({sw[6], sw[5], sw[4]}), .Up(dir1Out), .Dw(dir2Out), .frame(frame), \n    ^~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 9 error(s)\n"
module HorizGap3(
    input [9:0] Hcount,
    input [9:0] Vcount,
    input btnC,
    input clk,
    input [6:4] sw,
    input frame,
    input sec,
    input btnUDLR,
    input reset,
    input [3:0] Green,
    input [3:0] RedIn,
    output [3:0] RedOut
    );
    
    wire [3:0] RedHoriz, RedVert;
    wire loadOut, resetOut, dir1Out, dir2Out, WallDetect, WallEdgeDetect, RedDetect, flash, flashOut, secEdge;
    wire [9:0] UpOut, DwOut, secOut;
    
    GapStateMachine GapStateMachine(.clk(clk), .btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(WallEdgeDetect), .SlugRedDetect(RedDetect), 
                                    .load(loadOut), .reset(resetOut), .dir1(dir1Out), .dir2(dir2Out), .flash(flash));
                             
                                    
    GapWallDetect GapWallDetect (.DwStartingPosition(DwOut), .UpStartingPosition(UpOut), .Upper(10'b0000001000), 
                                 .Lower(10'b01001110111), .GapWallDetect(WallDetect));
    EdgeDetector EdgeDetector (.btn(WallDetect), .clkin(clk), .out(WallEdgeDetect));                             
                               
    SlugRedDetect SlugRedDetect (.Green(Green), .Red(RedOut), .Hcount(Vcount), .LowerRange(10'b0010110010), .UpperRange(10'b0010111001), .SlugRedDetect(RedDetect));
    
    EdgeDetector SecEdge (.btn(sec), .clkin(clk), .out(secEdge));
    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(secOut));
    FlashModule FlashModule (.flash(flash), .sec(secOut[0]), .flashOut(flashOut));                           
    
    GapHorizontalComponent GapHorizontalComponent (.Hcount(Vcount), .RedIn(RedIn), .RedOut(RedHoriz),
                                                   .LeftStartingPosition(10'b0010110010), 
                                                   .RightStartingPosition(10'b0010111001));
    GapVerticalComponent GapVerticalComponent (.Vcount(Hcount), .RedIn(RedIn), .clk(clk), .sw({sw[6], sw[5], sw[4]}), .Up(dir1Out), .Dw(dir2Out), .frame(frame), 
                                               .reset(resetOut), .load(loadOut), .UpStartingPosition(10'b0000111110), .RedOut(RedVert), .UpOut(UpOut), .DwOut(DwOut));
    
    assign RedOut[3] = (RedHoriz[3] | (RedVert[3] & ~flashOut));
    assign RedOut[2] = (RedHoriz[2] | (RedVert[2] & ~flashOut));
    assign RedOut[1] = (RedHoriz[1] | (RedVert[1] & ~flashOut));
    assign RedOut[0] = (RedHoriz[0] | (RedVert[0] & ~flashOut));
        
endmodule
module HorizGap3(
    input [9:0] Hcount,
    input [9:0] Vcount,
    input btnC,
    input clk,
    input [6:4] sw,
    input frame,
    input sec,
    input btnUDLR,
    input reset,
    input [3:0] Green,
    input [3:0] RedIn,
    output [3:0] RedOut
    );

    
    wire [3:0] RedHoriz, RedVert;
    wire loadOut, resetOut, dir1Out, dir2Out, WallDetect, WallEdgeDetect, RedDetect, flash, flashOut, secEdge;
    wire [9:0] UpOut, DwOut, secOut;
    
    GapStateMachine GapStateMachine(.clk(clk), .btnUDLR(btnUDLR), .btnC(btnC), .GapWallDetect(WallEdgeDetect), .SlugRedDetect(RedDetect), 
                                    .load(loadOut), .reset(resetOut), .dir1(dir1Out), .dir2(dir2Out), .flash(flash));
                             
                                    
    GapWallDetect GapWallDetect (.DwStartingPosition(DwOut), .UpStartingPosition(UpOut), .Upper(10'b0000001000), 
                                 .Lower(10'b01001110111), .GapWallDetect(WallDetect));
    EdgeDetector EdgeDetector (.btn(WallDetect), .clkin(clk), .out(WallEdgeDetect));                             
                               
    SlugRedDetect SlugRedDetect (.Green(Green), .Red(RedOut), .Hcount(Vcount), .LowerRange(10'b0010110010), .UpperRange(10'b0010111001), .SlugRedDetect(RedDetect));
    
    EdgeDetector SecEdge (.btn(sec), .clkin(clk), .out(secEdge));
    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(secOut));
    FlashModule FlashModule (.flash(flash), .sec(secOut[0]), .flashOut(flashOut));                           
    
    GapHorizontalComponent GapHorizontalComponent (.Hcount(Vcount), .RedIn(RedIn), .RedOut(RedHoriz),
                                                   .LeftStartingPosition(10'b0010110010), 
                                                   .RightStartingPosition(10'b0010111001));
    GapVerticalComponent GapVerticalComponent (.Vcount(Hcount), .RedIn(RedIn), .clk(clk), .sw({sw[6], sw[5], sw[4]}), .Up(dir1Out), .Dw(dir2Out), .frame(frame), 
                                               .reset(resetOut), .load(loadOut), .UpStartingPosition(10'b0000111110), .RedOut(RedVert), .UpOut(UpOut), .DwOut(DwOut));
    
    assign RedOut[3] = (RedHoriz[3] | (RedVert[3] & ~flashOut));
    assign RedOut[2] = (RedHoriz[2] | (RedVert[2] & ~flashOut));
    assign RedOut[1] = (RedHoriz[1] | (RedVert[1] & ~flashOut));
    assign RedOut[0] = (RedHoriz[0] | (RedVert[0] & ~flashOut));
        
endmodule