data/full_repos/permissive/117026779/src/VGA.v
1: b"%Error: data/full_repos/permissive/117026779/src/VGA.v:93: syntax error, unexpected '(', expecting IDENTIFIER\n    .clk(clk),\n    ^\n%Error: Exiting due to 1 error(s)\n"
module VGA_Terminal_DEMO(

    input wire clk,
    input wire rst,

    output wire hsync,

    output wire vsync,

    output wire [`RGB_RESOLUTION-1:0] r,
    output wire [`RGB_RESOLUTION-1:0] g,
    output wire [`RGB_RESOLUTION-1:0] b,


    input wire [8:0] address,

    input wire [6:0] data,

    input wire cs,

    output wire busy
);


wire [`VALUE_BIT_WIDTH-1:0] debug_value_0;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_1;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_2;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_3;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_4;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_5;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_6;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_7;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_8;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_9;

wire [`ASCII_WIDTH-1:0] sign_extend_data;
wire [`VGA_RAM_ADDRESS_WIDTH-1:0] sign_extend_address;

assign sign_extend_data = { 1'b0, data };
assign sign_extend_address = { 4'b0, address };

DEMO_DEBUG_VALUE_GENERATOR demo(
    .clk(clk),
    .rst(rst),
    .debug_value_0(debug_value_0),
    .debug_value_1(debug_value_1),
    .debug_value_2(debug_value_2),
    .debug_value_3(debug_value_3),
    .debug_value_4(debug_value_4),
    .debug_value_5(debug_value_5),
    .debug_value_6(debug_value_6),
    .debug_value_7(debug_value_7),
    .debug_value_8(debug_value_8),
    .debug_value_9(debug_value_9)
);

VGA_Terminal(
    .clk(clk),
    .rst(rst),
    .hsync(hsync),
    .vsync(vsync),
    .r(r),
    .g(g),
    .b(b),
    .value0(debug_value_0), .value1(debug_value_1), .value2(debug_value_2),  .value3(debug_value_3),
    .value4(32'h12345678),  .value5(debug_value_4), .value6(debug_value_5),  .value7(debug_value_6),
    .value8(debug_value_7), .value9(32'h9ABCDEF0),  .value10(debug_value_8), .value11(debug_value_9),
    .value12(32'h22222222), .value13(32'h33333333), .value14(32'h44444444),  .value15(32'h55555555),
    .value16(32'h66666666), .value17(32'h77777777), .value18(32'h88888888),  .value19(32'hDEADBEE),
    .address(sign_extend_address),
    .data(sign_extend_data),
    .cs(cs),
    .busy(busy),
    .text(3'b111),
    .background(3'b000)
);

endmodule
module VGA_Terminal_DEMO(

    input wire clk,
    input wire rst,

    output wire hsync,

    output wire vsync,

    output wire [`RGB_RESOLUTION-1:0] r,
    output wire [`RGB_RESOLUTION-1:0] g,
    output wire [`RGB_RESOLUTION-1:0] b,


    input wire [8:0] address,

    input wire [6:0] data,

    input wire cs,

    output wire busy
);



wire [`VALUE_BIT_WIDTH-1:0] debug_value_0;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_1;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_2;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_3;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_4;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_5;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_6;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_7;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_8;
wire [`VALUE_BIT_WIDTH-1:0] debug_value_9;

wire [`ASCII_WIDTH-1:0] sign_extend_data;
wire [`VGA_RAM_ADDRESS_WIDTH-1:0] sign_extend_address;

assign sign_extend_data = { 1'b0, data };
assign sign_extend_address = { 4'b0, address };

DEMO_DEBUG_VALUE_GENERATOR demo(
    .clk(clk),
    .rst(rst),
    .debug_value_0(debug_value_0),
    .debug_value_1(debug_value_1),
    .debug_value_2(debug_value_2),
    .debug_value_3(debug_value_3),
    .debug_value_4(debug_value_4),
    .debug_value_5(debug_value_5),
    .debug_value_6(debug_value_6),
    .debug_value_7(debug_value_7),
    .debug_value_8(debug_value_8),
    .debug_value_9(debug_value_9)
);

VGA_Terminal(
    .clk(clk),
    .rst(rst),
    .hsync(hsync),
    .vsync(vsync),
    .r(r),
    .g(g),
    .b(b),
    .value0(debug_value_0), .value1(debug_value_1), .value2(debug_value_2),  .value3(debug_value_3),
    .value4(32'h12345678),  .value5(debug_value_4), .value6(debug_value_5),  .value7(debug_value_6),
    .value8(debug_value_7), .value9(32'h9ABCDEF0),  .value10(debug_value_8), .value11(debug_value_9),
    .value12(32'h22222222), .value13(32'h33333333), .value14(32'h44444444),  .value15(32'h55555555),
    .value16(32'h66666666), .value17(32'h77777777), .value18(32'h88888888),  .value19(32'hDEADBEE),
    .address(sign_extend_address),
    .data(sign_extend_data),
    .cs(cs),
    .busy(busy),
    .text(3'b111),
    .background(3'b000)
);

endmodule