data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v
1: b"%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:49: Cannot find file containing module: 'TopStateMachine'\n    TopStateMachine TopStateMachine (.clk(clk), .btnUDLR(btnU | btnR | btnD | btnL), .btnC(btnC), .WinDetect(WinDetect), .LossDetect(LossDetect), .reset(resetTimer),\n    ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new,data/full_repos/permissive/469509877/TopStateMachine\n             data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new,data/full_repos/permissive/469509877/TopStateMachine.v\n             data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new,data/full_repos/permissive/469509877/TopStateMachine.sv\n             TopStateMachine\n             TopStateMachine.v\n             TopStateMachine.sv\n             obj_dir/TopStateMachine\n             obj_dir/TopStateMachine.v\n             obj_dir/TopStateMachine.sv\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:52: Cannot find file containing module: 'LossDetector'\n    LossDetector LossDetector (.Green(GreenIn), .Red(HorizRedOut | VertRedOut), .LossDetect(LossDetect));\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:53: Cannot find file containing module: 'WinDetector'\n    WinDetector WinDetector (.Green(GreenIn), .Hcount(Hcount), .Vcount(Vcount), .WinDetect(WinDetect));\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:55: Cannot find file containing module: 'lab7_clks'\n    lab7_clks not_so_slow (.clkin(clkin), .greset(sw[0]), .clk(clk), .digsel(digsel));\n    ^~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:57: Cannot find file containing module: 'VGAController'\n    VGAController VGAController(.clk(clk), .RedIn(HorizRedOut | VertRedOut), .BlueIn({(BlueIn[3] & ~flashOutBorder),(BlueIn[2] & ~flashOutBorder), (BlueIn[1] & ~flashOutBorder), (BlueIn[0] & ~flashOutBorder)}), .GreenIn({(GreenIn[3] & ~flashOutSlug),(GreenIn[2] & ~flashOutSlug), (GreenIn[1] & ~flashOutSlug), (GreenIn[0] & ~flashOutSlug)}), .Hsync(Hsync), .Vsync(Vsync),\n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:60: Cannot find file containing module: 'BorderGenerator'\n    BorderGenerator BorderGenerator (.Hcount(Hcount), .Vcount(Vcount), .Blue({BlueIn[3:0]}), .flash(flashBorder), .sec(~qsec));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:62: Cannot find file containing module: 'SlugGenerator'\n    SlugGenerator SlugGenerator (.btnU(btnU & btnUDLRenable), .btnD(btnD & btnUDLRenable), .btnL(btnL & btnUDLRenable) , .btnR(btnR & btnUDLRenable), .reset(btnC & btnCenable), .frame(frame), .clk(clk), \n    ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:65: Cannot find file containing module: 'VerticalObstacles'\n    VerticalObstacles VerticalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(VertRedIn));\n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:66: Cannot find file containing module: 'VerticalGaps'\n    VerticalGaps VerticalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), \n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:69: Cannot find file containing module: 'HorizontalObstacles'\n    HorizontalObstacles HorizontalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(HorizRedIn));\n    ^~~~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:70: Cannot find file containing module: 'HorizontalGaps'\n    HorizontalGaps HorizontalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), \n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:73: Cannot find file containing module: 'qsecTicker'\n    qsecTicker qsecTicker (.clk(clk), .frame(frame), .reset(1'b0), .qsec(qsec));                               \n    ^~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:75: Cannot find file containing module: 'Timer'\n    Timer Timer (.clk(clk), .frame(frame), .CE(TimerEnable), .reset(resetTimer), .Q(timerOut[15:0]));\n    ^~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:77: Cannot find file containing module: 'RingCounter'\n    RingCounter RingCounter(.advance(digsel), .clkin(clk), .Q(selInput));\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:78: Cannot find file containing module: 'Selector'\n    Selector Selector(.sel(selInput), .N(timerOut[15:0]), .H(segInput));\n    ^~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:79: Cannot find file containing module: 'hex7seg'\n    hex7seg hex7seg(.n(segInput), .e(1'b1), .seg(seg));                         \n    ^~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:82: Cannot find file containing module: 'EdgeDetector'\n    EdgeDetector SecEdge (.btn(~qsec), .clkin(clk), .out(secEdge));\n    ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:83: Cannot find file containing module: 'countU10'\n    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(SecOutSlug));\n    ^~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:84: Cannot find file containing module: 'FlashModule'\n    FlashModule SlugFlasher (.flash(flashSlug), .sec(SecOutSlug[0]), .flashOut(flashOutSlug)); \n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/469509877/source/slug-cross.srcs/sources_1/new/TopLevel.v:85: Cannot find file containing module: 'FlashModule'\n    FlashModule BorderFlasher (.flash(flashBorder), .sec(SecOutSlug[0]), .flashOut(flashOutBorder)); \n    ^~~~~~~~~~~\n%Error: Exiting due to 20 error(s)\n"
module TopLevel(
    input clkin,
    input btnU,
    input btnD,
    input btnL,
    input btnR,
    input btnC,
    input [15:0] sw,
    output Hsync,
    output Vsync,
    output [3:0] vgaRed,
    output [3:0] vgaBlue,
    output [3:0] vgaGreen,
    output [6:0] seg,
    output dp,
    output [3:0] an
    );
    
    wire clk, digsel, frame, qsec;
    wire secEdge, flashOutSlug, flashOutBorder;
    wire btnCenable, btnUDLRenable, TimerEnable, resetTimer, LossDetect, WinDetect, flashSlug, flashBorder;
    wire [9:0] Hcount, Vcount;
    wire [3:0] BlueIn, GreenIn, RedIn, selInput, segInput, HorizRedOut, VertRedOut, HorizRedIn, VertRedIn, secOut;
    wire [15:0] timerOut;
    wire [9:0] SecOutSlug;
    
    TopStateMachine TopStateMachine (.clk(clk), .btnUDLR(btnU | btnR | btnD | btnL), .btnC(btnC), .WinDetect(WinDetect), .LossDetect(LossDetect), .reset(resetTimer),
                                     .btnCenable(btnCenable), .btnUDLRenable(btnUDLRenable), .TimerEnable(TimerEnable), .flashSlug(flashSlug), .flashBorder(flashBorder));                                               
    
    LossDetector LossDetector (.Green(GreenIn), .Red(HorizRedOut | VertRedOut), .LossDetect(LossDetect));
    WinDetector WinDetector (.Green(GreenIn), .Hcount(Hcount), .Vcount(Vcount), .WinDetect(WinDetect));
    
    lab7_clks not_so_slow (.clkin(clkin), .greset(sw[0]), .clk(clk), .digsel(digsel));
    
    VGAController VGAController(.clk(clk), .RedIn(HorizRedOut | VertRedOut), .BlueIn({(BlueIn[3] & ~flashOutBorder),(BlueIn[2] & ~flashOutBorder), (BlueIn[1] & ~flashOutBorder), (BlueIn[0] & ~flashOutBorder)}), .GreenIn({(GreenIn[3] & ~flashOutSlug),(GreenIn[2] & ~flashOutSlug), (GreenIn[1] & ~flashOutSlug), (GreenIn[0] & ~flashOutSlug)}), .Hsync(Hsync), .Vsync(Vsync),
                   .vgaRed(vgaRed), .vgaBlue(vgaBlue), .vgaGreen(vgaGreen), .Hcount(Hcount), .Vcount(Vcount), .frame(frame));
                   
    BorderGenerator BorderGenerator (.Hcount(Hcount), .Vcount(Vcount), .Blue({BlueIn[3:0]}), .flash(flashBorder), .sec(~qsec));
    
    SlugGenerator SlugGenerator (.btnU(btnU & btnUDLRenable), .btnD(btnD & btnUDLRenable), .btnL(btnL & btnUDLRenable) , .btnR(btnR & btnUDLRenable), .reset(btnC & btnCenable), .frame(frame), .clk(clk), 
                                 .Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Green({GreenIn[3:0]}), .flash(flashSlug), .sec(~qsec));
                                 
    VerticalObstacles VerticalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(VertRedIn));
    VerticalGaps VerticalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), 
                               .sw({sw[6], sw[5], sw[4]}), .RedIn(VertRedIn), .RedOut(VertRedOut), .Green(GreenIn), .sec(qsec));

    HorizontalObstacles HorizontalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(HorizRedIn));
    HorizontalGaps HorizontalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), 
                               .sw({sw[6], sw[5], sw[4]}), .RedIn(HorizRedIn), .RedOut(HorizRedOut), .Green(GreenIn), .sec(qsec));
    
    qsecTicker qsecTicker (.clk(clk), .frame(frame), .reset(1'b0), .qsec(qsec));                               

    Timer Timer (.clk(clk), .frame(frame), .CE(TimerEnable), .reset(resetTimer), .Q(timerOut[15:0]));
    
    RingCounter RingCounter(.advance(digsel), .clkin(clk), .Q(selInput));
    Selector Selector(.sel(selInput), .N(timerOut[15:0]), .H(segInput));
    hex7seg hex7seg(.n(segInput), .e(1'b1), .seg(seg));                         
 
 
    EdgeDetector SecEdge (.btn(~qsec), .clkin(clk), .out(secEdge));
    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(SecOutSlug));
    FlashModule SlugFlasher (.flash(flashSlug), .sec(SecOutSlug[0]), .flashOut(flashOutSlug)); 
    FlashModule BorderFlasher (.flash(flashBorder), .sec(SecOutSlug[0]), .flashOut(flashOutBorder)); 
 

 
 
 assign an[3] =(~selInput[3]) ;
 assign an[2] =(~selInput[2]) ;
 assign an[1] =(~selInput[1]) ;
 assign an[0] =(~selInput[0]) ;
 assign dp =  (~selInput[2]);
                   
endmodule
module TopLevel(
    input clkin,
    input btnU,
    input btnD,
    input btnL,
    input btnR,
    input btnC,
    input [15:0] sw,
    output Hsync,
    output Vsync,
    output [3:0] vgaRed,
    output [3:0] vgaBlue,
    output [3:0] vgaGreen,
    output [6:0] seg,
    output dp,
    output [3:0] an
    );

    
    wire clk, digsel, frame, qsec;
    wire secEdge, flashOutSlug, flashOutBorder;
    wire btnCenable, btnUDLRenable, TimerEnable, resetTimer, LossDetect, WinDetect, flashSlug, flashBorder;
    wire [9:0] Hcount, Vcount;
    wire [3:0] BlueIn, GreenIn, RedIn, selInput, segInput, HorizRedOut, VertRedOut, HorizRedIn, VertRedIn, secOut;
    wire [15:0] timerOut;
    wire [9:0] SecOutSlug;
    
    TopStateMachine TopStateMachine (.clk(clk), .btnUDLR(btnU | btnR | btnD | btnL), .btnC(btnC), .WinDetect(WinDetect), .LossDetect(LossDetect), .reset(resetTimer),
                                     .btnCenable(btnCenable), .btnUDLRenable(btnUDLRenable), .TimerEnable(TimerEnable), .flashSlug(flashSlug), .flashBorder(flashBorder));                                               
    
    LossDetector LossDetector (.Green(GreenIn), .Red(HorizRedOut | VertRedOut), .LossDetect(LossDetect));
    WinDetector WinDetector (.Green(GreenIn), .Hcount(Hcount), .Vcount(Vcount), .WinDetect(WinDetect));
    
    lab7_clks not_so_slow (.clkin(clkin), .greset(sw[0]), .clk(clk), .digsel(digsel));
    
    VGAController VGAController(.clk(clk), .RedIn(HorizRedOut | VertRedOut), .BlueIn({(BlueIn[3] & ~flashOutBorder),(BlueIn[2] & ~flashOutBorder), (BlueIn[1] & ~flashOutBorder), (BlueIn[0] & ~flashOutBorder)}), .GreenIn({(GreenIn[3] & ~flashOutSlug),(GreenIn[2] & ~flashOutSlug), (GreenIn[1] & ~flashOutSlug), (GreenIn[0] & ~flashOutSlug)}), .Hsync(Hsync), .Vsync(Vsync),
                   .vgaRed(vgaRed), .vgaBlue(vgaBlue), .vgaGreen(vgaGreen), .Hcount(Hcount), .Vcount(Vcount), .frame(frame));
                   
    BorderGenerator BorderGenerator (.Hcount(Hcount), .Vcount(Vcount), .Blue({BlueIn[3:0]}), .flash(flashBorder), .sec(~qsec));
    
    SlugGenerator SlugGenerator (.btnU(btnU & btnUDLRenable), .btnD(btnD & btnUDLRenable), .btnL(btnL & btnUDLRenable) , .btnR(btnR & btnUDLRenable), .reset(btnC & btnCenable), .frame(frame), .clk(clk), 
                                 .Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Green({GreenIn[3:0]}), .flash(flashSlug), .sec(~qsec));
                                 
    VerticalObstacles VerticalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(VertRedIn));
    VerticalGaps VerticalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), 
                               .sw({sw[6], sw[5], sw[4]}), .RedIn(VertRedIn), .RedOut(VertRedOut), .Green(GreenIn), .sec(qsec));

    HorizontalObstacles HorizontalObstacles (.Hcount(Hcount[9:0]), .Vcount(Vcount[9:0]), .Red(HorizRedIn));
    HorizontalGaps HorizontalGaps (.Hcount(Hcount), .Vcount(Vcount), .clk(clk), .frame(frame), .btnC(btnC & btnCenable), .btnUDLR((btnU | btnR | btnD | btnL) & btnUDLRenable), 
                               .sw({sw[6], sw[5], sw[4]}), .RedIn(HorizRedIn), .RedOut(HorizRedOut), .Green(GreenIn), .sec(qsec));
    
    qsecTicker qsecTicker (.clk(clk), .frame(frame), .reset(1'b0), .qsec(qsec));                               

    Timer Timer (.clk(clk), .frame(frame), .CE(TimerEnable), .reset(resetTimer), .Q(timerOut[15:0]));
    
    RingCounter RingCounter(.advance(digsel), .clkin(clk), .Q(selInput));
    Selector Selector(.sel(selInput), .N(timerOut[15:0]), .H(segInput));
    hex7seg hex7seg(.n(segInput), .e(1'b1), .seg(seg));                         
 
 
    EdgeDetector SecEdge (.btn(~qsec), .clkin(clk), .out(secEdge));
    countU10 secGenerator(.clk(clk), .Up(secEdge), .Q(SecOutSlug));
    FlashModule SlugFlasher (.flash(flashSlug), .sec(SecOutSlug[0]), .flashOut(flashOutSlug)); 
    FlashModule BorderFlasher (.flash(flashBorder), .sec(SecOutSlug[0]), .flashOut(flashOutBorder)); 
 

 
 
 assign an[3] =(~selInput[3]) ;
 assign an[2] =(~selInput[2]) ;
 assign an[1] =(~selInput[1]) ;
 assign an[0] =(~selInput[0]) ;
 assign dp =  (~selInput[2]);
                   
endmodule