data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v
None: at end of input
1: b'%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:49: Cannot find include file: vh/n64a_params.vh\n`include "vh/n64a_params.vh" \n         ^~~~~~~~~~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl,data/full_repos/permissive/118480210/vh/n64a_params.vh\n             data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl,data/full_repos/permissive/118480210/vh/n64a_params.vh.v\n             data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl,data/full_repos/permissive/118480210/vh/n64a_params.vh.sv\n             vh/n64a_params.vh\n             vh/n64a_params.vh.v\n             vh/n64a_params.vh.sv\n             obj_dir/vh/n64a_params.vh\n             obj_dir/vh/n64a_params.vh.v\n             obj_dir/vh/n64a_params.vh.sv\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:57: Define or directive not defined: \'`VDATA_I_FU_SLICE\'\noutput reg [`VDATA_I_FU_SLICE] vdata_r_0 = {vdata_width_i{1\'b0}};  \n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:57: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\noutput reg [`VDATA_I_FU_SLICE] vdata_r_0 = {vdata_width_i{1\'b0}};  \n                             ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:58: Define or directive not defined: \'`VDATA_I_FU_SLICE\'\noutput reg [`VDATA_I_FU_SLICE] vdata_r_1 = {vdata_width_i{1\'b0}};  \n            ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:58: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\noutput reg [`VDATA_I_FU_SLICE] vdata_r_1 = {vdata_width_i{1\'b0}};  \n                             ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:77: Define or directive not defined: \'`VDATA_I_FU_SLICE\'\n      vdata_r_1[`VDATA_I_FU_SLICE] <= vdata_r_0[`VDATA_I_FU_SLICE];\n                ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:77: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n      vdata_r_1[`VDATA_I_FU_SLICE] <= vdata_r_0[`VDATA_I_FU_SLICE];\n                                 ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:77: Define or directive not defined: \'`VDATA_I_FU_SLICE\'\n      vdata_r_1[`VDATA_I_FU_SLICE] <= vdata_r_0[`VDATA_I_FU_SLICE];\n                                                ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:79: Define or directive not defined: \'`VDATA_I_CO_SLICE\'\n      vdata_r_1[`VDATA_I_CO_SLICE] <= vdata_r_0[`VDATA_I_CO_SLICE];\n                ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:79: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n      vdata_r_1[`VDATA_I_CO_SLICE] <= vdata_r_0[`VDATA_I_CO_SLICE];\n                                 ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:79: Define or directive not defined: \'`VDATA_I_CO_SLICE\'\n      vdata_r_1[`VDATA_I_CO_SLICE] <= vdata_r_0[`VDATA_I_CO_SLICE];\n                                                ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:82: Define or directive not defined: \'`VDATA_I_SY_SLICE\'\n    vdata_r_0[`VDATA_I_SY_SLICE] <= D_i[3:0];\n              ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:82: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n    vdata_r_0[`VDATA_I_SY_SLICE] <= D_i[3:0];\n                               ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:86: Define or directive not defined: \'`VDATA_I_RE_SLICE\'\n      2\'b01: vdata_r_0[`VDATA_I_RE_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:86: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n      2\'b01: vdata_r_0[`VDATA_I_RE_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                                        ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:88: Define or directive not defined: \'`VDATA_I_GR_SLICE\'\n        vdata_r_0[`VDATA_I_GR_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                  ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:88: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n        vdata_r_0[`VDATA_I_GR_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                                   ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:90: Define or directive not defined: \'`VDATA_I_SY_SLICE\'\n          vdata_r_1[`VDATA_I_SY_SLICE] <= vdata_r_0[`VDATA_I_SY_SLICE];\n                    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:90: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n          vdata_r_1[`VDATA_I_SY_SLICE] <= vdata_r_0[`VDATA_I_SY_SLICE];\n                                     ^\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:90: Define or directive not defined: \'`VDATA_I_SY_SLICE\'\n          vdata_r_1[`VDATA_I_SY_SLICE] <= vdata_r_0[`VDATA_I_SY_SLICE];\n                                                    ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:92: Define or directive not defined: \'`VDATA_I_BL_SLICE\'\n      2\'b11: vdata_r_0[`VDATA_I_BL_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                       ^~~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/118480210/advancedRGBmod/firmware/rtl/n64_vdemux.v:92: syntax error, unexpected \']\', expecting TYPE-IDENTIFIER\n      2\'b11: vdata_r_0[`VDATA_I_BL_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2\'b00};\n                                        ^\n%Error: Exiting due to 22 error(s)\n'
module n64_vdemux(
  nCLK,
  nDSYNC,

  D_i,
  demuxparams_i,

  vdata_r_0,
  vdata_r_1
);

