data/full_repos/permissive/169155753/source/configuration.v
 line:30 column:15: Illegal character "'"
1: b'%Error: data/full_repos/permissive/169155753/source/configuration.v:1: Cannot find include file: defines.v\n`include "defines.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/169155753/source,data/full_repos/permissive/169155753/defines.v\n             data/full_repos/permissive/169155753/source,data/full_repos/permissive/169155753/defines.v.v\n             data/full_repos/permissive/169155753/source,data/full_repos/permissive/169155753/defines.v.sv\n             defines.v\n             defines.v.v\n             defines.v.sv\n             obj_dir/defines.v\n             obj_dir/defines.v.v\n             obj_dir/defines.v.sv\n%Error: data/full_repos/permissive/169155753/source/configuration.v:14: Define or directive not defined: \'`MODE_1080p\'\n            5\'b_11110: config_data <= `MODE_1080p;  \n                                      ^~~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:14: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            5\'b_11110: config_data <= `MODE_1080p;  \n                                                 ^\n%Error: data/full_repos/permissive/169155753/source/configuration.v:15: Define or directive not defined: \'`MODE_1080i\'\n            5\'b_11101: config_data <= `MODE_1080i;  \n                                      ^~~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:15: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            5\'b_11101: config_data <= `MODE_1080i;  \n                                                 ^\n%Error: data/full_repos/permissive/169155753/source/configuration.v:16: Define or directive not defined: \'`MODE_720p\'\n            5\'b_11011: config_data <= `MODE_720p;   \n                                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:16: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            5\'b_11011: config_data <= `MODE_720p;   \n                                                ^\n%Error: data/full_repos/permissive/169155753/source/configuration.v:17: Define or directive not defined: \'`MODE_480p\'\n            5\'b_10111: config_data <= `MODE_480p;   \n                                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:17: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            5\'b_10111: config_data <= `MODE_480p;   \n                                                ^\n%Error: data/full_repos/permissive/169155753/source/configuration.v:18: Define or directive not defined: \'`MODE_480i\'\n            5\'b_01111: config_data <= `MODE_480i;   \n                                      ^~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:18: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            5\'b_01111: config_data <= `MODE_480i;   \n                                                ^\n%Error: data/full_repos/permissive/169155753/source/configuration.v:19: Define or directive not defined: \'`DEFAULT_FB_MODE\'\n            default: config_data <= `DEFAULT_FB_MODE;\n                                    ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/169155753/source/configuration.v:19: syntax error, unexpected \';\', expecting TYPE-IDENTIFIER\n            default: config_data <= `DEFAULT_FB_MODE;\n                                                    ^\n%Error: Exiting due to 13 error(s)\n'
module configuration(
    input clock,
    input [4:0] config_in,
    output reg [7:0] config_data,
    output config_changed
);
    reg [7:0] prev_config_data;

    always @(posedge clock) begin
        prev_config_data <= config_data;
        case (config_in)
            5'b_11110: config_data <= `MODE_1080p;
            5'b_11101: config_data <= `MODE_1080i;
            5'b_11011: config_data <= `MODE_720p;
            5'b_10111: config_data <= `MODE_480p;
            5'b_01111: config_data <= `MODE_480i;
            default: config_data <= `DEFAULT_FB_MODE;
        endcase
    end

    assign config_changed = (prev_config_data != config_data);

endmodule
module configuration(
    input clock,
    input [4:0] config_in,
    output reg [7:0] config_data,
    output config_changed
);

    reg [7:0] prev_config_data;

    always @(posedge clock) begin
        prev_config_data <= config_data;
        case (config_in)
            5'b_11110: config_data <= `MODE_1080p;
            5'b_11101: config_data <= `MODE_1080i;
            5'b_11011: config_data <= `MODE_720p;
            5'b_10111: config_data <= `MODE_480p;
            5'b_01111: config_data <= `MODE_480i;
            default: config_data <= `DEFAULT_FB_MODE;
        endcase
    end

    assign config_changed = (prev_config_data != config_data);

endmodule