data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v
1: b"%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:45: Cannot find file containing module: 'Stack'\n    Stack s(size,top,BtnU,BtnC,SW,BtnD,clk);\n    ^~~~~\n        ... Looked in:\n             data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new,data/full_repos/permissive/423958267/Stack\n             data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new,data/full_repos/permissive/423958267/Stack.v\n             data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new,data/full_repos/permissive/423958267/Stack.sv\n             Stack\n             Stack.v\n             Stack.sv\n             obj_dir/Stack\n             obj_dir/Stack.v\n             obj_dir/Stack.sv\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:53: Cannot find file containing module: 'Button'\n    Button bc(BtnC,btnC,clk);\n    ^~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:54: Cannot find file containing module: 'Button'\n    Button bu(BtnU,btnU,clk);\n    ^~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:55: Cannot find file containing module: 'Button'\n    Button bd(BtnD,btnD,clk);\n    ^~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:60: Cannot find file containing module: 'Switch'\n            Switch s(SW[i],sw[i],clk);\n            ^~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:69: Cannot find file containing module: 'Counter'\n    Counter #(20) c(counter,nreset,clk);\n    ^~~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:73: Cannot find file containing module: 'Mux4to1'\n    Mux4to1 #(4) mx(d,q,digit0,digit1,digit2,digit3);\n    ^~~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:74: Cannot find file containing module: 'Decoder4'\n    Decoder4 dec(sel,q);\n    ^~~~~~~~\n%Error: data/full_repos/permissive/423958267/lab04_1/lab04_1.srcs/sources_1/imports/sources_1/imports/new/main.v:75: Cannot find file containing module: 'HexTo7Seg'\n    HexTo7Seg h(seg,d);\n    ^~~~~~~~~\n%Error: Exiting due to 9 error(s)\n"
module main(
    output wire [6:0] seg,
    output wire [3:0] an,

    input btnC,
    input btnU,
    input btnD,
    input [7:0] sw,
    input clk
);
    wire [1:0] q;
    wire d0,d1;
    wire [3:0] d;
    wire [3:0] digit0,digit1,digit2,digit3;
    wire [3:0] sel;
    wire [19:0] counter;

    wire [7:0] SW;
    wire [7:0] size,top;

    reg nreset;
    
    Stack s(size,top,BtnU,BtnC,SW,BtnD,clk);
    
    assign digit0 = top[3:0];
    assign digit1 = top[7:4];
    
    assign digit2 = size[3:0];
    assign digit3 = size[7:4];

    Button bc(BtnC,btnC,clk);
    Button bu(BtnU,btnU,clk);
    Button bd(BtnD,btnD,clk);
    
    genvar i;
    generate
        for(i = 0; i < 8; i = i+1) begin
            Switch s(SW[i],sw[i],clk);
        end
    endgenerate

    assign q = {counter[19],counter[18]};

    assign an = ~sel;
    
    initial nreset <= 1;
    Counter #(20) c(counter,nreset,clk);



    Mux4to1 #(4) mx(d,q,digit0,digit1,digit2,digit3);
    Decoder4 dec(sel,q);
    HexTo7Seg h(seg,d);

endmodule
module main(
    output wire [6:0] seg,
    output wire [3:0] an,

    input btnC,
    input btnU,
    input btnD,
    input [7:0] sw,
    input clk
);

    wire [1:0] q;
    wire d0,d1;
    wire [3:0] d;
    wire [3:0] digit0,digit1,digit2,digit3;
    wire [3:0] sel;
    wire [19:0] counter;

    wire [7:0] SW;
    wire [7:0] size,top;

    reg nreset;
    
    Stack s(size,top,BtnU,BtnC,SW,BtnD,clk);
    
    assign digit0 = top[3:0];
    assign digit1 = top[7:4];
    
    assign digit2 = size[3:0];
    assign digit3 = size[7:4];

    Button bc(BtnC,btnC,clk);
    Button bu(BtnU,btnU,clk);
    Button bd(BtnD,btnD,clk);
    
    genvar i;
    generate
        for(i = 0; i < 8; i = i+1) begin
            Switch s(SW[i],sw[i],clk);
        end
    endgenerate

    assign q = {counter[19],counter[18]};

    assign an = ~sel;
    
    initial nreset <= 1;
    Counter #(20) c(counter,nreset,clk);



    Mux4to1 #(4) mx(d,q,digit0,digit1,digit2,digit3);
    Decoder4 dec(sel,q);
    HexTo7Seg h(seg,d);

endmodule