data/full_repos/permissive/128426084/src/sources_1/new/drawNumber.v
1: b"%Error: data/full_repos/permissive/128426084/src/sources_1/new/drawNumber.v:34: Cannot find file containing module: 'char_rom'\n        char_rom MyChar\n        ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/128426084/src/sources_1/new,data/full_repos/permissive/128426084/char_rom\n             data/full_repos/permissive/128426084/src/sources_1/new,data/full_repos/permissive/128426084/char_rom.v\n             data/full_repos/permissive/128426084/src/sources_1/new,data/full_repos/permissive/128426084/char_rom.sv\n             char_rom\n             char_rom.v\n             char_rom.sv\n             obj_dir/char_rom\n             obj_dir/char_rom.v\n             obj_dir/char_rom.sv\n%Error: Exiting due to 1 error(s)\n"
module drawNumber(
        input wire [7:0] Number,
        input wire [10:0] hcount,vcount,
        output wire Pixel

    );
    parameter [10:0] xpos = 0;
    parameter [10:0] ypos = 0;
            wire [3:0] Addr1,Line;
            wire [7:0] Pixels;
        
        char_rom MyChar
        (
            .addr({Addr1,Line}),
            .data(Pixels)
            
        );
    

    
    reg [3:0] Setki,Dzie,Jedy;
    
    reg Conv = 0;
    integer  i;
        always @(Number)
            begin
                Setki = 4'h0;
                Dzie = 4'h0;
                Jedy = 4'h0;
                Conv = 0;
            
            for(i = 7; i >= 0; i=i-1)
                begin
                    if(Setki >= 5)
                        Setki = Setki + 3;
                    if(Dzie >= 5)
                        Dzie = Dzie +3;
                    if(Jedy >= 5)
                        Jedy = Jedy +3;
                        
                    Setki = Setki <<1;
                    Setki[0] = Dzie[3];
                    Dzie = Dzie <<1;
                    Dzie[0] = Jedy[3];
                    Jedy = Jedy << 1;
                    Jedy[0] = Number[i];
                    end
                    Conv = 1;
                 end 
                 
     wire [10:0] hcnt;
     assign hcnt = hcount - xpos;
                 
     assign Addr1 = ((hcount >= xpos) && ((hcount - xpos) <= 63))?Dzie:
     (((hcount >= xpos) && ((hcount - xpos) <= 127))?Jedy:0);
     assign Line = vcount[6:3];
     assign Pixel = ((hcount >= xpos) && ((hcount - xpos) <= 127)  && (vcount >= ypos) && (vcount - ypos <= 127))?
        Pixels[3'h7-hcnt[5:3]] : 0;
endmodule
module drawNumber(
        input wire [7:0] Number,
        input wire [10:0] hcount,vcount,
        output wire Pixel

    );

    parameter [10:0] xpos = 0;
    parameter [10:0] ypos = 0;
            wire [3:0] Addr1,Line;
            wire [7:0] Pixels;
        
        char_rom MyChar
        (
            .addr({Addr1,Line}),
            .data(Pixels)
            
        );
    

    
    reg [3:0] Setki,Dzie,Jedy;
    
    reg Conv = 0;
    integer  i;
        always @(Number)
            begin
                Setki = 4'h0;
                Dzie = 4'h0;
                Jedy = 4'h0;
                Conv = 0;
            
            for(i = 7; i >= 0; i=i-1)
                begin
                    if(Setki >= 5)
                        Setki = Setki + 3;
                    if(Dzie >= 5)
                        Dzie = Dzie +3;
                    if(Jedy >= 5)
                        Jedy = Jedy +3;
                        
                    Setki = Setki <<1;
                    Setki[0] = Dzie[3];
                    Dzie = Dzie <<1;
                    Dzie[0] = Jedy[3];
                    Jedy = Jedy << 1;
                    Jedy[0] = Number[i];
                    end
                    Conv = 1;
                 end 
                 
     wire [10:0] hcnt;
     assign hcnt = hcount - xpos;
                 
     assign Addr1 = ((hcount >= xpos) && ((hcount - xpos) <= 63))?Dzie:
     (((hcount >= xpos) && ((hcount - xpos) <= 127))?Jedy:0);
     assign Line = vcount[6:3];
     assign Pixel = ((hcount >= xpos) && ((hcount - xpos) <= 127)  && (vcount >= ypos) && (vcount - ypos <= 127))?
        Pixels[3'h7-hcnt[5:3]] : 0;
endmodule