data/full_repos/permissive/413230008/Combinational-Circuit Building Blocks/Code/Sources/first_sseg_driver_test.v
1: b'%Error: Cannot find file containing module: Building\n        ... Looked in:\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building.v\n             data/full_repos/permissive/413230008/Combinational-Circuit/Building.sv\n             Building\n             Building.v\n             Building.sv\n             obj_dir/Building\n             obj_dir/Building.v\n             obj_dir/Building.sv\n%Error: Cannot find file containing module: Blocks/Code/Sources,data/full_repos/permissive/413230008\n%Error: Cannot find file containing module: data/full_repos/permissive/413230008/Combinational-Circuit\n%Error: Cannot find file containing module: Blocks/Code/Sources/first_sseg_driver_test.v\n%Error: Exiting due to 4 error(s)\n'
module first_sseg_driver_test(
    input [2:0] active_digit,
    input DP_ctrl,
    output DP,
    output z,
    output [6:0] s,
    output reg [7:0] AN
    );
    assign DP = DP_ctrl;
    
    first_sseg_driver SG0 (
        .num(active_digit),
        .x(z),
        .s(s)
    );
    
    always @(active_digit)
    begin
        AN = 8'b11111111;
        
        if(active_digit == 0)
            AN[0] = 0;
        else if(active_digit == 1)
            AN[1] = 0;
        else if(active_digit == 2)
            AN[2] = 0;
        else if(active_digit == 3)
            AN[3] = 0;
        else if(active_digit == 4)
            AN[4] = 0;
        else if(active_digit == 5)
            AN[5] = 0;
        else if(active_digit == 6)
            AN[6] = 0;
        else
            AN[7] = 0;
    end
endmodule
module first_sseg_driver_test(
    input [2:0] active_digit,
    input DP_ctrl,
    output DP,
    output z,
    output [6:0] s,
    output reg [7:0] AN
    );

    assign DP = DP_ctrl;
    
    first_sseg_driver SG0 (
        .num(active_digit),
        .x(z),
        .s(s)
    );
    
    always @(active_digit)
    begin
        AN = 8'b11111111;
        
        if(active_digit == 0)
            AN[0] = 0;
        else if(active_digit == 1)
            AN[1] = 0;
        else if(active_digit == 2)
            AN[2] = 0;
        else if(active_digit == 3)
            AN[3] = 0;
        else if(active_digit == 4)
            AN[4] = 0;
        else if(active_digit == 5)
            AN[5] = 0;
        else if(active_digit == 6)
            AN[6] = 0;
        else
            AN[7] = 0;
    end
endmodule