data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v
1: b"%Error: data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v:71: Cannot find file containing module: 'apple1'\n    apple1 #(\n    ^~~~~~\n        ... Looked in:\n             data/full_repos/permissive/115920613/rtl/boards/terasic_de0,data/full_repos/permissive/115920613/apple1\n             data/full_repos/permissive/115920613/rtl/boards/terasic_de0,data/full_repos/permissive/115920613/apple1.v\n             data/full_repos/permissive/115920613/rtl/boards/terasic_de0,data/full_repos/permissive/115920613/apple1.sv\n             apple1\n             apple1.v\n             apple1.sv\n             obj_dir/apple1\n             obj_dir/apple1.v\n             obj_dir/apple1.sv\n%Error: data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v:102: Cannot find file containing module: 'segmentdisplay'\n    segmentdisplay seg1(\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v:109: Cannot find file containing module: 'segmentdisplay'\n    segmentdisplay seg2(\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v:116: Cannot find file containing module: 'segmentdisplay'\n    segmentdisplay seg3(\n    ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/115920613/rtl/boards/terasic_de0/apple1_de0_top.v:123: Cannot find file containing module: 'segmentdisplay'\n    segmentdisplay seg4(\n    ^~~~~~~~~~~~~~\n%Error: Exiting due to 5 error(s)\n"
module apple1_de0_top #(
    parameter BASIC_FILENAME      = "../../../roms/basic.hex",
    parameter FONT_ROM_FILENAME   = "../../../roms/vga_font_bitreversed.hex",
    parameter RAM_FILENAME        = "../../../roms/ram.hex",
    parameter VRAM_FILENAME       = "../../../roms/vga_vram.bin",
    parameter WOZMON_ROM_FILENAME = "../../../roms/wozmon.hex"
) (
    input   CLOCK_50,


    output  UART_TXD,
    input   UART_RXD,
    output  UART_CTS,
    
    output  [7:0] LEDG,
    input   [2:0] BUTTON,
    output  [6:0] HEX0_D,
    output  [6:0] HEX1_D,
    output  [6:0] HEX2_D,
    output  [6:0] HEX3_D,
    
    input   PS2_KBCLK,
    input   PS2_KBDAT,

    output  [3:0] VGA_R,
    output  [3:0] VGA_G,
    output  [3:0] VGA_B,
    output  VGA_HS,
    output  VGA_VS    
);



    reg clk25;
    wire [15:0] pc_monitor;


    always @(posedge CLOCK_50)
    begin
        clk25 <= ~clk25;
    end
    
    wire r_bit, g_bit, b_bit;
    


    apple1 #(
        .BASIC_FILENAME (BASIC_FILENAME),
        .FONT_ROM_FILENAME (FONT_ROM_FILENAME),
        .RAM_FILENAME (RAM_FILENAME),
        .VRAM_FILENAME (VRAM_FILENAME),
        .WOZMON_ROM_FILENAME (WOZMON_ROM_FILENAME)
    ) apple1_top(
        .clk25(clk25),
        .rst_n(BUTTON[0]),
        .uart_rx(UART_RXD),
        .uart_tx(UART_TXD),
        .uart_cts(UART_CTS),
        .ps2_clk(PS2_KBCLK),
        .ps2_din(PS2_KBDAT),
        .ps2_select(1'b1),
        .vga_h_sync(VGA_HS),
        .vga_v_sync(VGA_VS),
        .vga_red(r_bit),
        .vga_grn(g_bit),
        .vga_blu(b_bit),
        .pc_monitor(pc_monitor)
    );


    assign VGA_R[3:0] = {4{r_bit}};
    assign VGA_G[3:0] = {4{g_bit}};
    assign VGA_B[3:0] = {4{b_bit}};



    
    segmentdisplay seg1(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[3:0]),
        .display_out(HEX0_D)
    );

    segmentdisplay seg2(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[7:4]),
        .display_out(HEX1_D)
    );
    
    segmentdisplay seg3(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[11:8]),
        .display_out(HEX2_D)
    );

    segmentdisplay seg4(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[15:12]),
        .display_out(HEX3_D)
    );
      
    assign LEDG = 0;
    
endmodule
module apple1_de0_top #(
    parameter BASIC_FILENAME      = "../../../roms/basic.hex",
    parameter FONT_ROM_FILENAME   = "../../../roms/vga_font_bitreversed.hex",
    parameter RAM_FILENAME        = "../../../roms/ram.hex",
    parameter VRAM_FILENAME       = "../../../roms/vga_vram.bin",
    parameter WOZMON_ROM_FILENAME = "../../../roms/wozmon.hex"
) (
    input   CLOCK_50,


    output  UART_TXD,
    input   UART_RXD,
    output  UART_CTS,
    
    output  [7:0] LEDG,
    input   [2:0] BUTTON,
    output  [6:0] HEX0_D,
    output  [6:0] HEX1_D,
    output  [6:0] HEX2_D,
    output  [6:0] HEX3_D,
    
    input   PS2_KBCLK,
    input   PS2_KBDAT,

    output  [3:0] VGA_R,
    output  [3:0] VGA_G,
    output  [3:0] VGA_B,
    output  VGA_HS,
    output  VGA_VS    
);




    reg clk25;
    wire [15:0] pc_monitor;


    always @(posedge CLOCK_50)
    begin
        clk25 <= ~clk25;
    end
    
    wire r_bit, g_bit, b_bit;
    


    apple1 #(
        .BASIC_FILENAME (BASIC_FILENAME),
        .FONT_ROM_FILENAME (FONT_ROM_FILENAME),
        .RAM_FILENAME (RAM_FILENAME),
        .VRAM_FILENAME (VRAM_FILENAME),
        .WOZMON_ROM_FILENAME (WOZMON_ROM_FILENAME)
    ) apple1_top(
        .clk25(clk25),
        .rst_n(BUTTON[0]),
        .uart_rx(UART_RXD),
        .uart_tx(UART_TXD),
        .uart_cts(UART_CTS),
        .ps2_clk(PS2_KBCLK),
        .ps2_din(PS2_KBDAT),
        .ps2_select(1'b1),
        .vga_h_sync(VGA_HS),
        .vga_v_sync(VGA_VS),
        .vga_red(r_bit),
        .vga_grn(g_bit),
        .vga_blu(b_bit),
        .pc_monitor(pc_monitor)
    );


    assign VGA_R[3:0] = {4{r_bit}};
    assign VGA_G[3:0] = {4{g_bit}};
    assign VGA_B[3:0] = {4{b_bit}};



    
    segmentdisplay seg1(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[3:0]),
        .display_out(HEX0_D)
    );

    segmentdisplay seg2(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[7:4]),
        .display_out(HEX1_D)
    );
    
    segmentdisplay seg3(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[11:8]),
        .display_out(HEX2_D)
    );

    segmentdisplay seg4(
        .clk(clk25),
        .latch(1'b1),
        .hexdigit_in(pc_monitor[15:12]),
        .display_out(HEX3_D)
    );
      
    assign LEDG = 0;
    
endmodule