data/full_repos/permissive/469509877/rtl/SlugGenerator.v
1: b"%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:42: Cannot find file containing module: 'EdgeDetector'\n    EdgeDetector SecEdge (.btn(sec), .clkin(clk), .out(secEdge));\n    ^~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/EdgeDetector\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/EdgeDetector.v\n             data/full_repos/permissive/469509877/rtl,data/full_repos/permissive/469509877/EdgeDetector.sv\n             EdgeDetector\n             EdgeDetector.v\n             EdgeDetector.sv\n             obj_dir/EdgeDetector\n             obj_dir/EdgeDetector.v\n             obj_dir/EdgeDetector.sv\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:43: Cannot find file containing module: 'countU10'\n    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(secOut));\n    ^~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:44: 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/SlugGenerator.v:46: Cannot find file containing module: 'SlugPositionSet'\n    SlugPositionSet SlugPositionSet (.Hcount(Hcount[9:0]), .GreenHoriz(GreenHoriz), .load(load));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:48: Cannot find file containing module: 'btnChecker'\n    btnChecker btnChecker (.Uin(btnU), .Din(btnD), .Rin(btnR), .Lin(btnL), .Uout(btnUchecked), .Dout(btnDchecked), .Rout(btnRchecked), .Lout(btnLchecked));\n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:49: Cannot find file containing module: 'BGCollisionDetector'\n    BGCollisionDetector BGCollisionDetector(.Hcount(Hcount), .Vcount(Vcount), .btnU(btnUchecked), .Green(GreenHoriz & GreenVert), .UpStop(UpStop), .DwStop(DwStop), \n    ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:52: Cannot find file containing module: 'SlugVerticalComponent'\n    SlugVerticalComponent SlugVerticalComponent(.Vcount(Vcount[9:0]), .frame(frame), .clk(clk), .btnU(UpStop), \n    ^~~~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/rtl/SlugGenerator.v:54: Cannot find file containing module: 'SlugHorizontalComponent'\n    SlugHorizontalComponent SlugHorizontalComponent(.Hcount(Hcount[9:0]), .frame(frame), .clk(clk), .btnR(btnRchecked & ~RightStop), \n    ^~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module SlugGenerator(
    input btnU,
    input btnD, 
    input btnL,
    input btnR,
    input reset,
    input frame,
    input sec,
    input clk,
    input flash,
    input [9:0] Hcount,
    input [9:0] Vcount,
    output [3:0] Green
    );
    
    wire GreenVert, GreenHoriz, btnUchecked, btnDchecked, btnRchecked, btnLchecked, load, flashOut, secEdge;
    wire UpStop, DwStop, LeftStop, RightStop;
    wire [9:0] SecOut;
    
    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));    

    SlugPositionSet SlugPositionSet (.Hcount(Hcount[9:0]), .GreenHoriz(GreenHoriz), .load(load));
    
    btnChecker btnChecker (.Uin(btnU), .Din(btnD), .Rin(btnR), .Lin(btnL), .Uout(btnUchecked), .Dout(btnDchecked), .Rout(btnRchecked), .Lout(btnLchecked));
    BGCollisionDetector BGCollisionDetector(.Hcount(Hcount), .Vcount(Vcount), .btnU(btnUchecked), .Green(GreenHoriz & GreenVert), .UpStop(UpStop), .DwStop(DwStop), 
                                            .LeftStop(LeftStop), .RightStop(RightStop));
    
    SlugVerticalComponent SlugVerticalComponent(.Vcount(Vcount[9:0]), .frame(frame), .clk(clk), .btnU(UpStop), 
                                                .btnD(btnDchecked & ~DwStop), .reset(load | reset), .Green(GreenVert));
    SlugHorizontalComponent SlugHorizontalComponent(.Hcount(Hcount[9:0]), .frame(frame), .clk(clk), .btnR(btnRchecked & ~RightStop), 
                                                .btnL(btnLchecked & ~LeftStop), .reset(load | reset), .Green(GreenHoriz));    
    
    assign Green[3] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[2] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[1] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[0] = (GreenVert & GreenHoriz) & ~flashOut;
endmodule
module SlugGenerator(
    input btnU,
    input btnD, 
    input btnL,
    input btnR,
    input reset,
    input frame,
    input sec,
    input clk,
    input flash,
    input [9:0] Hcount,
    input [9:0] Vcount,
    output [3:0] Green
    );

    
    wire GreenVert, GreenHoriz, btnUchecked, btnDchecked, btnRchecked, btnLchecked, load, flashOut, secEdge;
    wire UpStop, DwStop, LeftStop, RightStop;
    wire [9:0] SecOut;
    
    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));    

    SlugPositionSet SlugPositionSet (.Hcount(Hcount[9:0]), .GreenHoriz(GreenHoriz), .load(load));
    
    btnChecker btnChecker (.Uin(btnU), .Din(btnD), .Rin(btnR), .Lin(btnL), .Uout(btnUchecked), .Dout(btnDchecked), .Rout(btnRchecked), .Lout(btnLchecked));
    BGCollisionDetector BGCollisionDetector(.Hcount(Hcount), .Vcount(Vcount), .btnU(btnUchecked), .Green(GreenHoriz & GreenVert), .UpStop(UpStop), .DwStop(DwStop), 
                                            .LeftStop(LeftStop), .RightStop(RightStop));
    
    SlugVerticalComponent SlugVerticalComponent(.Vcount(Vcount[9:0]), .frame(frame), .clk(clk), .btnU(UpStop), 
                                                .btnD(btnDchecked & ~DwStop), .reset(load | reset), .Green(GreenVert));
    SlugHorizontalComponent SlugHorizontalComponent(.Hcount(Hcount[9:0]), .frame(frame), .clk(clk), .btnR(btnRchecked & ~RightStop), 
                                                .btnL(btnLchecked & ~LeftStop), .reset(load | reset), .Green(GreenHoriz));    
    
    assign Green[3] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[2] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[1] = (GreenVert & GreenHoriz) & ~flashOut;
    assign Green[0] = (GreenVert & GreenHoriz) & ~flashOut;
endmodule