data/full_repos/permissive/116468596/taggerMod.v
1: b"%Error: data/full_repos/permissive/116468596/taggerMod.v:36: Cannot find file containing module: 'tenBitCount'\n    tenBitCount horizontal (.clk(clk), .enable( frame & (cntLeft | cntRight)), .up(cntRight), .down(cntLeft), .LD(upDownLD), .reset(1'b0),\n    ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/116468596,data/full_repos/permissive/116468596/tenBitCount\n             data/full_repos/permissive/116468596,data/full_repos/permissive/116468596/tenBitCount.v\n             data/full_repos/permissive/116468596,data/full_repos/permissive/116468596/tenBitCount.sv\n             tenBitCount\n             tenBitCount.v\n             tenBitCount.sv\n             obj_dir/tenBitCount\n             obj_dir/tenBitCount.v\n             obj_dir/tenBitCount.sv\n%Error: data/full_repos/permissive/116468596/taggerMod.v:39: Cannot find file containing module: 'tenBitCount'\n    tenBitCount vertical (.clk(clk), .enable( frame & (cntDown | cntUp)), .up(cntDown), .down(cntUp), .LD(upDownLD), .reset(1'b0),\n    ^~~~~~~~~~~\n%Error: Exiting due to 2 error(s)\n"
module taggerMod(
    input [9:0] hOutQ, 
    input [9:0] vOutQ,
    input frame, syncFlash, activeGreen,
    input clk, upDownLD, leftRightLD, cntUp, cntDown, cntLeft, cntRight,

    output greenSquare,
    output [9:0] xPos,
    output [9:0] yPos,
    output topHit, bottomHit, leftHit, rightHit
    );
    wire [9:0] loadxD;
    wire [9:0] loadyD;
    wire xStop, yStop;
    tenBitCount horizontal (.clk(clk), .enable( frame & (cntLeft | cntRight)), .up(cntRight), .down(cntLeft), .LD(upDownLD), .reset(1'b0),
     .loadD(10'd320), .outQ(xPos));
    
    tenBitCount vertical (.clk(clk), .enable( frame & (cntDown | cntUp)), .up(cntDown), .down(cntUp), .LD(upDownLD), .reset(1'b0),
     .loadD(10'd240), .outQ(yPos));
     
     assign topHit = (yPos == 10'd16);
     assign bottomHit = (yPos == 10'd463);
     assign rightHit = (xPos == 10'd623);
     assign leftHit = (xPos == 10'd16);
      
     assign greenSquare = (activeGreen | syncFlash) & ((hOutQ >= xPos-10'd8) & (hOutQ <= xPos+10'd8)) & ((vOutQ >= yPos-10'd8) & (vOutQ <= yPos+10'd8)); 
     
endmodule
module taggerMod(
    input [9:0] hOutQ, 
    input [9:0] vOutQ,
    input frame, syncFlash, activeGreen,
    input clk, upDownLD, leftRightLD, cntUp, cntDown, cntLeft, cntRight,

    output greenSquare,
    output [9:0] xPos,
    output [9:0] yPos,
    output topHit, bottomHit, leftHit, rightHit
    );

    wire [9:0] loadxD;
    wire [9:0] loadyD;
    wire xStop, yStop;
    tenBitCount horizontal (.clk(clk), .enable( frame & (cntLeft | cntRight)), .up(cntRight), .down(cntLeft), .LD(upDownLD), .reset(1'b0),
     .loadD(10'd320), .outQ(xPos));
    
    tenBitCount vertical (.clk(clk), .enable( frame & (cntDown | cntUp)), .up(cntDown), .down(cntUp), .LD(upDownLD), .reset(1'b0),
     .loadD(10'd240), .outQ(yPos));
     
     assign topHit = (yPos == 10'd16);
     assign bottomHit = (yPos == 10'd463);
     assign rightHit = (xPos == 10'd623);
     assign leftHit = (xPos == 10'd16);
      
     assign greenSquare = (activeGreen | syncFlash) & ((hOutQ >= xPos-10'd8) & (hOutQ <= xPos+10'd8)) & ((vOutQ >= yPos-10'd8) & (vOutQ <= yPos+10'd8)); 
     
endmodule