data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v
1: b'%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:26: Cannot find include file: Pxs.vh\n`include "Pxs.vh" \n         ^~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/109394014/blocks/Videogen,data/full_repos/permissive/109394014/Pxs.vh\n             data/full_repos/permissive/109394014/blocks/Videogen,data/full_repos/permissive/109394014/Pxs.vh.v\n             data/full_repos/permissive/109394014/blocks/Videogen,data/full_repos/permissive/109394014/Pxs.vh.sv\n             Pxs.vh\n             Pxs.vh.v\n             Pxs.vh.sv\n             obj_dir/Pxs.vh\n             obj_dir/Pxs.vh.v\n             obj_dir/Pxs.vh.sv\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:40: Define or directive not defined: \'`VGA\'\n    RGBStr_o[`VGA] <= VGAStr_i[`VGA];\n             ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:40: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    RGBStr_o[`VGA] <= VGAStr_i[`VGA];\n                 ^\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:40: Define or directive not defined: \'`VGA\'\n    RGBStr_o[`VGA] <= VGAStr_i[`VGA];\n                               ^~~~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:41: Define or directive not defined: \'`Active\'\n    if (VGAStr_i[`Active])\n                 ^~~~~~~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:41: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    if (VGAStr_i[`Active])\n                        ^\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:43: Define or directive not defined: \'`R\'\n            RGBStr_o[`R] <= comp[3];  \n                     ^~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:44: Define or directive not defined: \'`G\'\n            RGBStr_o[`G] <= comp[3];   \n                     ^~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:44: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n            RGBStr_o[`G] <= comp[3];   \n                       ^\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:45: Define or directive not defined: \'`B\'\n            RGBStr_o[`B] <= comp[4];   \n                     ^~\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:45: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n            RGBStr_o[`B] <= comp[4];   \n                       ^\n%Error: data/full_repos/permissive/109394014/blocks/Videogen/PxsXorPattern.v:48: Define or directive not defined: \'`RGB\'\n        RGBStr_o[`RGB] <= 3\'b000;\n                 ^~~~\n%Error: Cannot continue\n'
module PxsXorPattern (
            input wire        px_clk,
            input wire [22:0] VGAStr_i,
            output reg [25:0] RGBStr_o
         );

wire [9:0] comp;

assign comp = VGAStr_i[22:14] ^ VGAStr_i[12:4];

always @(posedge px_clk)
begin
    RGBStr_o[`VGA] <= VGAStr_i[`VGA];
    if (VGAStr_i[`Active])
        begin
            RGBStr_o[`R] <= comp[3];
            RGBStr_o[`G] <= comp[3];
            RGBStr_o[`B] <= comp[4];
        end
    else
        RGBStr_o[`RGB] <= 3'b000;
end

endmodule
module PxsXorPattern (
            input wire        px_clk,
            input wire [22:0] VGAStr_i,
            output reg [25:0] RGBStr_o
         );


wire [9:0] comp;

assign comp = VGAStr_i[22:14] ^ VGAStr_i[12:4];

always @(posedge px_clk)
begin
    RGBStr_o[`VGA] <= VGAStr_i[`VGA];
    if (VGAStr_i[`Active])
        begin
            RGBStr_o[`R] <= comp[3];
            RGBStr_o[`G] <= comp[3];
            RGBStr_o[`B] <= comp[4];
        end
    else
        RGBStr_o[`RGB] <= 3'b000;
end

endmodule