data/full_repos/permissive/424312442/lab_5_seven seg displays/sources_1/new/dig_cont.v
1: b'%Error: Cannot find file containing module: seg\n        ... Looked in:\n             data/full_repos/permissive/424312442/lab_5_seven/seg\n             data/full_repos/permissive/424312442/lab_5_seven/seg.v\n             data/full_repos/permissive/424312442/lab_5_seven/seg.sv\n             seg\n             seg.v\n             seg.sv\n             obj_dir/seg\n             obj_dir/seg.v\n             obj_dir/seg.sv\n%Error: Cannot find file containing module: displays/sources_1/new,data/full_repos/permissive/424312442\n%Error: Cannot find file containing module: data/full_repos/permissive/424312442/lab_5_seven\n%Error: Cannot find file containing module: displays/sources_1/new/dig_cont.v\n%Error: Exiting due to 4 error(s)\n'
module dig_cont(clk, an);
input clk;
output [3:0] an;
reg [3:0] an;
reg [31:0] counter0 = 0;
reg [31:0] counter1 = 0;

parameter refresh_ms = 16;
parameter num_digits = 4;
parameter rate = refresh_ms * 100000;

always @(posedge (clk))
begin
    counter0 = counter0 + 1;
    if (counter0 >= (rate / num_digits))
    begin    
        counter0 = 0;
        counter1 = counter1 + 1;
    end    
    if (counter1 >= (num_digits))
        counter1 = 0;
end

always @(posedge(clk))
begin
    if (counter1 == 0)
            an = 4'b0111;
    else if (counter1 == 1)
            an = 4'b1011;
    else if (counter1 == 2)
            an = 4'b1101;
    else if (counter1 == 3)
            an = 4'b1110;
    else 
        an <= 4'b1111;
end
endmodule
module dig_cont(clk, an);

input clk;
output [3:0] an;
reg [3:0] an;
reg [31:0] counter0 = 0;
reg [31:0] counter1 = 0;

parameter refresh_ms = 16;
parameter num_digits = 4;
parameter rate = refresh_ms * 100000;

always @(posedge (clk))
begin
    counter0 = counter0 + 1;
    if (counter0 >= (rate / num_digits))
    begin    
        counter0 = 0;
        counter1 = counter1 + 1;
    end    
    if (counter1 >= (num_digits))
        counter1 = 0;
end

always @(posedge(clk))
begin
    if (counter1 == 0)
            an = 4'b0111;
    else if (counter1 == 1)
            an = 4'b1011;
    else if (counter1 == 2)
            an = 4'b1101;
    else if (counter1 == 3)
            an = 4'b1110;
    else 
        an <= 4'b1111;
end
endmodule