data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v
1: b"%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:30: Cannot find file containing module: 'ButtonDebouncer'\n    ButtonDebouncer upDebouncer(.clk(clk), .buttonState(upBtn), .debouncedPosedgePulse(upPulse));\n    ^~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new,data/full_repos/permissive/423014416/ButtonDebouncer\n             data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new,data/full_repos/permissive/423014416/ButtonDebouncer.v\n             data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new,data/full_repos/permissive/423014416/ButtonDebouncer.sv\n             ButtonDebouncer\n             ButtonDebouncer.v\n             ButtonDebouncer.sv\n             obj_dir/ButtonDebouncer\n             obj_dir/ButtonDebouncer.v\n             obj_dir/ButtonDebouncer.sv\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:31: Cannot find file containing module: 'ButtonDebouncer'\n    ButtonDebouncer dnDebouncer(.clk(clk), .buttonState(downBtn), .debouncedPosedgePulse(downPulse));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:32: Cannot find file containing module: 'ButtonDebouncer'\n    ButtonDebouncer ltDebouncer(.clk(clk), .buttonState(leftBtn), .debouncedPosedgePulse(leftPulse));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:33: Cannot find file containing module: 'ButtonDebouncer'\n    ButtonDebouncer rtDebouncer(.clk(clk), .buttonState(rightBtn), .debouncedPosedgePulse(rightPulse));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:34: Cannot find file containing module: 'ButtonDebouncer'\n    ButtonDebouncer rsDebouncer(.clk(clk), .buttonState(resetBtn), .debouncedNegedgePulse(resetPulse));\n    ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:38: Cannot find file containing module: 'ClockStateStorage'\n    ClockStateStorage clockStateStorage(clk, upPulse, downPulse, leftPulse, rightPulse, resetPulse, second, minute, hour, blink, cursorPos);\n    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:41: Cannot find file containing module: 'TimeDecoder'\n    TimeDecoder timeDecoder(hour, minute, value);\n    ^~~~~~~~~~~\n%Error: data/full_repos/permissive/423014416/MA7_Clock.srcs/sources_1/new/MA7ClockTopModule.v:44: Cannot find file containing module: 'SevenSegmentDisplayDecoder'\n    SevenSegmentDisplayDecoder ssdd(clk, value, decimalPoint, ssd_out, ssd_en);\n    ^~~~~~~~~~~~~~~~~~~~~~~~~~\n%Error: Exiting due to 8 error(s)\n"
module MA7ClockTopModule(

    input clk,

    input upBtn,
    input downBtn,
    input leftBtn,
    input rightBtn,
    input resetBtn,
    
    output [7:0] leds,
    output [7:0] ssd_out,
    output [3:0] ssd_en
);


    wire upPulse, downPulse, leftPulse, rightPulse, resetPulse;
    ButtonDebouncer upDebouncer(.clk(clk), .buttonState(upBtn), .debouncedPosedgePulse(upPulse));
    ButtonDebouncer dnDebouncer(.clk(clk), .buttonState(downBtn), .debouncedPosedgePulse(downPulse));
    ButtonDebouncer ltDebouncer(.clk(clk), .buttonState(leftBtn), .debouncedPosedgePulse(leftPulse));
    ButtonDebouncer rtDebouncer(.clk(clk), .buttonState(rightBtn), .debouncedPosedgePulse(rightPulse));
    ButtonDebouncer rsDebouncer(.clk(clk), .buttonState(resetBtn), .debouncedNegedgePulse(resetPulse));
    
    wire [5:0] second, minute, hour;
    wire blink, cursorPos;
    ClockStateStorage clockStateStorage(clk, upPulse, downPulse, leftPulse, rightPulse, resetPulse, second, minute, hour, blink, cursorPos);
    
    wire [15:0] value;
    TimeDecoder timeDecoder(hour, minute, value);
    
    wire [3:0] decimalPoint = {1'b0, blink, 2'b0};
    SevenSegmentDisplayDecoder ssdd(clk, value, decimalPoint, ssd_out, ssd_en);
    
    assign leds = {cursorPos, 1'b0, second};
    
endmodule
module MA7ClockTopModule(

    input clk,

    input upBtn,
    input downBtn,
    input leftBtn,
    input rightBtn,
    input resetBtn,
    
    output [7:0] leds,
    output [7:0] ssd_out,
    output [3:0] ssd_en
);



    wire upPulse, downPulse, leftPulse, rightPulse, resetPulse;
    ButtonDebouncer upDebouncer(.clk(clk), .buttonState(upBtn), .debouncedPosedgePulse(upPulse));
    ButtonDebouncer dnDebouncer(.clk(clk), .buttonState(downBtn), .debouncedPosedgePulse(downPulse));
    ButtonDebouncer ltDebouncer(.clk(clk), .buttonState(leftBtn), .debouncedPosedgePulse(leftPulse));
    ButtonDebouncer rtDebouncer(.clk(clk), .buttonState(rightBtn), .debouncedPosedgePulse(rightPulse));
    ButtonDebouncer rsDebouncer(.clk(clk), .buttonState(resetBtn), .debouncedNegedgePulse(resetPulse));
    
    wire [5:0] second, minute, hour;
    wire blink, cursorPos;
    ClockStateStorage clockStateStorage(clk, upPulse, downPulse, leftPulse, rightPulse, resetPulse, second, minute, hour, blink, cursorPos);
    
    wire [15:0] value;
    TimeDecoder timeDecoder(hour, minute, value);
    
    wire [3:0] decimalPoint = {1'b0, blink, 2'b0};
    SevenSegmentDisplayDecoder ssdd(clk, value, decimalPoint, ssd_out, ssd_en);
    
    assign leds = {cursorPos, 1'b0, second};
    
endmodule