`include "vh/n64a_params.vh"

input nCLK;
input nDSYNC;

input  [color_width_i-1:0] D_i;
input  [              4:0] demuxparams_i;

output reg [`VDATA_I_FU_SLICE] vdata_r_0 = {vdata_width_i{1'b0}};
output reg [`VDATA_I_FU_SLICE] vdata_r_1 = {vdata_width_i{1'b0}};




wire [1:0] data_cnt  = demuxparams_i[4:3];
wire ndo_deblur      = demuxparams_i[  2];
wire nblank_rgb      = demuxparams_i[  1];
reg  n15bit_mode;




always @(negedge nCLK) begin
  if (~nDSYNC) begin
    if (vdata_r_0[vdata_width_i-1] & ~D_i[3])
      n15bit_mode <= demuxparams_i[0];

    if(ndo_deblur)
      vdata_r_1[`VDATA_I_FU_SLICE] <= vdata_r_0[`VDATA_I_FU_SLICE];
    else if (nblank_rgb)
      vdata_r_1[`VDATA_I_CO_SLICE] <= vdata_r_0[`VDATA_I_CO_SLICE];


    vdata_r_0[`VDATA_I_SY_SLICE] <= D_i[3:0];
  end else begin

    case(data_cnt)
      2'b01: vdata_r_0[`VDATA_I_RE_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
      2'b10: begin
        vdata_r_0[`VDATA_I_GR_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
        if(~ndo_deblur)
          vdata_r_1[`VDATA_I_SY_SLICE] <= vdata_r_0[`VDATA_I_SY_SLICE];
      end
      2'b11: vdata_r_0[`VDATA_I_BL_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
    endcase
  end
end

endmodule
module n64_vdemux(
  nCLK,
  nDSYNC,

  D_i,
  demuxparams_i,

  vdata_r_0,
  vdata_r_1
);


`include "vh/n64a_params.vh"

input nCLK;
input nDSYNC;

input  [color_width_i-1:0] D_i;
input  [              4:0] demuxparams_i;

output reg [`VDATA_I_FU_SLICE] vdata_r_0 = {vdata_width_i{1'b0}};
output reg [`VDATA_I_FU_SLICE] vdata_r_1 = {vdata_width_i{1'b0}};




wire [1:0] data_cnt  = demuxparams_i[4:3];
wire ndo_deblur      = demuxparams_i[  2];
wire nblank_rgb      = demuxparams_i[  1];
reg  n15bit_mode;




always @(negedge nCLK) begin
  if (~nDSYNC) begin
    if (vdata_r_0[vdata_width_i-1] & ~D_i[3])
      n15bit_mode <= demuxparams_i[0];

    if(ndo_deblur)
      vdata_r_1[`VDATA_I_FU_SLICE] <= vdata_r_0[`VDATA_I_FU_SLICE];
    else if (nblank_rgb)
      vdata_r_1[`VDATA_I_CO_SLICE] <= vdata_r_0[`VDATA_I_CO_SLICE];


    vdata_r_0[`VDATA_I_SY_SLICE] <= D_i[3:0];
  end else begin

    case(data_cnt)
      2'b01: vdata_r_0[`VDATA_I_RE_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
      2'b10: begin
        vdata_r_0[`VDATA_I_GR_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
        if(~ndo_deblur)
          vdata_r_1[`VDATA_I_SY_SLICE] <= vdata_r_0[`VDATA_I_SY_SLICE];
      end
      2'b11: vdata_r_0[`VDATA_I_BL_SLICE] <= n15bit_mode ? D_i : {D_i[6:2], 2'b00};
    endcase
  end
end

endmodule